Ignore:
Timestamp:
Mar 1, 2010, 1:10:00 AM (10 years ago)
Author:
julian.reschke@…
Message:

latest version of rfc2629.xslt, bump up document dates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toXHTML.xslt

    r754 r764  
    13031303      <xsl:with-param name="msg">unused reference '<xsl:value-of select="@anchor"/>'</xsl:with-param>
    13041304    </xsl:call-template>
     1305  </xsl:if>
     1306
     1307  <!-- check normative/informative -->
     1308  <xsl:variable name="t-r-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/>
     1309  <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/>
     1310  <xsl:if test="$r-is-normative and not(ancestor::ed:del)">
     1311    <xsl:variable name="tst">
     1312      <xsl:for-each select="key('xref-item',$anchor)">
     1313        <xsl:variable name="t-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/>
     1314        <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/>
     1315        <xsl:if test="$is-normative">OK</xsl:if>
     1316      </xsl:for-each>
     1317    </xsl:variable>
     1318    <xsl:if test="$tst=''">
     1319      <xsl:call-template name="warning">
     1320        <xsl:with-param name="inline" select="'no'"/>
     1321        <xsl:with-param name="msg">all references to the normative reference '<xsl:value-of select="@anchor"/>' appear to be informative</xsl:with-param>
     1322      </xsl:call-template>
     1323    </xsl:if>
    13051324  </xsl:if>
    13061325
     
    20262045
    20272046    <xsl:otherwise>
     2047      <!-- check normative/informative -->
     2048      <xsl:variable name="t-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/>
     2049      <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/>
     2050      <xsl:if test="count($node)=1 and $is-normative">
     2051        <xsl:variable name="t-r-is-normative" select="$node/ancestor-or-self::*[@x:nrm][1]"/>
     2052        <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/>
     2053        <xsl:if test="not($r-is-normative)">
     2054          <xsl:call-template name="warning">
     2055            <xsl:with-param name="inline" select="'no'"/>
     2056            <xsl:with-param name="msg" select="concat('Potentially normative reference to ',@target,' not referenced normatively')"/>
     2057          </xsl:call-template>
     2058        </xsl:if>
     2059      </xsl:if>
     2060     
    20282061      <a xmlns="http://www.w3.org/1999/xhtml" href="#{$target}">
    20292062        <xsl:if test="@format='none'">
     
    20642097    <xsl:variable name="node" select="key('anchor-item',$xref/@target)"/>
    20652098    <xsl:if test="count($node)=0 and not($node/ancestor::ed:del)">
    2066       <xsl:call-template name="error">
    2067         <xsl:with-param name="msg" select="concat('Undefined target: ',$xref/@target)"/>
    2068       </xsl:call-template>
     2099      <xsl:for-each select="$xref">
     2100        <xsl:call-template name="error">
     2101          <xsl:with-param name="msg" select="concat('Undefined target: ',$xref/@target)"/>
     2102        </xsl:call-template>
     2103      </xsl:for-each>
    20692104    </xsl:if>
    2070  
     2105
    20712106    <xsl:choose>
    20722107   
     
    21762211      <xsl:when test="$node/self::reference">
    21772212 
     2213        <!-- check normative/informative -->
     2214        <xsl:variable name="t-is-normative" select="$xref/ancestor-or-self::*[@x:nrm][1]"/>
     2215        <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/>
     2216        <xsl:if test="count($node)=1 and $is-normative">
     2217          <xsl:variable name="t-r-is-normative" select="$node/ancestor-or-self::*[@x:nrm][1]"/>
     2218          <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/>
     2219          <xsl:if test="not($r-is-normative)">
     2220            <xsl:for-each select="$xref">
     2221              <xsl:call-template name="warning">
     2222                <xsl:with-param name="inline" select="'no'"/>
     2223                <xsl:with-param name="msg" select="concat('Potentially normative reference to ',$xref/@target,' not referenced normatively')"/>
     2224              </xsl:call-template>
     2225            </xsl:for-each>
     2226          </xsl:if>
     2227        </xsl:if>
     2228     
    21782229        <xsl:variable name="href">
    21792230          <xsl:call-template name="computed-target">
     
    59215972    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    59225973    <!-- when RCS keyword substitution in place, add version info -->
    5923     <xsl:if test="contains('$Revision: 1.508 $',':')">
    5924       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.508 $', 'Revision: '),'$','')),', ')"/>
     5974    <xsl:if test="contains('$Revision: 1.510 $',':')">
     5975      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.510 $', 'Revision: '),'$','')),', ')"/>
    59255976    </xsl:if>
    5926     <xsl:if test="contains('$Date: 2010-01-29 12:52:17 $',':')">
    5927       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-01-29 12:52:17 $', 'Date: '),'$','')),', ')"/>
     5977    <xsl:if test="contains('$Date: 2010-02-20 17:14:25 $',':')">
     5978      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-02-20 17:14:25 $', 'Date: '),'$','')),', ')"/>
    59285979    </xsl:if>
    59295980    <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.