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] Accessibility and output HTML tables

Hi Bob,

thanks for the confirmation, and the workaround.

On 14/05/14 17:17, Bob Stayton wrote:
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

<xsl:template match="@id | @scope" mode="htmlTableAtt">
   <xsl:copy-of select="."/>

Bob Stayton
Sagehill Enterprises

On 5/14/2014 2:54 AM, Andy Hatton wrote:

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.


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Andy Hatton
"Expected Transient Failure"

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