Subject: Re: [docbook-apps] How to label a table when transforming to HTML?
There is an existing RFE on SourceForge to output ids: https://sourceforge.net/tracker/index.php?func=detail&aid=824971&group_id=21935&atid=373750 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 firstname.lastname@example.org ----- Original Message ----- From: "Erik Leunissen" <email@example.com> To: <firstname.lastname@example.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 email@example.com, or visit http://www.oasis-open.org/mlmanage/. > > >