[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to generate <li><a href="xx">..</a></li>?
On 5/13/10, Tao Wang <dancefire@gmail.com> wrote: > > I'm using docbook 4.5 xhtml stylesheet xsl to generate html files. I > want to have a list of links, which should be: > > ------------------- > <li><a href="xxx">...</a></li> > <li><a href="xxx">...</a></li> > <li><a href="xxx">...</a></li> > ------------------- > > So, I use > ============ > <listitem><para><ulink url="xxx">...</ulink></para></listitem> > <listitem><para><ulink url="xxx">...</ulink></para></listitem> > <listitem><para><ulink url="xxx">...</ulink></para></listitem> > ============ > > However, it generates following result > ============ > <li><p><a href="xxx">...</a></p></li> > <li><p><a href="xxx">...</a></p></li> > <li><p><a href="xxx">...</a></p></li> > ============ > > I do not want <p> there. How can I generate the list of links without <p>? 1. try <simpara> instead of <para>. 2. what's the problem with <p>? extra space when rendered by a browser? use this css: ======================= /* reduce the whitespace */ li, td, dd p { margin: 0pt; } ======================= -- Sam Steingold <http://sds.podval.org>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]