[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schema question: A <xs:choice> equivalent for attributes?
Eddie Robertsson wrote: > > Unfortunately you can't do this with W3C XML Schema. As I see it you have two > options: > > 1) Change to a different schema dialect (I think RELAX-NG support this > functionality) > 2) Express you co-constraint using an embedded schematron rule Since yesterday, we need add to this list of options the elegant workaround using abstract datatypes [1] proposed by Jeni. [1] http://lists.xml.org/archives/xml-dev/200107/msg00038.html Here, the xsi:type attribute in the instance document is giving to the W3C XML Schema validator enough information to determine which case we are handling. Eric > /Eddie -- See you at XTech in San Diego. http://conferences.oreillynet.com/cs/os2001/view/e_spkr/790 ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com http://xsltunit.org http://4xt.org http://examplotron.org ------------------------------------------------------------------------
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|