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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Same element, different type

> Is there a way to define two unambiguous elements with the 
> same name but are of different types?  I believe the answer 
> here is "it can't be done", but thought I'd throw this at the 
> wolves to see if I'm right. :)

You're right: the "Element Declarations Consistent" rule disallows this. 

If you want to know why, that's another story, whose beginning is lost in
the mist of time.

You can do it in XSD 1.1 using assertions.

Michael Kay

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

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

Copyright 1993-2007 XML.org. This site is hosted by OASIS