Hi,

I am trying to generate the rtf file with the following fo file:

<?xml version="1.0" encoding="utf-8"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>


<!-- defines the layout master -->
<fo:layout-master-set>
<fo:simple-page-master master-name="first"
page-height="29.7cm"
page-width="21cm"
margin-top="1cm"
margin-bottom="2cm"
margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<!-- starts actual layout -->
<fo:page-sequence master-reference="first">

<fo:flow flow-name="xsl-region-body">


<fo:list-block provisional-distance-between-starts="0.7cm"
provisional-label-separation="0.15cm">

<!-- nested list item -->
<fo:list-item start-indent="0.5cm">
<!-- insert a number -->
<fo:list-item-label end-indent="label-end()">
<fo:block text-align="end">a.</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
nested list item </fo:block>
</fo:list-item-body>
</fo:list-item>

<!-- nested list item -->
<fo:list-item start-indent="0.5cm">
<!-- insert a number -->
<fo:list-item-label end-indent="label-end()">
<fo:block text-align="end">b.</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
nested list item with more text. nested list item with more text.
</fo:block>
<fo:block text-align="justify">
nested list item with more text. nested list item with more text.
</fo:block>
<fo:block text-align="justify">
nested list item with more text. nested list item with more text.
</fo:block>
</fo:list-item-body>
</fo:list-item>

<!-- nested list item -->
<fo:list-item start-indent="0.5cm">
<!-- insert a number -->
<fo:list-item-label end-indent="label-end()">
<fo:block text-align="end">c.</fo:block>
</fo:list-item-label>
<!-- list text -->
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
nested list item </fo:block>
</fo:list-item-body>
</fo:list-item>

</fo:list-block >

</fo:flow>

Correct content of the generated rtf should be as followed:

a.nested list item

b.nested list item with more text. nested list item with more text.

nested list item with more text. nested list item with more text.

nested list item with more text. nested list item with more text.

c.nested list item


But the result is not correct.

a.nested list item

a.nested list item with more text. nested list item with more text.

nested list item with more text. nested list item with more text.

nested list item with more text. nested list item with more text.

a.nested list item

Lists with the roman list label has the same problem.

It seems that FOP treat these labels as bullet labels or it cannot deal
with the auto increment of the alpha and roman labels.

Is there any solution?

I have tried the newest revision of FOP but the FOP generated a blank
rtf file. Is the rtf function removed in this revision?



Regards,
Jerry

--- @ WiseStamp Signature
<http://my.wisestamp.com/link?u=mk62vz5p5r287rmx&site=www.wisestamp.com/email-install>.
Get it now
<http://my.wisestamp.com/link?u=mk62vz5p5r287rmx&site=www.wisestamp.com/email-install>

Reply via email to