On Mon, 2004-07-19 at 19:21, strubel at photonfocus.com wrote:
> Hi Hussein,
> 
> > 
> > 
> > Using DTDs or W3C XML Schemas, there is *no way* to allow or forbid a 
> > child element such as "size" depending on the value of attribute "type" 
> > of parent element "property".
> > 
> 
> I was fearing that...I saw something about an extension called 
> "Schematron" that is providing a workaround, but that is obviously not 
> usable within XXE.

There is another workaround which is 100% W3C XML Schema which is to use
a "xsi:type" attribute instead of your unqualified "type" attribute:
"xsi:type" is a WXS feature that lets you specify the type (either
complex or simple) of an XML element in the instance document.

I don't know to which extend it is supported by XXE, though.

Eric
-- 
Curious about Relax NG? Read my book online.
                                   http://books.xmlschemata.org/relaxng/
Upcoming XML schema languages tutorial:
 - Portland   -half day-   (27/07/2004)        http://masl.to/?E6ED13728
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


Reply via email to