[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FO/FOP Query - Numbered List

Subject: FO/FOP Query - Numbered List
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 10:36:22 -0000
fop 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.