OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XML schema type question

[ Lists Home | Date Index | Thread Index ]

I've seen the XML Schema Type Library's "text" type, supporting arbitrary mixed content.  I have been unable to figure out how to define a complex type whose contents are any simple type value or any single element, but not a mixture, where an element of this special type has a certain set of attributes  That is, I'm trying to define
<element name="foo">
<complexType >
   ??? some kind of restriction of anyType with either simple or complex content
   <restriction base="anyType">
     <attribute name="a" ...>
     <attribute name="b" ...>
so I can say in instance docs
   <foo a="x" b="y" xsi:type="xsd:boolean">true</foo>
   <foo a="xx" b="yy" xsi:type="SomeComplexType">
I think I need a disjunction of simpleContent and complexContent but am uncertain how to produce this.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS