Changeset 764 for rfc2629xslt/rfc2629.xslt
- Timestamp:
- 01/03/10 09:10:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629.xslt
r754 r764 1435 1435 <xsl:with-param name="msg">unused reference '<xsl:value-of select="@anchor"/>'</xsl:with-param> 1436 1436 </xsl:call-template> 1437 </xsl:if> 1438 1439 <!-- check normative/informative --> 1440 <xsl:variable name="t-r-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/> 1441 <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/> 1442 <xsl:if test="$r-is-normative and not(ancestor::ed:del)"> 1443 <xsl:variable name="tst"> 1444 <xsl:for-each select="key('xref-item',$anchor)"> 1445 <xsl:variable name="t-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/> 1446 <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/> 1447 <xsl:if test="$is-normative">OK</xsl:if> 1448 </xsl:for-each> 1449 </xsl:variable> 1450 <xsl:if test="$tst=''"> 1451 <xsl:call-template name="warning"> 1452 <xsl:with-param name="inline" select="'no'"/> 1453 <xsl:with-param name="msg">all references to the normative reference '<xsl:value-of select="@anchor"/>' appear to be informative</xsl:with-param> 1454 </xsl:call-template> 1455 </xsl:if> 1437 1456 </xsl:if> 1438 1457 … … 2158 2177 2159 2178 <xsl:otherwise> 2179 <!-- check normative/informative --> 2180 <xsl:variable name="t-is-normative" select="ancestor-or-self::*[@x:nrm][1]"/> 2181 <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/> 2182 <xsl:if test="count($node)=1 and $is-normative"> 2183 <xsl:variable name="t-r-is-normative" select="$node/ancestor-or-self::*[@x:nrm][1]"/> 2184 <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/> 2185 <xsl:if test="not($r-is-normative)"> 2186 <xsl:call-template name="warning"> 2187 <xsl:with-param name="inline" select="'no'"/> 2188 <xsl:with-param name="msg" select="concat('Potentially normative reference to ',@target,' not referenced normatively')"/> 2189 </xsl:call-template> 2190 </xsl:if> 2191 </xsl:if> 2192 2160 2193 <a href="#{$target}"> 2161 2194 <xsl:if test="@format='none'"> … … 2196 2229 <xsl:variable name="node" select="key('anchor-item',$xref/@target)" /> 2197 2230 <xsl:if test="count($node)=0 and not($node/ancestor::ed:del)"> 2198 <xsl:call-template name="error"> 2199 <xsl:with-param name="msg" select="concat('Undefined target: ',$xref/@target)"/> 2200 </xsl:call-template> 2231 <xsl:for-each select="$xref"> 2232 <xsl:call-template name="error"> 2233 <xsl:with-param name="msg" select="concat('Undefined target: ',$xref/@target)"/> 2234 </xsl:call-template> 2235 </xsl:for-each> 2201 2236 </xsl:if> 2202 2237 2203 2238 <xsl:choose> 2204 2239 … … 2308 2343 <xsl:when test="$node/self::reference"> 2309 2344 2345 <!-- check normative/informative --> 2346 <xsl:variable name="t-is-normative" select="$xref/ancestor-or-self::*[@x:nrm][1]"/> 2347 <xsl:variable name="is-normative" select="$t-is-normative/@x:nrm='true'"/> 2348 <xsl:if test="count($node)=1 and $is-normative"> 2349 <xsl:variable name="t-r-is-normative" select="$node/ancestor-or-self::*[@x:nrm][1]"/> 2350 <xsl:variable name="r-is-normative" select="$t-r-is-normative/@x:nrm='true'"/> 2351 <xsl:if test="not($r-is-normative)"> 2352 <xsl:for-each select="$xref"> 2353 <xsl:call-template name="warning"> 2354 <xsl:with-param name="inline" select="'no'"/> 2355 <xsl:with-param name="msg" select="concat('Potentially normative reference to ',$xref/@target,' not referenced normatively')"/> 2356 </xsl:call-template> 2357 </xsl:for-each> 2358 </xsl:if> 2359 </xsl:if> 2360 2310 2361 <xsl:variable name="href"> 2311 2362 <xsl:call-template name="computed-target"> … … 6063 6114 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6064 6115 <!-- when RCS keyword substitution in place, add version info --> 6065 <xsl:if test="contains('$Revision: 1.5 08$',':')">6066 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.5 08$', 'Revision: '),'$','')),', ')" />6116 <xsl:if test="contains('$Revision: 1.510 $',':')"> 6117 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.510 $', 'Revision: '),'$','')),', ')" /> 6067 6118 </xsl:if> 6068 <xsl:if test="contains('$Date: 2010-0 1-29 12:52:17$',':')">6069 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-0 1-29 12:52:17$', 'Date: '),'$','')),', ')" />6119 <xsl:if test="contains('$Date: 2010-02-20 17:14:25 $',':')"> 6120 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-02-20 17:14:25 $', 'Date: '),'$','')),', ')" /> 6070 6121 </xsl:if> 6071 6122 <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.