This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] markup for differentiating classes of the same element in generated output
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Patrick Eisenacher" <docbook at mailshelter dot de>, <docbook at lists dot oasis-open dot org>
- Date: Fri, 7 Jan 2005 08:58:23 -0800
- Subject: Re: [docbook] markup for differentiating classes of the same element in generated output
- References: <41DE9FB7.602@mailshelter.de>
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
>
>