RFC : ezxmlinstaller XML Schemas

Author Message

Benjamin Choquet

Tuesday 18 January 2011 8:45:09 am

Hi,
I've used ezxmlinstaller a few times, finding this extension quite useful for maintenance and db management when working with staging servers.

Apart from a few bugs and unfinished features, its great drawback is the lack of documentation for the included handlers. So after a handful of XML editing with PHP source opened, i thought it would be best to create XML schemas to document the XML structure of the various handler so that these schemas could be interpreted by my IDE (Eclipse) and help me create my installers without having to check PHP source all the time.

So I came up with a few schemas but I'd like to have feedback from eZ Team members and/or XML moguls before going further away. You can check out the code on my github fork. I wanted to separate each handler in its own schema file and to use a central one (xmlinstaller.xsd) as a main schema, allowing any custom handler in the root node.

Please tell me if the idea is total junk (you'd have to develop on that :) and if not how it could be improved

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 02:44:29
Script start
Timing: Jan 18 2025 02:44:29
Module start 'layout'
Timing: Jan 18 2025 02:44:29
Module start 'content'
Timing: Jan 18 2025 02:44:30
Module end 'content'
Timing: Jan 18 2025 02:44:30
Script end

Main resources:

Total runtime0.7974 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.9141152.6250
Module start 'layout' 0.00650.0028 740.539139.4531
Module start 'content' 0.00940.7868 779.9922402.5625
Module end 'content' 0.79620.0012 1,182.55478.1563
Script end 0.7974  1,190.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4030160.0002
Check MTime0.00130.1621160.0001
Mysql Total
Database connection0.00120.155610.0012
Mysqli_queries0.763195.6983470.0162
Looping result0.00040.0520450.0000
Template Total0.764695.920.3823
Template load0.00190.236020.0009
Template processing0.762795.647020.3813
Template load and register function0.00020.019610.0002
states
state_id_array0.00190.236710.0019
state_identifier_array0.00070.092920.0004
Override
Cache load0.00150.189790.0002
Sytem overhead
Fetch class attribute can translate value0.00070.092810.0007
Fetch class attribute name0.00070.084910.0007
XML
Image XML parsing0.00010.011210.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0884100.0001
String conversion0.00000.000940.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs