eZ Community » Forums » General » DTD or Schema available for eZ publish?
expandshrink

DTD or Schema available for eZ publish?

DTD or Schema available for eZ publish?

Friday 19 September 2003 12:01:19 am - 5 replies

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

Modified on Wednesday 29 October 2003 5:19:28 pm by Alex Jones

Thursday 30 October 2003 10: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

Thursday 30 October 2003 3:20:50 pm

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

Thursday 30 October 2003 6:37:59 pm

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.

Thursday 30 October 2003 6:56:24 pm

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

Friday 31 October 2003 8:40:18 am

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/

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from