- From: Swayam Vemuri -X \(swvemuri - WIPRO at Cisco\) <swvemuri@cisco.com>
- Date: Sun, 11 Mar 2007 09:21:09 +0530
- To: <xmlschema-dev@w3.org>
- Message-ID: <CD0ED6DCA2BDE145942ACA8F57E42298024236FC@xmb-blr-414.apac.cisco.com>
Hi,
I have a schema base1.xsd a snippet of which is as shown below.
base1.xsd
---------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.cisco.com/abc/def"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:java="http://www.cisco.com/abc/def/java"
xmlns:database="http://www.cisco.com/abc/def/database"
targetNamespace="http://www.cisco.com/abc/def"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.cisco.com/abc/def/java"
schemaLocation="def_Java_1.xsd"/>
<xs:import namespace="http://www.cisco.com/abc/def/database"
schemaLocation="def_DB_3.xsd"/>
..............................
<xs:complexType name="referenceType">
<xs:sequence>
<xs:any namespace=" ##other"
processContents=" lax" minOccurs="0"/>
<xs:element name="description"
type="xs:string" minOccurs="0"/>
<xs:element ref="assert"
minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="database:Set"
minOccurs="1" />
</xs:sequence>
...............
</xs:complexType>
I have another schema def_DB_3.xsd a database schema which I am
importing into base1.xsd
In the database schema that is in def_DB_3.xsd, I have below
<database:complexType name="CollectionType" abstract="true"
>
<database:complexContent>
<database:restriction
base="database:anyType">
<database:attribute
name="KeyColumn" type="database:string" use="required"/>
<database:attribute
name="OneToManyClassName" type="database:string" use="required"/>
</database:restriction>
</database:complexContent>
</database:complexType>
<database:element name="Set">
<database:complexType >
<database:complexContent>
<database:extension
base="CollectionType"/>
</database:complexContent>
</database:complexType>
</database:element>
Now when I try to validate base1.xsd Iam getting below error
<xs:any namespace=" ##other" processContents=" lax" minOccurs="0"/>
makes the content model non-deterministic against
<xs:element ref=Set> Possible causes : name equality etc etc
Can any one please let me know how to solve this problem. ?
What are the various options in solving the problem ?
If I comment out <xs:any namespace=" ##other" processContents=" lax"
minOccurs="0"/>,
then validation of base1.xsd is successful.Otherwise it fails.
Thanks and regards
Swayam
Received on Sunday, 11 March 2007 03:51:24 UTC