ezxmlexport extension won't export content with img properly

Author Message

Russell Michell

Monday 26 April 2010 7:38:27 pm

Hi all,

eZ 4.1.3, PHP 5.2.12, CentOS 5.4, MySQL 5.0.22

Using the ezxmlexport extension, the default XML file that is generated before any transformations are applied doesn't include any image wrapped in a link.

For example, a content-object uses this eZ XML text:

 <link target="_blank" node_id="5835"><embed size="standard" 
view="embed" align="right" object_id="5889" custom:offset="0" 
custom:limit="5"/></link>

But after exporting this using ezxmlexport, viewing the raw XML that it produces, the <embed> element is removed and not converted, but the <link> element is converted to <a> as I expect.

I've looked all the way up to ez's ezXMLSchema and eZXMLInputParser and I'm not sure if becuase it's written as a self-closing tag (<embed/>) and has no closing tag, it's not being recognised or what.

Does anyone have any pointers at all?

Cheers
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Russell Michell

Thursday 29 April 2010 2:00:39 pm

So I must've made a mistake - ezxmlexport does export the <img> element but it's the data_import extension that parses this XML that's importing everything else, but is rippin gout the <img/> tag from between <a> tags.

If anyone knows a little about ezxmltext in general, how eZ handles it etc, I'd be interested to hear from you as I'm struggling a little going up as far as eZSimplifiedXMLInputParser and eZXMLInputParser.

Cheers,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

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 05:03:34
Script start
Timing: Jan 18 2025 05:03:34
Module start 'layout'
Timing: Jan 18 2025 05:03:34
Module start 'content'
Timing: Jan 18 2025 05:03:35
Module end 'content'
Timing: Jan 18 2025 05:03:35
Script end

Main resources:

Total runtime0.7007 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.0072 589.3047152.6563
Module start 'layout' 0.00720.0022 741.960939.5078
Module start 'content' 0.00950.6898 781.4688494.9844
Module end 'content' 0.69930.0014 1,276.453112.4063
Script end 0.7007  1,288.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5253160.0002
Check MTime0.00130.1923160.0001
Mysql Total
Database connection0.00120.172710.0012
Mysqli_queries0.649792.7158520.0125
Looping result0.00040.0631500.0000
Template Total0.664994.920.3324
Template load0.00210.292620.0010
Template processing0.662894.587220.3314
Template load and register function0.00010.016810.0001
states
state_id_array0.00130.185410.0013
state_identifier_array0.00190.272720.0010
Override
Cache load0.00170.2467220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064210.0005
Fetch class attribute name0.00100.146930.0003
XML
Image XML parsing0.00040.056610.0004
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00160.2304160.0001
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs