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

whether the given schema is non-deterministic or not

From: Bharath Kumar Reddy T <bharathkr@huawei.com>
Date: Wed, 18 Feb 2009 16:24:30 +0530
To: xmlschema-dev@w3.org
Cc: ashutosh_p@huawei.com, ranjit@huawei.com
Message-id: <000801c991b7$471c4ed0$3a12120a@china.huawei.com>
whether the given schema is non-deterministic or not
Hi..
 
Can you please tell me whether the following schema is non-deterministic or
not??
According to spec. two element particles if they are overlap and if thery
both are under choice/ALL model group, then that schema is
non-deterministic. 
But in the following schema, one e1 is under choice and other e1 is under
sequence. So, the schema is not a non-deterministic.
 
Please reply me whether i am correct or not.
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="doc" type="foo"/>

            <xsd:complexType name="foo">

                <xsd:choice>

                        <xsd:element name="e1" type="xsd:string"/>

                    <xsd:group ref="group"/>

                </xsd:choice>

        </xsd:complexType>

<xsd:group name="group">

    <xsd:sequence>

        <xsd:element name="e1" type="xsd:string"/>

    </xsd:sequence>

</xsd:group>

</xsd:schema>

 

Thanks and Regards,

Bharath
Received on Wednesday, 18 February 2009 10:55:25 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.