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> ?


Oops, the real problem is me not validating the input....

It should read:

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


Thanks,


Dave


At 14:17 19/05/2003 +1200, Dave Brooks, BCS Systems wrote:
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

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