On Jul 21, 2008, at 10:11 AM, Hussein Shafie wrote: > Sorry but I'm not sure to understand what you want to do. > Basically, I wanted to remove some of the space between the list items when the DocBook file is formatted to PDF or XHTML. I noticed that in XHTML, it is doing: <ul> <li><p>Item1</p></li> <li><p>Item2</p></li> <ul>
and I wanted: <ul> <li>Item1</li> <li>Item2</li> <ul> I guess there is no DocBook correlate other than editing the XSLT files for PDF and HTML. Is this correct? Rishi > Rishi Khan wrote: >> When I make an itemized list (in a DocBook 5 document) in XMLMind, >> it creates the following type of code: >> <itemizedlist> >> <listitem> >> <para>Item 1</para> >> </listitem> >> <listitem> >> <para>Item 2</para> >> </listitem> >> <listitem> >> <para>Item 3</para> >> </listitem> >> </itemizedlist> >> 1) How to I make it not put in the <para></para> in the <listitem> >> tags? > > In DocBook 4 and 5, unlike with XHTML, the listitem elements cannot > be empty and they cannot contain just text nodes. See http:// > www.docbook.org/tdg5/en/html/listitem.html. > > You can configure XXE to automatically create listitem elements > containing one or more elements other para (e.g. simpara). See > "Save Selected Element As Template" in http://www.xmlmind.com/ > xmleditor/_distrib/doc/help/ > optionsMenu.html#customizeConfigurationMenu. (But I'm not sure this > is the problem you want to solve.) > > > >> 2) It seems that if I manually remove the <para></para>, the HTML >> output changes appropriately, but the PDF output does not. Do you >> know why? > > By removing <para></para> you make the document invalid and thus, > you cannot predict the way the DocBook XSLT style sheets will > behave faced to such document. > > > >

