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.

eZ debug

Timing: Jan 18 2025 11:23:25
Script start
Timing: Jan 18 2025 11:23:25
Module start 'layout'
Timing: Jan 18 2025 11:23:25
Module start 'content'
Timing: Jan 18 2025 11:23:25
Module end 'content'
Timing: Jan 18 2025 11:23:25
Script end

Main resources:

Total runtime0.5586 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9063152.6250
Module start 'layout' 0.00560.0029 740.531339.4453
Module start 'content' 0.00850.5486 779.9766514.6641
Module end 'content' 0.55710.0015 1,294.640612.1563
Script end 0.5585  1,306.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5468160.0002
Check MTime0.00130.2279160.0001
Mysql Total
Database connection0.00080.148110.0008
Mysqli_queries0.510791.4236620.0082
Looping result0.00060.1040600.0000
Template Total0.528794.720.2644
Template load0.00220.394720.0011
Template processing0.526594.257520.2633
Template load and register function0.00020.033710.0002
states
state_id_array0.00130.238510.0013
state_identifier_array0.00080.146120.0004
Override
Cache load0.00180.3232240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.155230.0003
Fetch class attribute name0.00170.312040.0004
XML
Image XML parsing0.00040.066830.0001
class_abstraction
Instantiating content class attribute0.00000.001940.0000
General
dbfile0.00070.1255100.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs