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
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?



<?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:element name="e1" minOccurs="0"/>
   <xsd:element name="e2" minOccurs="0"/>
 <xsd:element name="doc">
    <xsd:restriction base="x:base">
      <xsd:element name="e1" minOccurs="0"/>
Received on Thursday, 26 September 2002 17:19:35 UTC

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