Managing content with custom xml schema

Author Message

Alex F

Wednesday 06 February 2008 2:07:18 pm

Hi there,

we're looking for a solution to store and work with several 100 XML documents. They all follow the same XML Schema.

We would like to be able to edit them (with user management / permissions and revision control), export them to pdf (the full document and only subsets of it) and to plain html which can be stored and viewed off line.

The killer feature (but not mandatory) would be a web based, XML-Schema aware editor which would only allow the document to be edited in such a way that a valid XML file is the result.

At a glance, I think ezPublish might have the potential for that. Could you confirm that?

How would we have to go about implementing this? Would we have to create our own Content Class, etc?

Thanks a lot for your response!

Best regards,
Alex

Stéphane Bullier

Thursday 07 February 2008 3:17:24 am

Hello,

You can see this : http://projects.ez.no/ezxmlinstaller

Stéphane

Łukasz Serwatka

Thursday 07 February 2008 4:29:01 am

eZ Publish has mixed data model, content is stored in XML format in database. ezxmlblock as content class attribute allows you store content in XML format and support input and output handlers. You can write your custom handlers that fits your needs. See settings/ezxml.ini, other alternative is to create custom datatype that handle that.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime1.2445 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0102 589.2500152.6250
Module start 'layout' 0.01020.0039 741.875039.4453
Module start 'content' 0.01411.2289 781.3203575.6016
Module end 'content' 1.24310.0014 1,356.921912.1563
Script end 1.2445  1,369.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3418160.0003
Check MTime0.00150.1220160.0001
Mysql Total
Database connection0.00090.073010.0009
Mysqli_queries1.171994.1672590.0199
Looping result0.00090.0691570.0000
Template Total1.175094.420.5875
Template load0.00230.186520.0012
Template processing1.172794.229020.5863
Template load and register function0.00020.019110.0002
states
state_id_array0.00740.594710.0074
state_identifier_array0.00170.139920.0009
Override
Cache load0.00190.1552190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.049930.0002
Fetch class attribute name0.00130.100750.0003
XML
Image XML parsing0.00490.392630.0016
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.01731.3869240.0007
String conversion0.00000.001440.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
2content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs