DTD or Schema available for eZ publish?

Author Message

Alex Jones

Thursday 18 September 2003 3:01:19 pm

Is there a DTD/schema available denoting all of the tags used by eZ publish? If so, where could I get a copy?

Thanks,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bård Farstad

Thursday 30 October 2003 1:19:11 am

We've not finished the ezschema so we've not made a schema for the XML field. We've got the definition in ezsimplifiedxmlinput.php as a bunch of arrays.

Here is an example of the XML format (from ezxmltexttype.php):

<?xml version="1.0" encoding="utf-8" ?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/">
<header>This is a level one header</header>
<paragraph>
This is a <emphasize>block</emphasize> of text.
</paragraph>
<section>
<header class="foo">This is a level two header has classification "foo"</header>
<paragraph>
This is the second paragraph with <bold class="foo">bold text which has classification "foo"</bold>
</paragraph>
<header>This is a level two header</header>
<paragraph>
<line>Paragraph can have table</line>
<table class="foo" border='1' width='100%'>
<tr>
<th class="foo"><paragraph>table header of class "foo"</paragraph></th>
<td xhtml:width="66" xhtml:colspan="2" xhtml:rowspan="2">
<paragraph>table cell text</paragraph>
</td>
</tr>
</table>
</paragraph>
<paragraph>
<line>This is the first line with <anchor name="first">anchor</anchor></line>
<line>This is the second line with <link target="_self" id="1">link</link></line>
<line>This is the third line.</line>
</paragraph>
<paragraph>
<ul class="foo">
<li>List item 1</li>
<li>List item 2</li>
</ul>
</paragraph>
<paragraph>
<ol>
<li>Ordered list item 1</li>
<li>ordered list item 2</li>
</ol>
</paragraph>
<paragraph>
<line>Paragraph can have both inline custom tag <custom name="myInlineTag">text</custom> and block custom tag</line>
<custom name="myBlockTag">
<paragraph>
block text
</paragraph>
</custom>
</paragraph>
<paragraph>
Paragraph can have image object with link <object id="55" size="large" align="center" image:ezurl_id="4" />
</paragraph>
<paragraph>
You can use literal tag to write html code if you have done some changes in override system.
<literal class="html">&lt;font color=&quot;red&quot;&gt;red text&lt;/font&gt;</literal>
</paragraph>
<header>This is a level two header</header>
</section>
</section>

Hope this helps. The plan is to implement the schema class and use it for validation. For now we have a simpler definition using plain PHP arrays.

--bård

Documentation: http://ez.no/doc

Alex Jones

Thursday 30 October 2003 6:20:50 am

Thank you for the answer Bård! The main reason I was hoping for this was an easy way to import all of eZ's tags into DreamWeaver so it would color-code my templates and the like.

Thanks again,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Marco Zinn

Thursday 30 October 2003 9:37:59 am

Hi Alex,
I'd like to have syntax highlighting for templates in my DW MX, too.
The problem, that I found yesterday:
ez Templates Tags use { and } instead of the "common" < and > characters.
I didn't find a way to tell DW, that this is should be treated as tags. Besides that, we would information about the template tags, not the XML tags, that ezPublish uses.

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

Alex Jones

Thursday 30 October 2003 9:56:24 am

Marco, I ran into the same thing. I was hoping for a DTD or Schema as DWMX allows you to import them directly into the tag editor. I was hoping to use that to get around the problem with the curly braces.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bruce Morrison

Thursday 30 October 2003 11:40:18 pm

Have a look at
http://article.gmane.org/gmane.comp.php.smarty.general/6761

This posting contains a dreamweaver extention for the smarty templating system. I know it's not exactly the same as the ezTemplate system but you may be to modify it.

(I don't use dreamweaver and haven't tried this)

Hope it helps
Bruce
http://www.designit.com.au/

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 16:23:23
Script start
Timing: Jan 18 2025 16:23:23
Module start 'layout'
Timing: Jan 18 2025 16:23:23
Module start 'content'
Timing: Jan 18 2025 16:23:23
Module end 'content'
Timing: Jan 18 2025 16:23:23
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9297152.6250
Module start 'layout' 0.00620.0038 740.554739.4453
Module start 'content' 0.01000.0046 780.000097.3047
Module end 'content' 0.01460.0017 877.304742.3047
Script end 0.0163  919.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.2853140.0002
Check MTime0.00116.6605140.0001
Mysql Total
Database connection0.00074.091810.0007
Mysqli_queries0.004024.654230.0013
Looping result0.00000.097610.0000
Template Total0.00158.910.0015
Template load0.00084.881010.0008
Template processing0.00063.946210.0006
Override
Cache load0.00063.414710.0006
General
dbfile0.00031.630980.0000
String conversion0.00000.072840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs