[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Doubt in non-deterministic content model

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Tue, 17 Feb 2009 12:41:06 -0700
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, xmlschema-dev@w3.org, ranjit@huawei.com, ashutosh_p@huawei.com
Message-Id: <502E62CD-E951-4FF0-8375-81F36948D438@blackmesatech.com>
To: Bharath Kumar Reddy T <bharathkr@huawei.com>
Re: Doubt in non-deterministic content model
On 17 Feb 2009, at 03:14 , Bharath Kumar Reddy T wrote:

> Hi..
>
> The following schema is non deterministic since the parser will not  
> determine whether it should compare the element in the instance  
> document with 1st element declaration or 2nd element declaration.
>  ...
> For the following schema also same scenario is present. But one of  
> the xml Parsers is not giving any error. Can any body tell me  
> whether the following schema is non-deterministic or not?

No, it's not non-deterministic.

If your type 'derived' were an extension rather than a restriction
of type 'base', I think you'd have a case of non-determinism; was
there a typo in your example?


-- 
****************************************************************
* C. M. Sperberg-McQueen
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************
Received on Tuesday, 17 February 2009 19:41:46 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.