You might consider using a simplelist instead: <simplelist type="vert"> <member><ulink url="xxx"/></member> <!-- uses the URL for anchor text --> <member><ulink url="yyy">my anchor text</ulink></member> <simplelist>
It does not generate a ul, but does not require the para elements. If you want a symbol preceding the elements in the list, you have to provide it, something like: <member>• <ulink .... Itemized lists expect some sort of block structure element in the list items. You could use a simpara with a role attribute and intercept it in processing, but that takes some XSLT development and really does not support what the tag means (a paragraph). Regards, Larry Rowland -----Original Message----- From: Tao Wang [mailto:[email protected]] Sent: Thursday, May 13, 2010 12:49 AM To: [email protected] Subject: [docbook-apps] How to generate <li><a href="xx">..</a></li>? Hi, 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>? -- Regards Tao Wang --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
