Subject: [xsl] FO/FOP Query - Numbered List From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 29 Oct 2001 10:36:22 -0000 |
I am learning FO/FOP and need a little help. I have the following code in a XSL stylesheet: <xsl:template match="ol"> <fo:list-block space-before="0.25em" space-after="0.25em"> <xsl:apply-templates/> </fo:list-block> </xsl:template> <xsl:template match="ol/li"> <fo:list-item space-after="0.5em"> <fo:list-item-label start-indent="1em"> <fo:block> <xsl:number/>. </fo:block> </fo:list-item-label> <fo:list-item-body> <fo:block> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> I process the stylesheet against a html file (using saxon). HTML file contains: <ol> <li> Bla Bla Bla </li> <li> Bla Bla Bla</li> <li> Bla Bla Bla </li> </ol> Then transform the resulting FO file into a PDF file using FOP. I get the follwing in the PDF file: Bla Bla1. Bla Bla Bla Bla Bla Bla2. Bla Bla Bla Bla The numbers have indented but the text has not - any ideas? I have changed the values but with little impact. Thanks Tanz XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] different templates, Goetz Bock | Thread | Re: [xsl] FO/FOP Query - Numbered L, Max Froumentin |
Re: [xsl] different templates, Goetz Bock | Date | [xsl] Escaping/converting special c, Ross Kendall |
Month |