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 label a table when transforming to HTML?

There is an existing RFE on SourceForge to output ids:


I think it will probably be toggled by a stylesheet parameter.

There is one complication with doing this with tables.
In DocBook CALS tables, you can have several tgroup elements
in a table element.  Each tgroup is output as an HTML table element.
The stylesheet would have to look at the parent of the tgroup
to find the id for that HTML table.  But ids must be unique,
so what do think should happen if a table has multiple tgroups?

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Erik Leunissen" <e.leunissen@hccnet.nl>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, February 18, 2004 7:07 AM
Subject: [docbook-apps] How to label a table when transforming to HTML?

> L.S.
> My question concerns the unique labelling of table elements when
> transforming docbook XML to HTML.
> What I want to accomplish is to let a HTML stylesheet pick one specific
> table in a document, to assign it another width than the default width
> used for tables.
> What I've done thus far is (and maybe my approach is entirely wrong)
> explore the possibilities of docbook to set the "role" or "id"
> attributes for a table to a unique value, hoping that:
> 1. such an attribute is somehow retained in the HTML document after
> having it transformed to HTML (using xsltproc and the standard
> docbook-xsl file).
> 2. HTML stylesheets can select the table element based on that attribute.
> I did not succeed.
> If it is possible at all, I'd very much appreciate some directions,
> pointers on how to do that. Please say so if I need to take another
> approach.
> Thanks in advance,
> Erik Leunissen
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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