Changeset 799 for rfc2629xslt/rfc2629toXHTML.xslt
- Timestamp:
- 01/04/10 07:49:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toXHTML.xslt
r764 r799 243 243 <xsl:with-param name="attr" select="'duplex'"/> 244 244 <xsl:with-param name="default" select="'no'"/> 245 </xsl:call-template>246 </xsl:param>247 248 <!-- experimental support for TLP 4.0, work in progress -->249 250 <xsl:param name="xml2rfc-ext-tlp">251 <xsl:call-template name="parse-pis">252 <xsl:with-param name="nodes" select="/processing-instruction('rfc-ext')"/>253 <xsl:with-param name="attr" select="'tlp'"/>254 <xsl:with-param name="default" select="''"/>255 245 </xsl:call-template> 256 246 </xsl:param> … … 364 354 <!-- RFC boilerplate as defined in RFC 5741, and deployed end of Dec 2009 --> 365 355 <xsl:when test="$pub-yearmonth >= 201001 or ($rfcno=5741 or $rfcno=5742 or $rfcno=5743)">2010</xsl:when> 366 <xsl:when test="$xml2rfc-ext-tlp='4'">2010</xsl:when>367 356 <xsl:otherwise/> 368 357 </xsl:choose> … … 389 378 <xsl:variable name="ipr-2009-09" select="( ( not(/rfc/@number) and $pub-yearmonth >= 200911 ) or ( /rfc/@number and $pub-yearmonth >= 200909 and $rfcno!=5582 and $rfcno!=5621 and $rfcno!=5632 and $rfcno!=5645 and $rfcno!=5646 and $rfcno!=5681 ) )"/> 390 379 391 <!-- this makes the Jan 2010 TLP text depend on the tlp ext PI380 <!-- this makes the Jan 2010 TLP text depend on the publication date to be >= 2010-04 392 381 for IDs, and around 2010-01 for RFCs--> 393 <xsl:variable name="ipr-2010-01" select="( ( not(/rfc/@number) and $ xml2rfc-ext-tlp='4') or ( /rfc/@number and ($pub-yearmonth >= 201001 or $rfcno=5741 or $rfcno=5742 or $rfcno=5743) ) )"/>382 <xsl:variable name="ipr-2010-01" select="( ( not(/rfc/@number) and $pub-yearmonth >= 201004 ) or ( /rfc/@number and ($pub-yearmonth >= 201001 or $rfcno=5741 or $rfcno=5742 or $rfcno=5743) ) )"/> 394 383 395 384 <!-- see http://mailman.rfc-editor.org/pipermail/rfc-interest/2009-June/001373.html --> … … 659 648 <xsl:if test="@role"> 660 649 (<xsl:value-of select="@role"/>) 650 </xsl:if> 651 <!-- annotation support for Martin "uuml" Duerst --> 652 <xsl:if test="@x:annotation"> 653 <xsl:text> </xsl:text> 654 <i><xsl:value-of select="@x:annotation"/></i> 661 655 </xsl:if> 662 656 <!-- components of name (hidden from display --> … … 768 762 <xsl:text>URI: </xsl:text> 769 763 <a href="{$uri}" class="url"><xsl:value-of select="$uri"/></a> 764 <xsl:if test="@x:annotation"> 765 <xsl:text> </xsl:text> 766 <i><xsl:value-of select="@x:annotation"/></i> 767 </xsl:if> 770 768 </span> 771 769 </xsl:for-each> … … 2569 2567 <xsl:text>,</xsl:text> 2570 2568 </xsl:if> 2569 </xsl:if> 2570 <xsl:if test="$xml2rfc-ext-pub-day='' and /rfc/@docName and not(substring(/rfc/@docName, string-length(/rfc/@docName) - string-length('-latest') + 1) = '-latest')"> 2571 <xsl:call-template name="warning"> 2572 <xsl:with-param name="msg" select="concat('/rfc/front/date/@day appears to be missing for a historic draft dated ', $pub-yearmonth)"/> 2573 <xsl:with-param name="inline" select="'no'"/> 2574 </xsl:call-template> 2571 2575 </xsl:if> 2572 2576 <xsl:value-of select="concat(' ',$xml2rfc-ext-pub-year)"/> … … 5972 5976 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 5973 5977 <!-- when RCS keyword substitution in place, add version info --> 5974 <xsl:if test="contains('$Revision: 1.51 0$',':')">5975 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.51 0$', 'Revision: '),'$','')),', ')"/>5978 <xsl:if test="contains('$Revision: 1.517 $',':')"> 5979 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.517 $', 'Revision: '),'$','')),', ')"/> 5976 5980 </xsl:if> 5977 <xsl:if test="contains('$Date: 2010-0 2-20 17:14:25$',':')">5978 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-0 2-20 17:14:25$', 'Date: '),'$','')),', ')"/>5981 <xsl:if test="contains('$Date: 2010-03-31 18:24:38 $',':')"> 5982 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-03-31 18:24:38 $', 'Date: '),'$','')),', ')"/> 5979 5983 </xsl:if> 5980 5984 <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.