|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FO/FOP Query - Numbered List
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








