This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


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