forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/common/xslt/fo document2fo.xsl
Date Thu, 18 Sep 2003 14:49:34 GMT
cheche      2003/09/18 07:49:34

  Modified:    src/resources/skins/common/xslt/fo document2fo.xsl
  Log:
  Added basic-link support to toc.
  Submitted by:	Eric Burghard
  
  Revision  Changes    Path
  1.18      +14 -10    xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl
  
  Index: document2fo.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- document2fo.xsl	16 Sep 2003 23:12:13 -0000	1.17
  +++ document2fo.xsl	18 Sep 2003 14:49:34 -0000	1.18
  @@ -707,11 +707,13 @@
     <xsl:template match="section" mode="toc">
       <fo:block space-before="5pt" text-align-last="justify">
         <fo:inline>
  -        <xsl:number count="section" format="1.1.1.1.1.1.1" level="multiple" />
  -        <xsl:text>. </xsl:text>
  -        <xsl:value-of select="title" />
  -        <fo:leader leader-pattern="dots" />
  -        <fo:page-number-citation ref-id="{generate-id(  )}" />
  +        <fo:basic-link internal-destination="{generate-id( )}">
  +          <xsl:number count="section" format="1.1.1.1.1.1.1" level="multiple" />
  +          <xsl:text>. </xsl:text>
  +          <xsl:value-of select="title" />
  +          <fo:leader leader-pattern="dots" />
  +          <fo:page-number-citation ref-id="{generate-id(  )}" />
  +	</fo:basic-link>
         </fo:inline>
           <xsl:if test="$toc-max-depth > 1">
             <xsl:apply-templates select="section" mode="toc2" /> 
  @@ -722,11 +724,13 @@
     <xsl:template match="section" mode="toc2">
       <fo:block start-indent=".5em" text-align-last="justify" text-indent=".5em">
         <fo:inline padding-start="1em">
  -        <xsl:number count="section" format="1.1.1.1.1.1.1" level="multiple" />
  -        <xsl:text>. </xsl:text>
  -        <xsl:value-of select="title" />
  -        <fo:leader leader-pattern="dots" />
  -        <fo:page-number-citation ref-id="{generate-id(  )}" />
  +        <fo:basic-link internal-destination="{generate-id( )}">
  +          <xsl:number count="section" format="1.1.1.1.1.1.1" level="multiple" />
  +          <xsl:text>. </xsl:text>
  +          <xsl:value-of select="title" />
  +          <fo:leader leader-pattern="dots" />
  +          <fo:page-number-citation ref-id="{generate-id(  )}" />
  +        </fo:basic-link>
         </fo:inline>
       </fo:block>
     </xsl:template>
  
  
  

Mime
View raw message