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

From
Andrew Welch <>
To
Rick Jelliffe <>
Date
2008-09-22T16:07:46Z
ID
<>
Thread
Re: [xml-dev] Use xsd to specify multiple instances of existing element
> The conditional way does not seem to meet Ian's order constraint. So I think
> the assertions are the
> only mechanism for XSD 1.1 for Ian's particular problem.

unless you can do:

<xs:alternative type="element-that-must-be-first" test="position() eq 1"/>
<xs:alternative type="element-that-must-be-second" test="position() eq 2"/>
<xs:alternative type="rest" test="position() gt 2"/>

I don't know if that's possible....



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/