W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2003

Re: parsing ambiguous schema

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 21 Mar 2003 10:13:24 +0000
To: Lingzhi Zhang <lzhang@cse.ogi.edu>
Cc: dev xmlschema <xmlschema-dev@w3.org>
Message-ID: <f5bn0jpqb7f.fsf@erasmus.inf.ed.ac.uk>

Lingzhi Zhang <lzhang@cse.ogi.edu> writes:

> below is a non-deterministic schema, it is unable to determine,
> without looking ahead to the next element, if the apple element is
> the first part of the sequence of apple and berry or the first part
> of the sequence of apple and coffee. which parser could parse xml document
> agains this kind of schema?

No conformant processor will schema-validate using this schema -- it
violates the Unique Particle Attribution constraint on schemas, as you
correctly point out.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Friday, 21 March 2003 05:13:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC