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

  • From: "Roger L. Costello" <costello@m...>
  • To: xml-dev@l...
  • Date: Fri, 06 Jul 2001 13:56:06 -0400

Eric van der Vlist wrote:
 
> why is this non-deterministic with these numbers 
> of occurrences?

Hi Eric,

Consider this portion of an instance document:

<test>
    <a>

When a parser gets to <a>, which "a" is it - the element declaration
that is the immediate child of <xsd:choice>, or the element declaration
that is an immediate child of <xsd:sequence>?  There's no way for the
parser to know unless it "looks ahead" to the next element.  That's
non-deterministic.  /Roger


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