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, 14 Apr 2003 13:39:42 GMT
jefft       2003/04/14 06:39:42

  Modified:    src/resources/skins/common/xslt/fo document2fo.xsl
  Log:
  Emulate browser rendition of <ul><ul>, <ol><ol> and other combinations
  
  Revision  Changes    Path
  1.10      +16 -1     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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- document2fo.xsl	10 Apr 2003 14:22:32 -0000	1.9
  +++ document2fo.xsl	14 Apr 2003 13:39:41 -0000	1.10
  @@ -316,7 +316,22 @@
         </fo:list-item-body>
       </fo:list-item>
     </xsl:template>
  -  
  +
  +  <!-- Emulate browser handling of these invalid combinations that our DTD
  +  unfortunately allows -->
  +  <xsl:template match="ul/ul | ul/ol | ol/ul | ol/ol">
  +    <fo:list-item>
  +      <fo:list-item-label end-indent="label-end()">
  +        <fo:block></fo:block>
  +      </fo:list-item-label>
  +      <fo:list-item-body start-indent="body-start()">
  +        <fo:block font-family="serif">
  +          <xsl:apply-templates/>
  +        </fo:block>
  +      </fo:list-item-body>
  +    </fo:list-item>
  +  </xsl:template>
  +
     <xsl:template match="ul/li">
       <fo:list-item>
         <fo:list-item-label end-indent="label-end()">
  
  
  

Mime
View raw message