Forums / General / DTD or Schema available for eZ publish?

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