Next in thread → Next in month →

RE: [xml-dev] Same element, different type

From
Michael Kay <>
To
'Keith Hassen' <>,
Date
2009-01-29T23:17:54
ID
<C215491FDAD048DEA34AD52F87686632@Sealion>
Thread
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
http://www.saxonica.com/
Next in thread → Next in month →