Changeset 2280 for rfc2629xslt/samples


Ignore:
Timestamp:
03/06/13 08:22:49 (7 years ago)
Author:
julian.reschke@…
Message:

update to latest version of rfc2629.xslt, bump up document dates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/samples/rfc2629.xslt

    r2272 r2280  
    210210    <xsl:with-param name="nodes" select="/processing-instruction('rfc')"/>
    211211    <xsl:with-param name="attr" select="'background'"/>
     212  </xsl:call-template>
     213</xsl:param>
     214
     215<!-- initials handling? -->
     216
     217<xsl:param name="xml2rfc-multiple-initials">
     218  <xsl:call-template name="parse-pis">
     219    <xsl:with-param name="nodes" select="/processing-instruction('rfc')"/>
     220    <xsl:with-param name="attr" select="'multiple-initials'"/>
     221    <xsl:with-param name="default" select="'no'"/>
    212222  </xsl:call-template>
    213223</xsl:param>
     
    16911701          <xsl:call-template name="format-initials"/>
    16921702        </xsl:variable>
    1693         <xsl:variable name="truncated-initials" select="concat(substring-before($initials,'.'),'.')"/>
     1703        <xsl:variable name="truncated-initials">
     1704          <xsl:call-template name="truncate-initials">
     1705            <xsl:with-param name="initials" select="$initials"/>
     1706          </xsl:call-template>
     1707        </xsl:variable>
    16941708
    16951709        <xsl:choose>
     
    29472961      <xsl:call-template name="format-initials"/>
    29482962    </xsl:variable>
    2949     <xsl:variable name="truncated-initials" select="concat(substring-before($initials,'.'),'.')"/>
     2963    <xsl:variable name="truncated-initials">
     2964      <xsl:call-template name="truncate-initials">
     2965        <xsl:with-param name="initials" select="$initials"/>
     2966      </xsl:call-template>
     2967    </xsl:variable>
    29502968    <xsl:if test="@surname">
    29512969      <myns:item>
     
    66936711    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    66946712    <!-- when RCS keyword substitution in place, add version info -->
    6695     <xsl:if test="contains('$Revision: 1.596 $',':')">
    6696       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.596 $', 'Revision: '),'$','')),', ')" />
     6713    <xsl:if test="contains('$Revision: 1.597 $',':')">
     6714      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.597 $', 'Revision: '),'$','')),', ')" />
    66976715    </xsl:if>
    6698     <xsl:if test="contains('$Date: 2013/05/16 08:38:33 $',':')">
    6699       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/05/16 08:38:33 $', 'Date: '),'$','')),', ')" />
     6716    <xsl:if test="contains('$Date: 2013/05/27 06:39:42 $',':')">
     6717      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/05/27 06:39:42 $', 'Date: '),'$','')),', ')" />
    67006718    </xsl:if>
    67016719    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
     
    68916909  </xsl:choose>
    68926910
     6911</xsl:template>
     6912
     6913<xsl:template name="truncate-initials">
     6914  <xsl:param name="initials"/>
     6915  <xsl:choose>
     6916    <xsl:when test="$xml2rfc-multiple-initials='yes'">
     6917      <xsl:value-of select="$initials"/>
     6918    </xsl:when>
     6919    <xsl:otherwise>
     6920      <xsl:value-of select="concat(substring-before($initials,'.'),'.')"/>
     6921    </xsl:otherwise>
     6922  </xsl:choose>
    68936923</xsl:template>
    68946924
Note: See TracChangeset for help on using the changeset viewer.