RE: [xml-dev] Use xsd to specify multiple instances of existing element

From
Michael Kay <>
To
'Pete Cordell' <>, 'Andrew Welch' <>
Date
2008-09-22T15:51:34Z
ID
<B328CED1B9024E098A22659F068CAE11@Sealion>
Thread
RE: [xml-dev] Use xsd to specify multiple instances of existing element
> > ...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/