- From: Stanley Guan <stanley.guan@oracle.com>
- Date: Tue, 1 Oct 2002 14:29:33 -0700
- To: <xmlschema-dev@w3.org>
- Cc: "Dare Obasanjo" <dareo@microsoft.com>
- Message-ID: <03ec01c26991$a2e53560$c5b42382@us.oracle.com>
Sorry, my mistake. The expected result is correct
because e1's targetNamespace is absent. Therefore,
it is a valid restriction from the wildcard particle with
namespace="##other".
Thx,
-Stanley
----- Original Message -----
From: Stanley Guan
To: xmlschema-dev@w3.org
Cc: Dare Obasanjo
Sent: Tuesday, October 01, 2002 9:48 AM
Subject: particlesR020 (Microsoft test suite) - NSRecurseCheckCardinality
Hi,
The following schema definition file is at fault because element e1
is not a valid restriction of the wildcard particle with
namespace="##other". But, the posted result says that the
expected result is valid.
Please clarify!
Thx,
-Stanley
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xsdtesting"
xmlns:x="http://xsdtesting"
xmlns:imp="http://importedXSD">
<xsd:import namespace="http://importedXSD" schemaLocation="particlesR020.imp"/>
<xsd:complexType name="B">
<xsd:sequence>
<xsd:element name="foo" minOccurs="1" maxOccurs="1"/>
<xsd:any namespace="##other" minOccurs="1" maxOccurs="2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="R">
<xsd:complexContent>
<xsd:restriction base="x:B">
<xsd:sequence>
<xsd:element name="foo" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="imp:impElem1" minOccurs="1" maxOccurs="1"/>
<xsd:element name="e1" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="doc">
<xsd:complexType>
<xsd:choice>
<xsd:element name="elem" type="x:R"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Received on Tuesday, 1 October 2002 17:30:31 UTC