Michael Rolli
2004-02-24 16:32:41 UTC
Hi chregu
Started playing with current head version of bxeng. It really seems
matured since I tried it last time.
Especially I'm amazed about the unizh example and wondered if it's
possible to translate this example into bitflux-cms. My current goal is
to be able to have something like this:
<iba>
<tree/>
<page>
<Article>
<main>
<any code that's legal xhtml and would normally be
<body>here</body>/>
</main>
</Article>
</page>
</iba>
Found the starting point in xhtml/modules/struct.rng.xml (<define
name="body"><ref name="Block.model"/></define>) and then tried it with a
relax file like this:
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns=""
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
<include href="xhtml.rng.xml">
<start>
<element name="iba">
<element name="tree">
<empty/>
</element>
<element name="page">
<element name="Article">
<attribute name="ID">
<data type="NCName"/>
</attribute>
<element name="ID">
<data type="integer"/>
</element>
<element name="main">
<ref name="Block.model"/>
</element>
<element name="title">
<text/>
</element>
<element name="lang">
<data type="NCName"/>
</element>
<element name="lang">
<text/>
</element>
<element name="uri">
<text/>
</element>
<element name="username">
<text/>
</element>
</element>
</element>
</element>
</start>
</include>
</grammar>
But actually this doesn't work. :-( Complaining e.g. about "b is not
allowed as child of p"
Is it possible at all?
Where are the essential points to look after?
Is it a ns issue?
Thanks for any help on this.
Cheerz
Michael
Started playing with current head version of bxeng. It really seems
matured since I tried it last time.
Especially I'm amazed about the unizh example and wondered if it's
possible to translate this example into bitflux-cms. My current goal is
to be able to have something like this:
<iba>
<tree/>
<page>
<Article>
<main>
<any code that's legal xhtml and would normally be
<body>here</body>/>
</main>
</Article>
</page>
</iba>
Found the starting point in xhtml/modules/struct.rng.xml (<define
name="body"><ref name="Block.model"/></define>) and then tried it with a
relax file like this:
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns=""
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
<include href="xhtml.rng.xml">
<start>
<element name="iba">
<element name="tree">
<empty/>
</element>
<element name="page">
<element name="Article">
<attribute name="ID">
<data type="NCName"/>
</attribute>
<element name="ID">
<data type="integer"/>
</element>
<element name="main">
<ref name="Block.model"/>
</element>
<element name="title">
<text/>
</element>
<element name="lang">
<data type="NCName"/>
</element>
<element name="lang">
<text/>
</element>
<element name="uri">
<text/>
</element>
<element name="username">
<text/>
</element>
</element>
</element>
</element>
</start>
</include>
</grammar>
But actually this doesn't work. :-( Complaining e.g. about "b is not
allowed as child of p"
Is it possible at all?
Where are the essential points to look after?
Is it a ns issue?
Thanks for any help on this.
Cheerz
Michael
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev