OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Bad XSL-FO for <itemizedlist> ?


Actually, your docbook is not valid. Change

     <listitem>
       the first item
     </listitem>

to

   <listitem>
    <para>    
       the first item
    </para>
   </listitem>

See http://docbook.org/tdg/en/html/listitem.html. Be sure to validate your document against the dtd before further processing. 

David

-----Original Message-----
From: Dave Brooks, BCS Systems [mailto:dave@bcs.co.nz]
Sent: Sunday, May 18, 2003 9:17 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Bad XSL-FO for <itemizedlist> ?


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]