Florent Georges wrote:
[...]
> Ok. For me, that looks like they are looking for trouble... It
> seems weird to define an element in another namespace, while this
> element is already defined in another spec, and define it differently.
>
> What people here think about that?
>
Well... Relax NG is different than XML Schema wrt defining elements.
This basically say accept anything from the XHTML namespace, we do not
care to validate that. In XML schema one will use a wildcard specifying
the validation as skip or lax.
Then, if you want to validate the XHTML against an XHTML schema you can
create a new Relax NG schema that
* includes the XHTML schema and disables the start elements so that the
root will be from the Atom schema, something like below:
<include href="xhtml.rng">
<start combine="choice">
<notAllowed/>
</start>
</include>
* includes the Atom schema and redefines the xhtmlDiv pattern to refer
to the actual div pattern from the XHTML schema, something like below:
<include href="atom.rng">
<define name="xhtmlDiv">
<ref name="div"/>
</define>
</include>
So I do not really see a problem with this approach.
Best Regards,
George
-- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com -- DSDL comments To unsubscribe, please send a message with the command "unsubscribe" to dsdl-comment-request@dsdl.org (mailto:dsdl-comment-request@dsdl.org?Subject=unsubscribe)Received on Wed May 14 14:48:24 2008
This archive was generated by hypermail 2.1.8 : Sat May 17 2008 - 14:03:04 UTC