XML Block and accessibility (WAI)

Author Message

Fabio Carissimi

Tuesday 12 September 2006 6:17:18 am

Hello,

I want to write HTML pages with respect of Web Accessibility guidelines.
But some attributes are not allowed,
For example, for a tag 'table' we need to fill the 'summary' attribute but when I try to do it, here is the error message :

Attribute 'summary' is not allowed in <table> element.

How can I configure XML Blocks to allow some specific tags AND attribute ?

Thanks for help

Kirill Subbotin

Tuesday 19 September 2006 12:22:46 am

this will be implemented in eZp 3.9 and compatible OE version. You will be allowed to add <table summary='123'> for example. The list of available custom attributes for each tag will be defined with 'CustomAttributes' ini setting.

Fabio Carissimi

Tuesday 19 September 2006 3:05:33 am

Hello,
thanks for reply,

Is there a possibility to add this feature now in ezP 3.8 as an extension (or other way) ?
Or must we install ezP 3.9 (Expected release date: October 31, 2006) for WAI support ?

Mauro Innocenti

Tuesday 19 September 2006 5:09:30 am

Another WAI requirement is for the "hreflang" parameter for the "link" XML tag.

Both "summary" and "hreflang" may be implemented hacking the current Ez kernel (3.8.x).

You need to modify the following files:
kernel/classes/datatypes/ezxmltext/ezxmlschema.php
kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php

The first (ezxmlschema.php) for adding the new attributes needed, and the second (ezxhtmlxmloutput.php) for adding the PHP code which implement those attributes.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.