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 document2fo.xsl
Date Mon, 02 Jun 2003 01:26:59 GMT
jefft       2003/06/01 18:26:58

  Modified:    src/resources/skins/common/xslt/fo document2fo.xsl
  Log:
  Generate the section's anchor above the title, so the title is visible.
  
  Revision  Changes    Path
  1.13      +12 -6     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.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- document2fo.xsl	18 May 2003 12:17:11 -0000	1.12
  +++ document2fo.xsl	2 Jun 2003 01:26:58 -0000	1.13
  @@ -220,18 +220,24 @@
         font-size="{$size}pt"
         font-weight="bold"
         space-before="12pt"
  -      space-after="4pt"
  -      id="{generate-id()}">
  +      space-after="4pt">
  +      <xsl:attribute name="id">
  +        <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>
  +
   
         <xsl:if test="$numbersections = 'true'">
           <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/>
           <xsl:text>. </xsl:text>
         </xsl:if>
         <xsl:value-of select="title"/>
  -
  -      <xsl:if test="normalize-space(@id)!=''">
  -        <fo:block id="{@id}"/>
  -      </xsl:if>
   
       </fo:block>
       <xsl:apply-templates>
  
  
  

Mime
View raw message