Forum OpenACS Development: Re: Res: Re: forms as columns of template::list
If forms within a table cause an accessibility problem, perhaps you can write your own template for the list using divs.
Create a new adp file in /packages/acs-templating/resources/lists/ and reference it in
<listtemplate name="mylist" style="newlisttemplatefile"></listtemplate>
You can look at list.adp in the directory above for an example. Play with the CSS at /packages/acs-templating/www/resources/lists.css
I'm afraid that marking up the data with DIV won't solve the accessibility problem. Actually, it would introduce another one. Tabular data has to be marked up using the TABLE element and the corresponding TH/TD and their attributes to associate header cells with data cells.
This is documented in WCAG 1.0 (checkpoint 5.1 and 5.2 - priority 1) and in WCAG 2.0 (technique H51 for success criterion 1.3.1 - level A).
Would it be possible, then, to accomplish accessible markup using a custom template, as I suggested above?
In this case, the problem is not the template. The default template for template::list produces valid and appropriate markup for tabular data. Using a table to format a form is acceptable from the accessibility perspective (as long as a few rules are followed), but not recommended. The problem here would be to mix the two types of content: the data and the form to modify it.