Eric van der Vlist wrote: > On Mon, 2004-07-19 at 19:21, strubel at photonfocus.com wrote: >>>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.
It should be well supported by XXE (I haven't retested this interactively since a long time) because XXE uses a very dynamic validator. But IMHO this feature is unusable interactively in any XML editor because it requires you to manually add the proper "xsi:type", which is error prone and easy to forget.

