"XHTML 1.0 Transitional, everything validates" - does it ?

Author Message

Sean Kelly

Tuesday 13 September 2005 2:10:39 pm

The eZ Publish site states that everything validates against XHTML 1.0 Transitional. When I ran one of my pages (v3.6) through the validator at w3.org it complains that my pages contain un-escaped ampersands.

The validator is actually picking up text that I have entered rather than errors in any of the HTML tags.

Should eZ Publish be changing ampersand characters in the text that users enter into the proper escaped HTML version?

Thanks,

Sean.

Gabriel Ambuehl

Wednesday 14 September 2005 3:52:18 am

I thought it was perfectly acceptable to use special chars in XHTML 1.0 without escaping them to entities?

Would seem like a flaw in the validator to me.

Visit http://triligon.org

Nathan Kelly

Wednesday 21 September 2005 9:13:24 pm

If you are typing an ampersand into an XML field it should be presented in its encoded form. I think however if you type an ampersand into a textline or textblock you need to wash the output from the template using the |wash operator:

{$node.name|wash}

Will the more knowledgeable please correct me if I'm wrong?

<i>Gabriel</i>: Last time I checked non-encoded ampersands only triggered a notice in the validator, not an error or warning! Though I think there is a higher warning level when using a strict doctype.

Cheers!

Pardon me while I burst into flames...

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 22:38:26
Script start
Timing: Jan 18 2025 22:38:26
Module start 'layout'
Timing: Jan 18 2025 22:38:26
Module start 'content'
Timing: Jan 18 2025 22:38:27
Module end 'content'
Timing: Jan 18 2025 22:38:27
Script end

Main resources:

Total runtime0.9184 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1719152.6406
Module start 'layout' 0.00780.0051 741.812539.4922
Module start 'content' 0.01290.9035 781.3047564.3359
Module end 'content' 0.91640.0020 1,345.640612.1094
Script end 0.9184  1,357.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3876160.0002
Check MTime0.00140.1522160.0001
Mysql Total
Database connection0.00080.091610.0008
Mysqli_queries0.857193.3231590.0145
Looping result0.00100.1071570.0000
Template Total0.874395.220.4372
Template load0.00210.224820.0010
Template processing0.872294.970820.4361
Template load and register function0.00020.018710.0002
states
state_id_array0.00140.149910.0014
state_identifier_array0.00520.567920.0026
Override
Cache load0.00170.1828180.0001
Sytem overhead
Fetch class attribute can translate value0.00150.157930.0005
Fetch class attribute name0.00130.142040.0003
XML
Image XML parsing0.00190.207230.0006
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00170.1886160.0001
String conversion0.00000.001740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs