[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Non-deterministic content model
- From: "Harbarth, Juliane" <Juliane.Harbarth@softwareag.com>
- To: "'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
- 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.