- From: Stanley Guan <stanley.guan@oracle.com>
- Date: Thu, 26 Sep 2002 14:18:53 -0700
- To: <xmlschema-dev@w3.org>
- Cc: "Schema Interest Group" <w3c-xml-schema-ig@w3.org>
Received on Thursday, 26 September 2002 17:19:35 UTC
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 UTC