Re: constraints for non-deterministic constructs

"Weber, Heiko" <Heiko.Weber@softwareag.com> writes:

> Are there any constraints in the Schema defnition that prohibit using
> constructs like the following?
> 
> <complexType>
>   <choice>
>     <sequence>
>       <element ref="A">
>     </sequence>
>     <choice>
>       <element ref="A">
>       <element ref="B">
>     </choice>
>   </choice>
> </complexType>
> 
> If I got the element "A" I wouldn't be able to decide if this element
> would match the sequence or the choice.

Ruled out by the Unique Particle Attribution constraint [1].

ht

[1] http://www.w3.org/TR/xmlschema-1/#cos-nonambig
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Friday, 9 March 2001 10:13:32 UTC