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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: [docbook] markup for differentiating classes of the same element in generated output


In the case of tables, you should use the 'tabstyle' attribute on the table.
It is specifically for named table styles.  In the HTML XSL stylesheets, it
is passed through as a class attribute value, and then your CSS can respond
to that.

Most people use the role attribute for other elements.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Patrick Eisenacher" <docbook@mailshelter.de>
To: <docbook@lists.oasis-open.org>
Sent: Friday, January 07, 2005 6:41 AM
Subject: [docbook] markup for differentiating classes of the same element in
generated output


> Hi list,
>
> I have 2 classes of tables that I want to style differently with CSS in
> my HTML output. How can I achieve this with docbook?
>
> Currently, I use the id attribute on the table element, which gets
> transformed into an HTML anchor with a name attribute. I use the
> presence of the anchor in my CSS to apply the 2nd style. Of course, this
> is a big hack, which I don't like. Once I really need to link a table,
> this workaround fails. Plus, it doesn't scale at all.
>
> So what's the best way for marking up different classes of the same
element?
>
>
> Thanks for your help.
> Patrick
>
>




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