This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]