Changeset 1145 for rfc2629xslt/rfc2629.xslt
- Timestamp:
- 01/03/11 09:24:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629.xslt
r1103 r1145 744 744 <xsl:otherwise> 745 745 <xsl:variable name="start" select="substring-before($content,' ')"/> 746 <xsl:variable name="end" select="substring-after($content,' ')"/> 747 <xsl:if test="string-length($start) > 69 + $indent"> 746 <xsl:variable name="end" select="substring-after($content,' ')"/> 747 <xsl:variable name="max"> 748 <xsl:choose> 749 <xsl:when test="$indent!=''"><xsl:value-of select="69 + $indent"/></xsl:when> 750 <xsl:otherwise>69</xsl:otherwise> 751 </xsl:choose> 752 </xsl:variable> 753 <xsl:if test="string-length($start) > $max"> 748 754 <xsl:call-template name="warning"> 749 755 <xsl:with-param name="inline" select="'no'"/> … … 1158 1164 <xsl:apply-templates select="x:boilerplate"/> 1159 1165 <xsl:apply-templates select="abstract" /> 1160 <xsl:apply-templates select="note" /> 1166 1167 <!-- Notes except IESG Notes --> 1168 <xsl:apply-templates select="note[@title!='IESG Note' or $xml2rfc-private!='']" /> 1161 1169 <!-- show notes inside change tracking as well --> 1162 <xsl:apply-templates select="ed:replace[.//note ]" />1170 <xsl:apply-templates select="ed:replace[.//note[@title!='IESG Note' or $xml2rfc-private!='']]" /> 1163 1171 1164 1172 <xsl:if test="$xml2rfc-private='' and $abstract-first"> … … 1265 1273 <!-- numbered list inside numbered list --> 1266 1274 <xsl:template match="list[@style='numbers']/t/list[@style='numbers']" priority="9"> 1267 <ol style="list-style-type: lower-alpha">1275 <ol class="la"> 1268 1276 <xsl:call-template name="insertInsDelClass"/> 1269 1277 <xsl:apply-templates /> … … 1272 1280 1273 1281 <xsl:template match="list[@style='letters']"> 1274 <ol style="list-style-type: lower-alpha">1282 <ol class="la"> 1275 1283 <xsl:call-template name="insertInsDelClass"/> 1276 1284 <xsl:apply-templates /> … … 1280 1288 <!-- nested lettered list uses uppercase --> 1281 1289 <xsl:template match="list//t//list[@style='letters']" priority="9"> 1282 <ol style="list-style-type: upper-alpha">1290 <ol class="ua"> 1283 1291 <xsl:call-template name="insertInsDelClass"/> 1284 1292 <xsl:apply-templates /> … … 3288 3296 margin-right: 2em; 3289 3297 } 3298 ol.la { 3299 list-style-type: lower-alpha; 3300 } 3301 ol.ua { 3302 list-style-type: upper-alpha; 3303 } 3290 3304 ol p { 3291 3305 margin-left: 0em; … … 4439 4453 </section> 4440 4454 4455 <!-- IESG Note goes here; see http://www.rfc-editor.org/rfc-style-guide/rfc-style --> 4456 <xsl:copy-of select="/rfc/front/note[@title='IESG Note']"/> 4457 4441 4458 <xsl:choose> 4442 4459 <xsl:when test="$ipr-2008-11"> … … 6224 6241 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6225 6242 <!-- when RCS keyword substitution in place, add version info --> 6226 <xsl:if test="contains('$Revision: 1.54 0$',':')">6227 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.54 0$', 'Revision: '),'$','')),', ')" />6243 <xsl:if test="contains('$Revision: 1.543 $',':')"> 6244 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.543 $', 'Revision: '),'$','')),', ')" /> 6228 6245 </xsl:if> 6229 <xsl:if test="contains('$Date: 2011-0 1-10 09:27:20 $',':')">6230 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-0 1-10 09:27:20 $', 'Date: '),'$','')),', ')" />6246 <xsl:if test="contains('$Date: 2011-02-18 21:03:40 $',':')"> 6247 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-02-18 21:03:40 $', 'Date: '),'$','')),', ')" /> 6231 6248 </xsl:if> 6232 6249 <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.