W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

particlesHb010.xsd (Microsoft test collection)

From: Stanley Guan <stanley.guan@oracle.com>
Date: Thu, 26 Sep 2002 14:18:53 -0700
Message-ID: <01c801c265a2$513880c0$c5b42382@us.oracle.com>
To: <xmlschema-dev@w3.org>
Cc: "Schema Interest Group" <w3c-xml-schema-ig@w3.org>
According to
  http://www.w3.org/XML/2001/05/xmlschema-test-collection/result-ms-Particles.htm,
it expects the schema to be invalid because it thinks it's a restriction
of a sequnce particle by a choice particle.  However, this
test should succeeds because <choice> is pointless and
must be ignored.  Then, it's a restriction of a sequnce particle
by an element particle and in this case it should be o.k.

Am I right?

Thx,

-Stanley


<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" elementFormDefault="qualified">
 <xsd:complexType name="base">
  <xsd:sequence>
   <xsd:element name="e1" minOccurs="0"/>
   <xsd:element name="e2" minOccurs="0"/>
  </xsd:sequence>
 </xsd:complexType>
 <xsd:element name="doc">
  <xsd:complexType>
   <xsd:complexContent>
    <xsd:restriction base="x:base">
     <xsd:choice>
      <xsd:element name="e1" minOccurs="0"/>
     </xsd:choice>
    </xsd:restriction>
   </xsd:complexContent>
  </xsd:complexType>
 </xsd:element>
</xsd:schema>
Received on Thursday, 26 September 2002 17:19:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT