This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: orderedlist and listitem without para: bug orfeature?
- From: Bob Stayton <bobs at caldera dot com>
- To: David Bridgeland <bridgeland at yahoo dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 08 Feb 2003 13:55:22 -0800
- Subject: Re: DOCBOOK-APPS: orderedlist and listitem without para: bug orfeature?
- References: <20030208004951.26980.qmail@web41315.mail.yahoo.com>
On Fri, Feb 07, 2003 at 04:49:51PM -0800, David Bridgeland wrote:
>
> All,
>
> I have <listitem>s without <para>s inside them. For example:
>
> <para>
> The component suffered from three failings:
> <orderedlist>
> <listitem>It was slow.</listitem>
> <listitem>It ran hot. </listitem>
> <listitem>It did not actually work.</listitem>
> <listitem>It made loud noises.</listitem>
> </orderedlist>
> No, four. The component suffered from four failings.
> </para>
>
> The docbook-xsl translates this to fine HTML. But when this is translated to PDF (by way of FO), I end up losing the content of each list item. It comes out looking like this:
>
> The component suffered from three failings:
>
> 1.
>
> 2.
>
> 3.
>
> 4.
>
> No, four. The component suffered from four failings.
>
> I am not sure whether the FO is good, i.e. whether the problem is with the docbook-xsl or FOP. Or perhaps this is not legal docbook at all? Perhaps listitems must always have paras in them, and docbook-xsl is too forgiving when translating to HTML?
>
> Toolchain: docbook-xsl-1.60.1 ; Libxml2-2.4.30.win32 ; Libxslt-1.0.23.win32 ; fop-0.20-5rc
It's not legal DocBook. A listitem cannot contain
plain text, it has to be in some text container element
like para. The stylesheets are designed to work with
valid DocBook files, and all bets are off if the file
isn't valid. Use xmllint that comes with
Libxml to validate your documents.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com