OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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>?


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>&bull;&nbsp;<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:dancefire@gmail.com] 
Sent: Thursday, May 13, 2010 12:49 AM
To: docbook-apps@lists.oasis-open.org
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: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]