[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Harbarth, Juliane" <Juliane.Harbarth@s...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Wed, 13 Jun 2001 10:38:42 +0200

>
> 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.



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member