docbook-apps message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Bad XSL-FO for <itemizedlist> ?
- From: "Dave Brooks, BCS Systems" <dave@bcs.co.nz>
- To: docbook-apps@lists.oasis-open.org
- Date: Mon, 19 May 2003 14:17:02 +1200
Hi,
The following:
<article>
<title>Test</title>
<sect1>
<para>
A list follows:
<itemizedlist>
<listitem>
the first item
</listitem>
<listitem>
the second item
</listitem>
</itemizedlist>
</para>
</sect1>
</article>
produces:
(validate
{!file:/D:/article.fo:
line 4: [error] Element 'fo:list-item-body' cannot have non-empty text
descendants
here. Only block-level elements are permitted in this context.}
{!file:/D:/article.fo:
line 6: [error] Element 'fo:list-item-body' cannot have non-empty text
descendants
here. Only block-level elements are permitted in this context.}
[validation total: 2 errors])
from XEP, using both 1.60.1 and 1.61.1 stylesheets, which is quite
corrrect according to the XSL-FO specification.
Changing the relevant XSL-FO from:
<fo:list-item-body
start-indent="body-start()">the first
item</fo:list-item-body>
to:
<fo:list-item-body
start-indent="body-start()"><fo:block>the first
item</fo:block></fo:list-item-body>
fixes things, so I will customise the corresponding template from
lists.xsl accordingly.
Thanks and regards,
David Brooks
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]