[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Accessibility: adding scope attribute to HTML output
Thanks for your reply, Peter. Rather than use <id>, we have decided to use the scope attribute as shown in the 508 Guidelines: http://www.access-board.gov/sec508/guide/1194.22.htm#(g) So, I need to generate the following HTML: <th scope="col"> instead of <th> <td scope="row"> for the first <td> in a row, instead of <td> Peter Desjardins-2 wrote: > > I had to meet accessibility requirements for tables and I ended up > using the headers attribute in each <td> and referring to the <id> of > the corresponding <th>. > > This was possible for me because I'm using a separate XSL process to > generate the DocBook XML from MS Word XML. I added code to that > conversion so that it includes colname attributes in each cell. I > thought it got very complicated when I had to handle merged cells. > > I posted a simple example and a sample of my DocBook XSL customization > here: > > http://wiki.docbook.org/HtmlTableAccessibility > > Good luck. > > Peter > > On Mon, Sep 19, 2011 at 4:58 AM, mike 675 <m_mclaug@yahoo.co.uk> wrote: >> >> To meet accessibility requirements, we need to add the scope attribute to >> the >> HTML output for our tables. >> >> Our tables are marked up in DocBook XML, CALS style. >> >> Every <th> needs to be <th scope="col"> >> >> The first <td> in a <tr> needs to be <td scope="row"> >> >> Any ideas on where to start on this. >> I guess I need to cusomize the html/table.xsl stylesheet. >> -- >> View this message in context: >> http://old.nabble.com/Accessibility%3A-adding-scope-attribute-to-HTML-output-tp32493408p32493408.html >> Sent from the docbook apps mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > -- View this message in context: http://old.nabble.com/Accessibility%3A-adding-scope-attribute-to-HTML-output-tp32493408p32501056.html Sent from the docbook apps mailing list archive at Nabble.com.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]