[bug? ezpublish 3.8.1] hreflang not allowed in <a>

Author Message

Carlos Campderrós

Wednesday 02 August 2006 9:47:25 am

Hi everyone,

I created a custom class with some XMLBlock attributes. When inserting this bit of code into an XML Block attribute, I get an error:

The code:

<p>foo bar lorem ipsum <a href="http://some.site.com/" hreflang="es">some site</a>.</p>

The error:

The draft could not be stored.
Required data is either missing or is invalid:
    * intro: Attribute 'hreflang' is not allowed in <b><link></b> element.

As I didn't write any <link> element, but an <a> element, in which 'hreflang' is allowed, it seems a bug in the xml block validator.

Carlos Campderrós

Wednesday 02 August 2006 9:49:05 am

<quote>

   * intro: Attribute 'hreflang' is not allowed in <b><link></b> element.

</quote>

ouch! I thoght that <link> would appear in bold. those 'b' elements didn't appear in the error message, of course.

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:19:31
Script start
Timing: Jan 18 2025 11:19:31
Module start 'layout'
Timing: Jan 18 2025 11:19:31
Module start 'content'
Timing: Jan 18 2025 11:19:32
Module end 'content'
Timing: Jan 18 2025 11:19:32
Script end

Main resources:

Total runtime0.4683 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1641152.6406
Module start 'layout' 0.00550.0030 741.804739.4766
Module start 'content' 0.00850.4581 781.2813426.4297
Module end 'content' 0.46670.0016 1,207.71098.1250
Script end 0.4682  1,215.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.6874160.0002
Check MTime0.00140.2931160.0001
Mysql Total
Database connection0.00060.123410.0006
Mysqli_queries0.424890.7096520.0082
Looping result0.00050.1167500.0000
Template Total0.431892.220.2159
Template load0.00230.492520.0012
Template processing0.429491.702520.2147
Template load and register function0.00020.046110.0002
states
state_id_array0.00110.234310.0011
state_identifier_array0.00350.742320.0017
Override
Cache load0.00190.4025150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.134110.0006
Fetch class attribute name0.00240.510420.0012
XML
Image XML parsing0.00010.029910.0001
class_abstraction
Instantiating content class attribute0.00000.001920.0000
General
dbfile0.00070.1409100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs