[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: [docbook] DocBook list items display with extra line break using FO XSL
If you want both multiple paragraphs and aligned items you will probably have to override the xsl:template for listitem in lists.xsl in the xslt/fo directory. You can see how the match="listitem/simpara" template works and then provide your own template that matches "listitem/para" and does much the same processing (i.e. avoiding the extra fo:block). I haven't the source code in front of me now, so consider the above a vague from-memory approximation. There are lots of helpful pointers here: http://www.dpawson.co.uk/docbook/styling/custom.html --Craeg > So how am I to have multiple paragraphs per list item? > > On 1/30/06, cstrong@arielpartners.com <cstrong@arielpartners.com> wrote: >> Right. Check the DTD/RelaxNG schema to be sure, but I believe >> only one simpara is allowed per list item. That is the point of SIMple >> PARAgraph, after all.. >> >> hth, >> >> --Craeg >> >> > Thanks for the reply, this certainly does seem to effect the display - >> > but it is still broken when you use more than one simpara - see >> > attachment. >> > >> > On 1/30/06, Craeg Strong <cstrong@arielpartners.com> wrote: >> >> Hello: >> >> >> >> There are two main variations: >> >> <orderedlist spacing="compact"> >> >> <listitem><simpara>foo</simpara></listitem> >> >> <listitem><simpara>bar</simpara></listitem> >> >> </orderedlist> >> >> >> >> and >> >> >> >> <orderedlist> >> >> <listitem><para>biz</para></listitem> >> >> <listitem><para>baz</para></listitem> >> >> </orderedlist> >> >> >> >> I believe the latter is what will give you the output below. >> >> The former is what will give you what you actually wanted/expected. >> >> >> >> hope this helps, >> >> >> >> --Craeg >> >> >> >> Noah Slater wrote: >> >> > Hi, >> >> > >> >> > Sorry, for the cross post - I didn't know which list this belongs >> in. >> >> > >> >> > Using the standard FO xsl to transform a simple document via >> >> > passivetex I notice that list items end up with two <fo:block> >> >> > elements around them. This results in some odd display issues as >> you >> >> > can see from the attached screenshot. >> >> > >> >> > Does anyone know what is going on here? Are the two block items >> >> > intentional and processor is messing up conversion, or do the >> >> > stylesheets need changing? >> >> > >> >> > Thank you, >> >> > Noah >> >> > >> >> > -- >> >> > "Creativity can be a social contribution, but only in so >> >> > far as society is free to use the results." - R. Stallman >> >> > >> >> > >> >> > ------------------------------------------------------------------------ >> >> > >> >> > ------------------------------------------------------------------------ >> >> > >> >> > --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org >> >> > For additional commands, e-mail: docbook-help@lists.oasis-open.org >> >> >> > >> > >> > -- >> > "Creativity can be a social contribution, but only in so >> > far as society is free to use the results." - R. Stallman >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> > For additional commands, e-mail: >> docbook-apps-help@lists.oasis-open.org >> >> > > > -- > "Creativity can be a social contribution, but only in so > far as society is free to use the results." - R. Stallman >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]