Changeset 440 for rfc2629xslt/rfc2629toFO.xslt
- Timestamp:
- 29/01/09 15:34:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toFO.xslt
r329 r440 30 30 --> 31 31 32 <xsl: stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"32 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 33 33 version="1.0" 34 34 35 xmlns:ed="http://greenbytes.de/2002/rfcedit" 35 36 xmlns:exslt="http://exslt.org/common" … … 40 41 xmlns:x="http://purl.org/net/xml2rfc/ext" 41 42 42 exclude-result-prefixes="ed exslt msxsl 43 exclude-result-prefixes="ed exslt msxsl myns rdf x" 43 44 > 44 45 … … 134 135 <xsl:template name="add-artwork-attr"> 135 136 <xsl:choose> 136 <xsl:when test="@type='abnf' or @type='abnf2 616' or @type='application/xml-dtd' or @type='application/relax-ng-compact-syntax'">137 <xsl:when test="@type='abnf' or @type='abnf2045' or @type='abnf2616' or @type='application/xml-dtd' or @type='application/relax-ng-compact-syntax'"> 137 138 <!-- just display inline --> 138 139 </xsl:when> … … 1087 1088 <xsl:when test="@x:fmt='none'"> 1088 1089 <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link"> 1089 <xsl:if test=" local-name($node)='reference'and $xml2rfc-ext-include-references-in-index='yes'">1090 <xsl:if test="$node/self::reference and $xml2rfc-ext-include-references-in-index='yes'"> 1090 1091 <xsl:attribute name="id"> 1091 1092 <xsl:value-of select="$anchor"/> … … 1106 1107 </fo:basic-link> 1107 1108 </xsl:when> 1108 <xsl:when test=" local-name($node)='section' or local-name($node)='appendix'">1109 <xsl:when test="$node/self::section or $node/self::appendix"> 1109 1110 <xsl:apply-templates/> 1110 <xsl:variable name="context" select="."/>1111 1111 <xsl:text> (</xsl:text> 1112 1112 <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link"> … … 1142 1142 <xsl:template match="xref[not(node())]"> 1143 1143 1144 <xsl:variable name="context" select="." />1145 1144 <xsl:variable name="target" select="@target" /> 1146 1145 <xsl:variable name="anchor"><xsl:value-of select="$anchor-prefix"/>.xref.<xsl:value-of select="@target"/>.<xsl:number level="any" count="xref[@target=$target]"/></xsl:variable> … … 1154 1153 1155 1154 <!-- Section links --> 1156 <xsl:when test=" name($node)='section' or name($node)='appendix'">1155 <xsl:when test="$node/self::section or $node/self::appendix"> 1157 1156 <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link"> 1158 1157 <!-- insert id when a backlink to this xref is needed in the index --> … … 1172 1171 1173 1172 <!-- Figure links --> 1174 <xsl:when test=" name($node)='figure'">1173 <xsl:when test="$node//self::figure"> 1175 1174 <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link"> 1176 1175 <xsl:variable name="figcnt"> … … 1194 1193 1195 1194 <!-- Table links --> 1196 <xsl:when test=" name($node)='texttable'">1195 <xsl:when test="$node/self::texttable"> 1197 1196 <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link"> 1198 1197 <xsl:variable name="tabcnt"> … … 1216 1215 1217 1216 <!-- Reference links --> 1218 <xsl:when test=" name($node)='reference'">1217 <xsl:when test="$node/self::reference"> 1219 1218 <!-- 1220 1219 Formats: … … 1572 1571 1573 1572 <xsl:choose> 1574 <xsl:when test="$in-artwork ">1573 <xsl:when test="$in-artwork2"> 1575 1574 <fo:wrapper font-family="monospace"><xsl:value-of select="concat(@subitem,' ')" /></fo:wrapper> 1576 1575 </xsl:when> … … 2541 2540 </xsl:template> 2542 2541 2543 </xsl: stylesheet>2542 </xsl:transform>
Note: See TracChangeset
for help on using the changeset viewer.