Ignore:
Timestamp:
Jan 29, 2009, 7:34:57 AM (11 years ago)
Author:
julian.reschke@…
Message:

update to latest version of rfc2629.xslt, add <workgroup> element throughout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toFO.xslt

    r329 r440  
    3030-->
    3131
    32 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     32<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3333    version="1.0"
     34
    3435    xmlns:ed="http://greenbytes.de/2002/rfcedit"
    3536    xmlns:exslt="http://exslt.org/common"
     
    4041    xmlns:x="http://purl.org/net/xml2rfc/ext"
    4142
    42     exclude-result-prefixes="ed exslt msxsl  myns rdf x"
     43    exclude-result-prefixes="ed exslt msxsl myns rdf x"
    4344>
    4445
     
    134135<xsl:template name="add-artwork-attr">
    135136  <xsl:choose>
    136     <xsl:when test="@type='abnf' or @type='abnf2616' 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'">
    137138      <!-- just display inline -->
    138139    </xsl:when>
     
    10871088    <xsl:when test="@x:fmt='none'">
    10881089      <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'">
    10901091          <xsl:attribute name="id">
    10911092            <xsl:value-of select="$anchor"/>
     
    11061107      </fo:basic-link>
    11071108    </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">
    11091110      <xsl:apply-templates/>
    1110       <xsl:variable name="context" select="."/>
    11111111      <xsl:text> (</xsl:text>
    11121112      <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link">
     
    11421142<xsl:template match="xref[not(node())]">
    11431143
    1144   <xsl:variable name="context" select="." />
    11451144        <xsl:variable name="target" select="@target" />
    11461145  <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>
     
    11541153
    11551154    <!-- Section links -->
    1156     <xsl:when test="name($node)='section' or name($node)='appendix'">
     1155    <xsl:when test="$node/self::section or $node/self::appendix">
    11571156      <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link">
    11581157        <!-- insert id when a backlink to this xref is needed in the index -->
     
    11721171
    11731172    <!-- Figure links -->
    1174     <xsl:when test="name($node)='figure'">
     1173    <xsl:when test="$node//self::figure">
    11751174      <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link">
    11761175        <xsl:variable name="figcnt">
     
    11941193
    11951194    <!-- Table links -->
    1196     <xsl:when test="name($node)='texttable'">
     1195    <xsl:when test="$node/self::texttable">
    11971196      <fo:basic-link internal-destination="{$target}" xsl:use-attribute-sets="internal-link">
    11981197        <xsl:variable name="tabcnt">
     
    12161215
    12171216    <!-- Reference links -->
    1218     <xsl:when test="name($node)='reference'">
     1217    <xsl:when test="$node/self::reference">
    12191218      <!--
    12201219      Formats:
     
    15721571                 
    15731572                    <xsl:choose>
    1574                       <xsl:when test="$in-artwork">
     1573                      <xsl:when test="$in-artwork2">
    15751574                        <fo:wrapper font-family="monospace"><xsl:value-of select="concat(@subitem,' ')" /></fo:wrapper>
    15761575                      </xsl:when>
     
    25412540  </xsl:template>
    25422541
    2543 </xsl:stylesheet>
     2542</xsl:transform>
Note: See TracChangeset for help on using the changeset viewer.