dleslie     01/01/29 10:21:39

  Modified:    java/xdocs/style/stylesheets xml2fo.xsl
  Log:
  Fixed placement of page breaks and added page numbers to TOC.
  
  Revision  Changes    Path
  1.8       +28 -5     xml-xalan/java/xdocs/style/stylesheets/xml2fo.xsl
  
  Index: xml2fo.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xdocs/style/stylesheets/xml2fo.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- xml2fo.xsl        2001/01/29 17:32:37     1.7
  +++ xml2fo.xsl        2001/01/29 18:21:34     1.8
  @@ -73,17 +73,33 @@
               Content
            </fo:block>
   
  -         <fo:table>
  +         <fo:table             break-after="page">
               <fo:table-column column-width="1cm"/>
  -            <fo:table-column column-width="15cm"/>
  +            <fo:table-column column-width="10cm"/>
  +            <fo:table-column column-width="5cm"/>
               <fo:table-body font-size="12pt" 
                              line-height="16pt"
                              font-family="sans-serif">
  +              <fo:table-row>
  +                  <fo:table-cell>
  +                     <fo:block text-align="end" >
  +                     </fo:block>
  +                  </fo:table-cell>
  +                  <fo:table-cell>
  +                     <fo:block text-align="end" >
  +                     </fo:block>
  +                  </fo:table-cell>
  +                  <fo:table-cell>
  +                     <fo:block text-align="end" >
  +                     page
  +                     </fo:block>
  +                  </fo:table-cell>
  +              </fo:table-row>                                 
                 <xsl:for-each select="documentation/chapter"> 
                   <fo:table-row>
                     <fo:table-cell>
                        <fo:block text-align="end" >
  -                          <xsl:number value="position()" format="1"/>) 
  +                        <xsl:number value="position()" format="I"/>.  
                        </fo:block>
                     </fo:table-cell>
                     <fo:table-cell>
  @@ -96,6 +112,11 @@
                           </fo:basic-link> 
                        </fo:block>
                     </fo:table-cell>
  +                  <fo:table-cell>
  +                     <fo:block text-align="end" >
  +                       <fo:page-number-citation ref-id="[EMAIL PROTECTED]"/>
  +                     </fo:block>
  +                  </fo:table-cell>
                  </fo:table-row>
               </xsl:for-each>
               </fo:table-body>
  @@ -108,7 +129,7 @@
   
   <!--chapter-->
   <xsl:template match="chapter">
  -  <fo:block id="[EMAIL PROTECTED]"/>
  +  <fo:block id="[EMAIL PROTECTED]" break-before="page"/>
        <xsl:apply-templates/>   
   </xsl:template>  
   
  @@ -117,7 +138,6 @@
      <fo:block font-size="18pt" 
               font-family="sans-serif" 
               line-height="24pt"
  -            break-before="page"
               space-before.optimum="15pt"
               space-after.optimum="15pt"
               background-color="blue"
  @@ -136,6 +156,7 @@
      <fo:block font-size="16pt" 
               font-family="sans-serif" 
               line-height="20pt"
  +            keep-with-next="always"            
               space-before.optimum="15pt"
               space-after.optimum="12pt"
               text-align="start"
  @@ -151,6 +172,7 @@
      <fo:block font-size="14pt" 
               font-family="sans-serif" 
               line-height="18pt"
  +            keep-with-next="always"            
               space-before.optimum="10pt"
               space-after.optimum="9pt"
               text-align="start"
  @@ -261,6 +283,7 @@
      <fo:block font-size="14pt" 
               font-family="sans-serif" 
               line-height="18pt"
  +            keep-with-next="always"
               space-before.optimum="10pt"
               space-after.optimum="9pt"
               text-align="start"
  
  
  

Reply via email to