[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Adding headers attributes to CALS tables for acces

Subject: RE: Adding headers attributes to CALS tables for accessibility
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Thu, 22 Aug 2002 09:45:26 +0100
cals header
> I need to make sure that my tables are accessible for screen 
> readers; this
> means that I need to add @id to all of the header cells and 
> @headers to all
> content cells. For any given entry, I need to know which 
> column that entry
> is in, so I know which header cell to associate it with. 

Hi,

Could you explain why you need to know 'for any given entry what column
that entry is in'?

Ive written some cals->xhtml stylesheets but never needed to do this,
maybe theres another solution to what you need...

cheers
andrew


> -----Original Message-----
> From: Robert D Anderson [mailto:robander@xxxxxxxxxx]
> Sent: 21 August 2002 20:16
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Adding headers attributes to CALS tables for
> accessibility
> 
> 
> I have a CALS-model table that is being converted into XHTML 
> using XSL 1.0.
> I need to make sure that my tables are accessible for screen 
> readers; this
> means that I need to add @id to all of the header cells and 
> @headers to all
> content cells. For any given entry, I need to know which 
> column that entry
> is in, so I know which header cell to associate it with. This 
> is simple for
> tables that do not span rows/columns; it is more complex for spanned
> columns, but still not too difficult (because spanned columns 
> require you
> to specify which column starts the entry and which column ends it).
> However, is there a reliable way to determine my position in 
> a table when
> entries can span rows? I've tried several recursive 
> algorithms, but have
> not found one that works in all cases.
> 
> Here is a small complex table that uses the CALS model. So far, my
> solutions that can determine the column for the middle cell 
> and the bottom
> left cell all fail when used with more complex tables (many 
> columns wide,
> with many spanned rows). It also gets more complex when the 
> left column
> contains header information, and @headers must reference both 
> the top cell
> and the left-hand cell.
> <table>
> <tgroup cols="3">
> <thead>
>   <row>
>     <entry>id=a</entry>
>     <entry>id=b</entry>
>     <entry>id=c</entry>
>   </row>
> </thead>
> <tbody>
>   <row>
>     <entry morerows="1">headers=a</entry>
>     <entry>headers=b</entry>
>     <entry>headers=c</entry>
>   </row>
>   <row>
>     <entry morerows="1">headers=b</entry>
>     <entry>headers=c</entry>
>   </row>
>   <row>
>     <entry>headers=a</entry>
>     <entry>headers=c</entry>
>   </row>
> </tbody>
> </tgroup>
> </table>
> 
> This is the desired XHTML output (the actual @id and matching @headers
> would be created with generate-id; I've only placed them into 
> the content
> so it can be viewed in a browser):
> <table>
> <thead>
>   <tr>
>     <th id="a">id=a</th>
>     <th id="b">id=b</th>
>     <th id="c">id=c</th>
>   </tr>
> </thead>
> <tbody>
>   <tr>
>     <td headers="a" rowspan="2">headers=a</td>
>     <td headers="b">headers=b</td>
>     <td headers="c">headers=c</td>
>   </tr>
>   <tr>
>     <td headers="b" rowspan="2">headers=b</td>
>     <td headers="c">headers=c</td>
>   </tr>
>   <tr>
>     <td headers="a">headers=a</td>
>     <td headers="c">headers=c</td>
>   </tr>
> </tbody>
> </table>
> 
> For reference, here is the w3 description of the headers and 
> id attributes
> on table cells:
> http://www.w3.org/TR/WCAG10-HTML-TECHS/#identifying-table-rows-columns
> 
> Any solutions using XSLT 2.0 would also be appreciated, 
> although I will not
> be able to make use of them until sometime in the future...
> 
> Thanks,
> Robert
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.