forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/common/xslt/fo pdfoutline.xsl
Date Mon, 02 Jun 2003 03:17:19 GMT
jefft       2003/06/01 20:17:18

  Modified:    src/resources/skins/common/xslt/fo pdfoutline.xsl
  Log:
  document2fo.xsl now uses the page's @id if present, so the outline should too
  
  Revision  Changes    Path
  1.3       +12 -1     xml-forrest/src/resources/skins/common/xslt/fo/pdfoutline.xsl
  
  Index: pdfoutline.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/fo/pdfoutline.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- pdfoutline.xsl	4 Dec 2002 14:14:29 -0000	1.2
  +++ pdfoutline.xsl	2 Jun 2003 03:17:18 -0000	1.3
  @@ -16,11 +16,22 @@
   </xsl:template>
   
   <xsl:template match="section" mode="outline">
  -  <fox:outline internal-destination="{generate-id()}">
  +  <fox:outline>
  +    <xsl:attribute name="internal-destination">
  +      <xsl:choose>
  +        <xsl:when test="normalize-space(@id)!=''">
  +          <xsl:value-of select="@id"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:value-of select="generate-id()"/>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:attribute>
       <fox:label>
         <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/>
         <xsl:text> </xsl:text>
         <xsl:value-of select="title"/>
  +
       </fox:label>
       <xsl:apply-templates select="section" mode="outline"/>
     </fox:outline>
  
  
  

Mime
View raw message