Ignore:
Timestamp:
Oct 11, 2008, 12:06:15 AM (11 years ago)
Author:
julian.reschke@…
Message:

update to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r308 r329  
    506506  <xsl:call-template name="check-artwork-width">
    507507    <xsl:with-param name="content"><xsl:apply-templates/></xsl:with-param>
     508    <xsl:with-param name="indent"><xsl:value-of select="string-length(@x:indent-with)"/></xsl:with-param>
    508509  </xsl:call-template>
    509510</xsl:template>
     
    525526<xsl:template name="check-artwork-width">
    526527  <xsl:param name="content"/>
     528  <xsl:param name="indent"/>
    527529  <xsl:choose>
    528530    <xsl:when test="not(contains($content,'&#10;'))">
    529       <xsl:if test="string-length($content) > 69">
     531      <xsl:if test="string-length($content) > 69 + $indent">
    530532        <xsl:call-template name="warning">
    531533          <xsl:with-param name="inline" select="'no'"/>
     
    537539      <xsl:variable name="start" select="substring-before($content,'&#10;')"/>
    538540      <xsl:variable name="end" select="substring-after($content,'&#10;')"/>
    539       <xsl:if test="string-length($start) > 69">
     541      <xsl:if test="string-length($start) > 69 + $indent">
    540542        <xsl:call-template name="warning">
    541543          <xsl:with-param name="inline" select="'no'"/>
     
    552554<xsl:template match="artwork[@src and starts-with(@type,'image/')]">
    553555  <p>
    554     <img src="{@src}" alt="{.}">
    555       <xsl:copy-of select="@width|@height"/>
    556     </img>
     556    <xsl:choose>
     557      <xsl:when test="@type='image/svg+xml'">
     558        <object data="{@src}" type="image/svg+xml">
     559          <xsl:choose>
     560            <xsl:when test="@width!='' or @height!=''">
     561              <xsl:copy-of select="@width|@height"/>
     562            </xsl:when>
     563            <xsl:otherwise xmlns:svg="http://www.w3.org/2000/svg">
     564              <!-- try to find width and height from SVG -->
     565              <xsl:variable name="svg" select="document(@src)"/>
     566              <xsl:for-each select="$svg/svg:svg/@width|$svg/svg:svg/@height">
     567                <!-- strip out the units, cross the fingers pixels are meant -->
     568                <xsl:attribute name="{local-name()}">
     569                  <xsl:value-of select="translate(.,concat($ucase,$lcase),'')"/>
     570                </xsl:attribute>
     571              </xsl:for-each>
     572            </xsl:otherwise>
     573          </xsl:choose>
     574          <xsl:apply-templates/>
     575        </object>
     576      </xsl:when>
     577      <xsl:otherwise>
     578        <img src="{@src}" alt="{.}">
     579          <xsl:copy-of select="@width|@height"/>
     580        </img>
     581      </xsl:otherwise>
     582    </xsl:choose>
    557583  </p>
    558584</xsl:template>
     
    709735<xsl:template match="figure">
    710736  <xsl:if test="@anchor!=''">
     737    <xsl:call-template name="check-anchor"/>
    711738    <div id="{@anchor}"/>
    712739  </xsl:if>
     
    757784  <p class="title">
    758785    <!-- main title -->
     786
    759787    <xsl:apply-templates select="title"/>
    760788    <xsl:if test="/rfc/@docName">
     
    912940  <!-- Inherited through CSS now <dd style="margin-top: .5em">-->
    913941  <dd>
     942    <xsl:call-template name="copy-anchor"/>
    914943    <xsl:call-template name="insertInsDelClass"/>
    915     <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
    916944    <xsl:apply-templates />
    917945  </dd>
     
    920948<xsl:template match="list[@style='numbers' or @style='symbols' or @style='letters']/x:lt">
    921949  <li>
    922     <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
     950    <xsl:call-template name="copy-anchor"/>
    923951    <xsl:apply-templates select="t" />
    924952  </li>
     
    927955<xsl:template match="list[@style='numbers' or @style='symbols' or @style='letters']/t | list[@style='numbers' or @style='symbols' or @style='letters']/ed:replace/ed:*/t">
    928956  <li>
     957    <xsl:call-template name="copy-anchor"/>
    929958    <xsl:call-template name="insertInsDelClass"/>
    930959    <xsl:for-each select="../..">
    931960      <xsl:call-template name="insert-issue-pointer"/>
    932961    </xsl:for-each>
    933     <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
    934962    <xsl:apply-templates />
    935963  </li>
     
    939967  <xsl:if test="@hangText!=''">
    940968    <dt>
     969      <xsl:call-template name="copy-anchor"/>
    941970      <xsl:call-template name="insertInsDelClass"/>
    942971      <xsl:variable name="del-node" select="ancestor::ed:del"/>
     
    948977        </xsl:call-template>
    949978      </xsl:for-each>
    950       <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
    951979      <xsl:value-of select="@hangText" />
    952980    </dt>
     
    965993  <xsl:if test="@hangText!=''">
    966994    <dt>
     995      <xsl:call-template name="copy-anchor"/>
    967996      <xsl:call-template name="insertInsDelClass"/>
    968997      <xsl:if test="count(preceding-sibling::t)=0">
     
    9761005        </xsl:for-each>
    9771006      </xsl:if>
    978       <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
    9791007      <xsl:value-of select="@hangText" />
    9801008    </dt>
     
    10111039  </xsl:variable>
    10121040  <dt>
    1013     <xsl:if test="@anchor"><xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute></xsl:if>
     1041    <xsl:call-template name="copy-anchor"/>
    10141042    <xsl:choose>
    10151043      <xsl:when test="contains($format,'%c')">
     
    10551083  <xsl:if test="normalize-space(.) != ''">
    10561084    <p>
    1057       <xsl:if test="@anchor">
    1058         <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
    1059       </xsl:if>
     1085      <xsl:call-template name="copy-anchor"/>
    10601086      <xsl:call-template name="insertInsDelClass"/>
    10611087      <xsl:call-template name="editingMark" />
     
    11341160    </xsl:call-template>
    11351161  </xsl:if>
     1162
     1163  <xsl:call-template name="check-anchor"/>
    11361164
    11371165  <xsl:variable name="target">
     
    14051433      </xsl:for-each>
    14061434      <xsl:if test="/rfc/@number">
    1407         <link rel="Alternate" title="Authorative ASCII version" href="http://www.ietf.org/rfc/rfc{/rfc/@number}.txt" />
     1435        <xsl:variable name="number">
     1436          <xsl:choose>
     1437            <xsl:when test="string-length(/rfc/@number) &lt; 2">000<xsl:value-of select="/rfc/@number"/></xsl:when>
     1438            <xsl:when test="string-length(/rfc/@number) &lt; 3">00<xsl:value-of select="/rfc/@number"/></xsl:when>
     1439            <xsl:when test="string-length(/rfc/@number) &lt; 4">0<xsl:value-of select="/rfc/@number"/></xsl:when>
     1440            <xsl:otherwise><xsl:value-of select="/rfc/@number"/></xsl:otherwise>
     1441          </xsl:choose>
     1442        </xsl:variable>
     1443        <link rel="Alternate" title="Authorative ASCII Version" href="http://www.ietf.org/rfc/rfc{/rfc/@number}.txt" />
     1444        <link rel="Help" title="Additional Information on tools.ietf.org" href="http://tools.ietf.org/html/rfc{$number}" />
    14081445      </xsl:if>
    14091446
     
    15281565</xsl:template>               
    15291566
     1567<xsl:template mode="t-content2" match="comment()">
     1568  <xsl:apply-templates select="." />
     1569  <xsl:if test="not(following-sibling::node()[1] [self::list or self::figure or self::texttable])">
     1570    <xsl:apply-templates select="following-sibling::node()[1]" mode="t-content2" />
     1571  </xsl:if>
     1572</xsl:template>               
     1573
    15301574<xsl:template match="title">
     1575  <xsl:if test="@abbrev and string-length(@abbrev) > 40">
     1576    <xsl:call-template name="warning">
     1577      <xsl:with-param name="inline" select="'no'"/>
     1578      <xsl:with-param name="msg">title/@abbrev too long (max 40 characters)</xsl:with-param>
     1579    </xsl:call-template>
     1580  </xsl:if>
     1581
     1582  <xsl:if test="string-length(.) > 40 and (not(@abbrev) or @abbrev='')">
     1583    <xsl:call-template name="warning">
     1584      <xsl:with-param name="inline" select="'no'"/>
     1585      <xsl:with-param name="msg">title too long, should supply title/@abbrev attribute with less than 40 characters</xsl:with-param>
     1586    </xsl:call-template>
     1587  </xsl:if>
     1588
    15311589  <xsl:apply-templates />
    15321590</xsl:template>
     
    16211679    <xsl:choose>
    16221680      <xsl:when test="@anchor">
     1681        <xsl:call-template name="check-anchor"/>
    16231682        <a id="{@anchor}" href="#{@anchor}"><xsl:call-template name="insertTitle"/></a>
    16241683      </xsl:when>
     
    16341693<xsl:template match="spanx[@style='emph' or not(@style)]">
    16351694  <em>
    1636     <xsl:if test="@anchor">
    1637       <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
    1638     </xsl:if>
     1695    <xsl:call-template name="copy-anchor"/>
    16391696    <xsl:apply-templates />
    16401697  </em>
     
    16431700<xsl:template match="spanx[@style='verb']">
    16441701  <samp>
    1645     <xsl:if test="@anchor">
    1646       <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
    1647     </xsl:if>
     1702    <xsl:call-template name="copy-anchor"/>
    16481703    <xsl:apply-templates />
    16491704  </samp>
     
    16521707<xsl:template match="spanx[@style='strong']">
    16531708  <strong>
    1654     <xsl:if test="@anchor">
    1655       <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
    1656     </xsl:if>
     1709    <xsl:call-template name="copy-anchor"/>
    16571710    <xsl:apply-templates />
    16581711  </strong>
     
    17761829    <xsl:otherwise>
    17771830      <a href="#{$target}"><xsl:apply-templates /></a>
    1778       <xsl:for-each select="$src/rfc/back/references//reference[@anchor=$target]">
    1779         <xsl:text> </xsl:text>
    1780         <cite title="{normalize-space(front/title)}">
    1781           <xsl:if test="$xml2rfc-ext-include-references-in-index='yes'">
    1782             <xsl:attribute name="id"><xsl:value-of select="$anchor"/></xsl:attribute>
    1783           </xsl:if>
    1784           <xsl:call-template name="referencename">
    1785              <xsl:with-param name="node" select="." />
    1786           </xsl:call-template>
    1787         </cite>
    1788       </xsl:for-each>
     1831      <xsl:if test="not(@format='none')">
     1832        <xsl:for-each select="$src/rfc/back/references//reference[@anchor=$target]">
     1833          <xsl:text> </xsl:text>
     1834          <cite title="{normalize-space(front/title)}">
     1835            <xsl:if test="$xml2rfc-ext-include-references-in-index='yes'">
     1836              <xsl:attribute name="id"><xsl:value-of select="$anchor"/></xsl:attribute>
     1837            </xsl:if>
     1838            <xsl:call-template name="referencename">
     1839               <xsl:with-param name="node" select="." />
     1840            </xsl:call-template>
     1841          </cite>
     1842        </xsl:for-each>
     1843      </xsl:if>
    17891844    </xsl:otherwise>
    17901845  </xsl:choose>
     
    23032358<xsl:template name="insertAuthors">
    23042359
    2305   <xsl:call-template name="insert-conditional-hrule"/>
    2306  
    23072360  <xsl:variable name="number">
    23082361    <xsl:call-template name="get-authors-section-number"/>
    23092362  </xsl:variable>
    23102363   
    2311   <h1 id="{$anchor-prefix}.authors">
    2312     <xsl:call-template name="insert-conditional-pagebreak"/>
    2313     <xsl:if test="$number != ''">
    2314       <a href="#{$anchor-prefix}.section.{$number}" id="{$anchor-prefix}.section.{$number}"><xsl:value-of select="$number"/>.</a>
    2315       <xsl:text> </xsl:text>
    2316     </xsl:if>
    2317     <a href="#{$anchor-prefix}.authors"><xsl:call-template name="get-authors-section-title"/></a>
    2318   </h1>
    2319 
    2320   <xsl:apply-templates select="/rfc/front/author" />
     2364  <xsl:if test="$number!='suppress'">
     2365    <xsl:call-template name="insert-conditional-hrule"/>
     2366   
     2367    <h1 id="{$anchor-prefix}.authors">
     2368      <xsl:call-template name="insert-conditional-pagebreak"/>
     2369      <xsl:if test="$number != ''">
     2370        <a href="#{$anchor-prefix}.section.{$number}" id="{$anchor-prefix}.section.{$number}"><xsl:value-of select="$number"/>.</a>
     2371        <xsl:text> </xsl:text>
     2372      </xsl:if>
     2373      <a href="#{$anchor-prefix}.authors"><xsl:call-template name="get-authors-section-title"/></a>
     2374    </h1>
     2375 
     2376    <xsl:apply-templates select="/rfc/front/author" />
     2377  </xsl:if>
    23212378</xsl:template>
    23222379
     
    25382595cite {
    25392596  font-style: normal;
    2540 }
     2597}<xsl:if test="//x:note">
     2598div.note {
     2599  margin-left: 2em;
     2600}</xsl:if>
    25412601dd {
    25422602  margin-right: 2em;<xsl:if test="$xml2rfc-ext-justification='always'">
     
    36233683<xsl:template match="front" mode="toc">
    36243684 
    3625   <li>
    3626     <xsl:variable name="authors-title">
    3627       <xsl:call-template name="get-authors-section-title"/>
    3628     </xsl:variable>
    3629     <xsl:variable name="authors-number">
    3630       <xsl:call-template name="get-authors-section-number"/>
    3631     </xsl:variable>
    3632     <xsl:call-template name="insert-toc-line">
    3633       <xsl:with-param name="target" select="concat($anchor-prefix,'.authors')"/>
    3634       <xsl:with-param name="title" select="$authors-title"/>
    3635       <xsl:with-param name="number" select="$authors-number"/>
    3636     </xsl:call-template>
    3637   </li>
     3685  <xsl:variable name="authors-title">
     3686    <xsl:call-template name="get-authors-section-title"/>
     3687  </xsl:variable>
     3688  <xsl:variable name="authors-number">
     3689    <xsl:call-template name="get-authors-section-number"/>
     3690  </xsl:variable>
     3691
     3692  <xsl:if test="$authors-number!='suppress'">
     3693    <li>
     3694      <xsl:call-template name="insert-toc-line">
     3695        <xsl:with-param name="target" select="concat($anchor-prefix,'.authors')"/>
     3696        <xsl:with-param name="title" select="$authors-title"/>
     3697        <xsl:with-param name="number" select="$authors-number"/>
     3698      </xsl:call-template>
     3699    </li>
     3700  </xsl:if>
    36383701
    36393702</xsl:template>
     
    38903953  <xsl:choose>
    38913954    <xsl:when test="starts-with($name,'draft-')">
    3892       <xsl:if test="count(//references//reference/seriesInfo[@name='Internet-Draft' and @value=$name])=0">
     3955      <xsl:if test="not(//references//reference/seriesInfo[@name='Internet-Draft' and @value=$name])">
    38933956        <xsl:call-template name="warning">
    38943957          <xsl:with-param name="inline" select="'no'"/>
     
    38983961    </xsl:when>
    38993962    <xsl:otherwise>
    3900       <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$name])=0">
     3963      <xsl:if test="not(//references//reference/seriesInfo[@name='RFC' and @value=$name])">
    39013964        <xsl:call-template name="warning">
    39023965          <xsl:with-param name="inline" select="'no'"/>
     
    39063969    </xsl:otherwise>
    39073970  </xsl:choose>
     3971</xsl:template>
     3972
     3973<xsl:template name="check-anchor">
     3974  <xsl:if test="@anchor and @anchor!=''">
     3975    <!-- check validity of anchor name -->
     3976    <xsl:variable name="test">
     3977      <xsl:element name="{@anchor}"/>
     3978    </xsl:variable>
     3979    <xsl:if test="count(exslt:node-set($test)//*) = 0">
     3980      <xsl:call-template name="error">
     3981        <xsl:with-param name="msg" select="concat('&quot;',@anchor,'&quot; is not a valid XML name')"/>
     3982      </xsl:call-template>
     3983    </xsl:if>
     3984  </xsl:if>
     3985</xsl:template>
     3986
     3987<xsl:template name="copy-anchor">
     3988  <xsl:call-template name="check-anchor"/>
     3989  <xsl:if test="@anchor and @anchor!=''">
     3990    <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
     3991  </xsl:if>
    39083992</xsl:template>
    39093993
     
    39274011<xsl:template name="get-paragraph-number">
    39284012  <!-- get section number of ancestor section element, then add t or figure number -->
    3929   <xsl:if test="ancestor::section and not(ancestor::section[@myns:unnumbered='unnumbered']) and not(ancestor::x:blockquote)">
    3930     <xsl:for-each select="ancestor::section[1]"><xsl:call-template name="get-section-number" />.p.</xsl:for-each><xsl:number count="t|figure|x:blockquote" />
     4013  <xsl:if test="ancestor::section and not(ancestor::section[@myns:unnumbered='unnumbered']) and not(ancestor::x:blockquote) and not(ancestor::x:note)">
     4014    <xsl:for-each select="ancestor::section[1]"><xsl:call-template name="get-section-number" />.p.</xsl:for-each><xsl:number count="t|figure|x:blockquote|x:note" />
    39314015  </xsl:if>
    39324016</xsl:template>
     
    39774061</xsl:template>
    39784062
     4063<!-- Notes -->
     4064<xsl:template match="x:note">
     4065  <div class="note">
     4066    <xsl:apply-templates/>
     4067  </div>
     4068</xsl:template>
     4069
    39794070<xsl:template match="x:bcp14">
    39804071  <!-- check valid BCP14 keywords, then emphasize them -->
     
    40224113<xsl:template match="x:dfn">
    40234114  <dfn>
    4024     <xsl:if test="@anchor">
    4025       <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
    4026     </xsl:if>
     4115    <xsl:call-template name="copy-anchor"/>
    40274116    <xsl:apply-templates/>
    40284117  </dfn>
     
    40414130    <xsl:apply-templates/>
    40424131  </sup>
     4132</xsl:template>
     4133
     4134<!-- bold -->
     4135<xsl:template match="x:highlight">
     4136  <b>
     4137    <xsl:apply-templates/>
     4138  </b>
    40434139</xsl:template>
    40444140
     
    42744370</xsl:template>
    42754371
     4372<!-- author handling extensions -->
     4373<xsl:template match="x:include-author">
     4374  <xsl:for-each select="/*/front/author[@anchor=current()/@target]">
     4375    <xsl:apply-templates select="."/>
     4376  </xsl:for-each>
     4377</xsl:template>
     4378
    42764379<!-- experimental annotation support -->
    42774380
     
    44884591 
    44894592  <!-- check anchor names -->
    4490   <xsl:variable name="badAnchors" select="//*[starts-with(@anchor,concat($anchor-prefix,'.'))]" />
     4593  <xsl:variable name="badAnchors"
     4594    select="//*[starts-with(@anchor,concat($anchor-prefix,'.'))][@anchor!=concat($anchor-prefix,'.authors') and /*/x:assign-section-number[@number='suppress' and @builtin-target='authors']]" />
     4595 
    44914596  <xsl:if test="$badAnchors">
    4492     <p class="warning">
     4597    <xsl:variable name="text">
    44934598      The following anchor names may collide with internally generated anchors because of their prefix "<xsl:value-of select="$anchor-prefix" />":
    44944599      <xsl:for-each select="$badAnchors">
    44954600        <xsl:value-of select="@anchor"/><xsl:if test="position()!=last()">, </xsl:if>
    44964601      </xsl:for-each>
    4497     </p>
    4498     <xsl:message>
    4499       The following anchor names may collide with internally generated anchors because of their prefix "<xsl:value-of select="$anchor-prefix" />":
    4500       <xsl:for-each select="$badAnchors">
    4501         <xsl:value-of select="@anchor"/><xsl:if test="position()!=last()">, </xsl:if>
    4502       </xsl:for-each>
    4503     </xsl:message>
     4602    </xsl:variable>
     4603    <xsl:call-template name="warning">
     4604      <xsl:with-param name="msg"><xsl:value-of select="$text"/></xsl:with-param>
     4605    </xsl:call-template>
     4606  </xsl:if>
     4607 
     4608  <!-- check ABNF syntax references -->
     4609  <xsl:if test="//artwork[@type='abnf2616']">
     4610    <xsl:if test="not(//reference/seriesInfo[@name='RFC' and (@value='2068' or @value='2616')])">
     4611      <xsl:call-template name="warning">
     4612        <xsl:with-param name="inline">no</xsl:with-param>
     4613        <xsl:with-param name="msg">document uses HTTP-style ABNF syntax, but doesn't reference RFC 2068 or 2616.</xsl:with-param>
     4614      </xsl:call-template>
     4615    </xsl:if>
     4616  </xsl:if>
     4617  <xsl:if test="//artwork[@type='abnf']">
     4618    <xsl:if test="not(//reference/seriesInfo[@name='RFC' and (@value='2234' or @value='4234' or @value='5234')])">
     4619      <xsl:call-template name="warning">
     4620        <xsl:with-param name="inline">no</xsl:with-param>
     4621        <xsl:with-param name="msg">document uses ABNF syntax, but doesn't reference RFC 2234, 4234 or 5234.</xsl:with-param>
     4622      </xsl:call-template>
     4623    </xsl:if>
    45044624  </xsl:if>
    45054625 
     
    45074627  <xsl:variable name="badTargets" select="//xref[not(@target=//@anchor) and not(ancestor::ed:del)]" />
    45084628  <xsl:if test="$badTargets">
    4509     <p class="error">
     4629    <xsl:variable name="text">
    45104630      The following target names do not exist:
    45114631      <xsl:for-each select="$badTargets">
    45124632        <xsl:value-of select="@target"/><xsl:if test="position()!=last()">, </xsl:if>
    45134633      </xsl:for-each>
    4514     </p>
    4515     <xsl:message>
    4516       The following target names do not exist:
    4517       <xsl:for-each select="$badTargets">
    4518         <xsl:value-of select="@target"/><xsl:if test="position()!=last()">, </xsl:if>
    4519       </xsl:for-each>
    4520     </xsl:message>
     4634    </xsl:variable>
     4635    <xsl:call-template name="warning">
     4636      <xsl:with-param name="msg"><xsl:value-of select="$text"/></xsl:with-param>
     4637    </xsl:call-template>
    45214638  </xsl:if>
    45224639 
     
    47694886    </xsl:variable>
    47704887    <table summary="{preamble}" class="{$style}" cellpadding="3" cellspacing="0">
    4771       <thead>
    4772         <tr>
    4773           <xsl:apply-templates select="ttcol" />
    4774         </tr>
    4775       </thead>
     4888      <xsl:if test="ttcol!=''">
     4889        <!-- skip header when all column titles are empty -->
     4890        <thead>
     4891          <tr>
     4892            <xsl:apply-templates select="ttcol" />
     4893          </tr>
     4894        </thead>
     4895      </xsl:if>
    47764896      <tbody>
    47774897        <xsl:variable name="columns" select="count(ttcol)" />
     
    50115131    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    50125132    <!-- when RCS keyword substitution in place, add version info -->
    5013     <xsl:if test="contains('$Revision: 1.387 $',':')">
    5014       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.387 $', 'Revision: '),'$','')),', ')" />
     5133    <xsl:if test="contains('$Revision: 1.400 $',':')">
     5134      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.400 $', 'Revision: '),'$','')),', ')" />
    50155135    </xsl:if>
    5016     <xsl:if test="contains('$Date: 2008-08-08 13:06:55 $',':')">
    5017       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008-08-08 13:06:55 $', 'Date: '),'$','')),', ')" />
     5136    <xsl:if test="contains('$Date: 2008-10-10 14:04:14 $',':')">
     5137      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008-10-10 14:04:14 $', 'Date: '),'$','')),', ')" />
    50185138    </xsl:if>
    50195139    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
Note: See TracChangeset for help on using the changeset viewer.