Hi Andy,
My take on this situation is that the missing attributes are an
oversight and should be copied through. DocBook XSL generally takes
care to copy @id attributes in all cases, so this looks like an error.
I'm going to file a bug report and get this discussed and fixed. In the
mean time, you'll need to add something like this to your customization
layer:
<xsl:template match="@id | @scope" mode="htmlTableAtt">
<xsl:copy-of select="."/>
</xsl:template>
Bob Stayton
Sagehill Enterprises
[email protected]
On 5/14/2014 2:54 AM, Andy Hatton wrote:
Hi
I'm using DocBook 4.5, and 1.78.1 release of the XSL stylesheets, and I
need to output tables in (X)HTML so that they are accessible.
I've seen from various posts on this list that the CALS table model in
DocBook 4.5 does not really provide sufficient markup for me to achieve
this. However the HTML table model does provide everything I need.
For simple tables, the scope attribute (scope="col", scope="row") on
<td> and <td> is sufficient to meet my requirements.
(I have been able to output this markup for CALS tables thanks to other
posts on this list)
For complex tables, the headers attribute on <td> and <th>, containing a
list of IDs of the header cells is sufficient.
However, in my tests it seems that only the headers attribute is passed
to the output. The id and scope attributes are not.
In xhtml/htmltbl.xsl around line 61 there is template that copies
specific selection of table attributes to the output.
Adding id and scope to that list enables me to generate the required
markup in the output.
Is anyone aware of any good reason *not* to do this?
Just trying to understand the logic of the default processing outputting
the headers attribute without the corresponding required id attributes.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]