OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Non-deterministic content model



>
> Can anybody tell me whether the following content model is deterministic
or non-
> deterministic? and why?
>
> <!ELEMENT a ((x, y) | (y, x))?>
>
It is deterministic.

From the XML spec, 3.2.1 Element Content :
it is an error if an element in the document can match more than one
occurrence of an element type in the content model. 

If <a> is followed by <x>, this can only be the first choice.
If <a> is followed by <y>, this can only be the second choice.
If <a> is followed by </a>, this can only be the '?' branch. 
Anything else is invalid.
Intermingling white-space is allowed.

Regards,
Juliane.