[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Use xsd to specify multiple instances of existing element
- From: "Michael Kay" <mike@saxonica.com>
- To: "'Pete Cordell'" <petexmldev@codalogic.com>,"'Andrew Welch'" <andrew.j.welch@gmail.com>
- Date: Mon, 22 Sep 2008 16:51:34 +0100
> > ...in XSD 1.0. It's perfectly possible 1.1 isn't it?
Yes, in either of two ways. Either by defining an assertion on the type of
the containing element, or by using conditional type assignment (where the
type of the element depends on the values of its attributes).
>
>
> I think XSD 1.1 allows some of the solution. But it seems
> that assertions are not allowed on elements
Assertions are defined on types, rather than elements, but that just means
you need to assign the element a distinguishing type.
Michael Kay
http://www.saxonica.com/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]