Changeset 446 for rfc2629xslt/rfc2629toFO.xslt
- Timestamp:
- 20/02/09 14:59:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toFO.xslt
r440 r446 2 2 XSLT transformation from RFC2629 XML format to XSL-FO 3 3 4 Copyright (c) 2006-200 8, Julian Reschke (julian.reschke@greenbytes.de)4 Copyright (c) 2006-2009, Julian Reschke (julian.reschke@greenbytes.de) 5 5 All rights reserved. 6 6 … … 346 346 </xsl:if> 347 347 348 <xsl:apply-templates select="x:boilerplate"/> 348 349 <xsl:apply-templates select="abstract" /> 349 350 <xsl:apply-templates select="note" /> … … 751 752 <xsl:choose> 752 753 <xsl:when test="string-length($target) > 0"> 753 <fo:basic-link external-destination="url('{$target}')" xsl:use-attribute-sets="external-link"><xsl:value-of select=" front/title" /></fo:basic-link>754 <fo:basic-link external-destination="url('{$target}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="normalize-space(front/title)" /></fo:basic-link> 754 755 </xsl:when> 755 756 <xsl:otherwise> 756 <xsl:value-of select=" front/title" />757 <xsl:value-of select="normalize-space(front/title)" /> 757 758 </xsl:otherwise> 758 759 </xsl:choose> … … 940 941 <xsl:template name="section-maker"> 941 942 <xsl:variable name="sectionNumber"> 942 <xsl:if test="not(@myns:unnumbered)"><xsl:call-template name="get-section-number" /></xsl:if> 943 <xsl:choose> 944 <xsl:when test="@myns:unnumbered"></xsl:when> 945 <xsl:when test="ancestor::x:boilerplate"></xsl:when> 946 <xsl:otherwise><xsl:call-template name="get-section-number" /></xsl:otherwise> 947 </xsl:choose> 943 948 </xsl:variable> 944 949 … … 959 964 </xsl:template> 960 965 961 <xsl:template match="section[count(ancestor::section) = 0 and @myns:notoclink]">966 <xsl:template match="section[count(ancestor::section) = 0 and (@myns:notoclink or ancestor::x:boilerplate)]"> 962 967 963 968 <fo:block xsl:use-attribute-sets="h1"> … … 970 975 </xsl:template> 971 976 972 <xsl:template match="section[count(ancestor::section) = 0 and not(@myns:notoclink )]">977 <xsl:template match="section[count(ancestor::section) = 0 and not(@myns:notoclink or ancestor::x:boilerplate)]"> 973 978 974 979 <fo:block xsl:use-attribute-sets="h1 newpage"> … … 2498 2503 </xsl:template> 2499 2504 2505 <!-- boilerplate --> 2506 <xsl:template match="x:boilerplate"> 2507 <xsl:apply-templates/> 2508 </xsl:template> 2509 2500 2510 <!-- experimental: format URI with zero-width spaces to ease line breaks --> 2501 2511
Note: See TracChangeset
for help on using the changeset viewer.