RE: [xml-dev] XML Schema Either Text Or Sequence

From
Michael Kay <>
To
'Alan Gutierrez' <>,
Date
2004-12-20T08:48:18
ID
<>
Thread
RE: [xml-dev] XML Schema Either Text Or Sequence
> 
>     I'd like to assert that the element set either contains a simple
>     type or more set elements.
> 
> 
>     I can't figure out how to make a union of the two. I'm beginning
>     to think that this is non-deterministric, or in some other
>     way a bad design.
> 

It's entirely deterministic, in the sense that there are simple finite state
machines that could validate your document against this constraint. The only
thing that makes it a bad design is that XML Schema can't describe it.

Michael Kay
http://www.saxonica.com/