xml text dataflow

Author Message

Marin Orlic

Friday 03 June 2005 4:09:31 am

Hi all,

can somebody please explain what happens to data entered to xml text attributes? I'm having problems with decoration of XML entities to &something which is later incorrectly displayed in browser.. I've looked inside the kernel code and it seems that the only place changes are done to escape special characters is in /kernel/classess/datatypes/ezxmltext/handlers/output/*.php
using htmlspecialchars() which mangles XML entities..

Is this correct?

Xavier Dutoit

Friday 03 June 2005 9:35:37 am

Hi Marlin,

Don't get what is the problem you have. & is correct to display th & char, isn't it ?

What's wrong with the default behavior ?

X+

http://www.sydesy.com

Marin Orlic

Friday 03 June 2005 11:22:12 am

Well if I try to enter some special char like α it's not displayed properly (it's displayed literally and not as a special symbol).. so, what should I do to enter something like that? I've tried editing the mentioned php files and it helps in my special case but its something to be really careful about..

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 31 2025 04:32:28
Script start
Timing: Jan 31 2025 04:32:28
Module start 'layout'
Timing: Jan 31 2025 04:32:28
Module start 'content'
Timing: Jan 31 2025 04:32:30
Module end 'content'
Timing: Jan 31 2025 04:32:30
Script end

Main resources:

Total runtime1.5630 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0156151.1953
Module start 'layout' 0.00550.0037 739.210936.6328
Module start 'content' 0.00921.5527 775.8438924.6563
Module end 'content' 1.56190.0010 1,700.50007.8750
Script end 1.5629  1,708.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2026160.0002
Check MTime0.00120.0795160.0001
Mysql Total
Database connection0.00060.041110.0006
Mysqli_queries1.514096.8640570.0266
Looping result0.00060.0374550.0000
Template Total1.530497.920.7652
Template load0.00210.136620.0011
Template processing1.528297.775420.7641
Template load and register function0.00180.114310.0018
states
state_id_array0.00110.070510.0011
state_identifier_array0.00120.074920.0006
Override
Cache load0.00170.1105150.0001
Sytem overhead
Fetch class attribute can translate value0.00070.046320.0004
Fetch class attribute name0.00250.162540.0006
XML
Image XML parsing0.00060.039720.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00090.0580160.0001
String conversion0.00000.000640.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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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