Forums / Developer / xml templates

xml templates

Author Message

ruud prein

Tuesday 06 January 2004 12:28:16 pm

Can ez output xml (self defined) using the template system? Or should I use an other approach

Cheers,

Ruud.

---
groet,

Ruud

Marco Zinn

Tuesday 06 January 2004 12:47:32 pm

Do you mean, you have an XML structure and you want to have ezPublish render this?
You might want to look at this contribution: http://ez.no/developer/ez_publish_3/contributions/xslttemplate_operator
"Contribution" means: It's not built-in, but someone has extended ezPublish and makes his/her work available to the community.

Marco
http://www.hyperroad-design.com

ruud prein

Tuesday 06 January 2004 2:13:42 pm

No, I would like ez to output xml (instead of html). The xml will be rendered by an other client system.

Ruud

---
groet,

Ruud

Paul Borgermans

Tuesday 06 January 2004 2:32:16 pm

That's possible,

You don't use the attribute_view_gui, but access the xml content directly and put it in the output stream.

Any more details about what you need to do?

-paul

 

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

ruud prein

Tuesday 06 January 2004 2:51:38 pm

I would like to use ez to manage my content, en use it to generate xml output to feed an Flash application.

Where can I find examples on passing directly to the output stream?

Ruud

---
groet,

Ruud

Mark Young

Tuesday 06 January 2004 11:25:42 pm

Has there been any thoughts or work to send output from EZPublish to XML/Docbook?

ruud prein

Wednesday 07 January 2004 6:06:47 am

The structure of my xml is created by ez on the bases of the content. So, ez templates do not generate xhtml but my xml (self defined) structure.
My question really is: can I use the ez templates for this purpose or should I developpe my own. It could be compared to RSS output or PDF output, I guess...

Any help appreciated

Cheers,

Ruud.

---
groet,

Ruud

ruud prein

Thursday 08 January 2004 10:45:43 am

The ez template system allows you to do anything. Without any changes the output may have any xml output you like. As mentioned, avoid using the attibute_view_gui. Thanx for the tip.

cheers,

Ruud

---
groet,

Ruud

eZ debug

Timing: Jan 18 2025 21:01:55
Script start
Timing: Jan 18 2025 21:01:55
Module start 'content'
Timing: Jan 18 2025 21:01:56
Module end 'content'
Timing: Jan 18 2025 21:01:56
Script end

Main resources:

Total runtime0.6460 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.5391180.8516
Module start 'content' 0.00590.6341 768.3906667.3281
Module end 'content' 0.64000.0059 1,435.718846.1484
Script end 0.6459  1,481.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4518140.0002
Check MTime0.00130.1985140.0001
Mysql Total
Database connection0.00080.118910.0008
Mysqli_queries0.595192.1332770.0077
Looping result0.00060.0970750.0000
Template Total0.620196.020.3101
Template load0.00250.379620.0012
Template processing0.617795.622020.3088
Template load and register function0.00010.022610.0001
states
state_id_array0.00110.165210.0011
state_identifier_array0.00130.201620.0007
Override
Cache load0.00210.3252370.0001
Sytem overhead
Fetch class attribute can translate value0.00050.081240.0001
Fetch class attribute name0.00100.1586100.0001
XML
Image XML parsing0.00120.191840.0003
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00230.3621250.0001
String conversion0.00000.000530.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
8content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs