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

particlesR020 (Microsoft test suite) - NSRecurseCheckCardinality

From: Stanley Guan <stanley.guan@oracle.com>
Date: Tue, 1 Oct 2002 09:48:30 -0700
Message-ID: <03ad01c2696a$5f7c0b90$c5b42382@us.oracle.com>
To: <xmlschema-dev@w3.org>
Cc: "Dare Obasanjo" <dareo@microsoft.com>

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!



<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 <xsd:import namespace="http://importedXSD" schemaLocation="particlesR020.imp"/>
 <xsd:complexType name="B">
   <xsd:element name="foo" minOccurs="1" maxOccurs="1"/>
   <xsd:any namespace="##other" minOccurs="1" maxOccurs="2"/>
 <xsd:complexType name="R">
   <xsd:restriction base="x:B">
     <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:element name="doc">
    <xsd:element name="elem" type="x:R"/>
Received on Tuesday, 1 October 2002 12:49:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC