RE: Rationale for restricted uses of "all"

>   <xs:all>
>     <xs:element ref="B" />
>     <xs:sequence>
>       <xs:element ref="C" maxOccurs="5" />
>     </xs:sequence>
>   </xs:all>
> 
> Or is the problem that the sequence in the above would be ignored
> as "pointless" according to the current rules?

Or is the problem that "sequence" is not the same as "contiguousness"?

What if I wanted to enforce the set {<A/><B/><C/>, <B/><C/><A/>,
</C></B><A/> <A/><C/><B/>}, but disallow <A/> occurences between <B/> and
<C/>? 

It seems like I need a third content model group type:

<all>
	<element name="A"/>
	<contiguous>
		<all>
			<element name="B"/>
			<element name="C"/>
		</all>
	</contiguous>
</all>


Later,

Jeff

Received on Wednesday, 21 November 2001 14:23:02 UTC