[Home] [By Thread] [By Date] [Recent Entries]
> > 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.
|

Cart



