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

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 19 2025 00:07:36
Script start
Timing: Jan 19 2025 00:07:36
Module start 'layout'
Timing: Jan 19 2025 00:07:36
Module start 'content'
Timing: Jan 19 2025 00:07:37
Module end 'content'
Timing: Jan 19 2025 00:07:37
Script end

Main resources:

Total runtime0.9849 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7891152.6094
Module start 'layout' 0.00640.0042 740.398439.3984
Module start 'content' 0.01060.9724 779.7969662.2734
Module end 'content' 0.98310.0017 1,442.070316.2031
Script end 0.9848  1,458.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3544160.0002
Check MTime0.00150.1479160.0001
Mysql Total
Database connection0.00070.071510.0007
Mysqli_queries0.920293.4374760.0121
Looping result0.00080.0783740.0000
Template Total0.941795.620.4708
Template load0.00220.221020.0011
Template processing0.939595.395120.4698
Template load and register function0.00020.024510.0002
states
state_id_array0.00130.132310.0013
state_identifier_array0.00310.319220.0016
Override
Cache load0.00200.1989370.0001
Sytem overhead
Fetch class attribute can translate value0.00050.054340.0001
Fetch class attribute name0.00100.1057100.0001
XML
Image XML parsing0.00120.124640.0003
class_abstraction
Instantiating content class attribute0.00000.0020100.0000
General
dbfile0.00110.1077230.0000
String conversion0.00000.001240.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs