On 5/13/10, Tao Wang <[email protected]> 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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]