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


I agree. This problem can be fixed with CSS. To control the formatting  
of that particular <p> tag, you could either use
li p {blah} in your CSS, or to style only that p without affecting any  
other li p's, you can assign a class to that p tag by using <para  
role="blah">. Then in your CSS file you set li p.blah{} to whatever  
you like.

-Tom


Sent from my mobile

On May 13, 2010, at 10:30 AM, "Sam Steingold" <sds@gnu.org> wrote:

> 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>
>
> ---------------------------------------------------------------------
> 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]