[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Same element, different type
- From: "Michael Kay" <mike@saxonica.com>
- To: "'Keith Hassen'" <keith.hassen@gmail.com>,<xml-dev@lists.xml.org>
- Date: Thu, 29 Jan 2009 23:17:54 -0000
> 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/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]