W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: validation problem, conflicting element scope ?

From: Eddie Robertsson <eddie@allette.com.au>
Date: Thu, 06 Dec 2001 09:57:07 +1100
Message-ID: <3C0EA643.CCF8375B@allette.com.au>
To: Guillaume Rousse <rousse@ccr.jussieu.fr>
CC: xmlschema-dev@w3.org
Hi,


> Here are the global elements definition:
> <element name="locations" minOccurs="0" maxOccurs="1">
>   <complexType>
>     <sequence>
>       <element ref="model:location" minOccurs="1" maxOccurs="unbounded"/>
>     </sequence>
>     <attribute name="id" type="model:KeyType"/>
>   </complexType>
> </element>

I don't think this is the cause of your problem but you're not allowed to have
minOccurs and maxOccurs attributes on global element definitions so try and
remove these from the above element declaration.
Other than that you schema and instance look good to me. What version of Xercex
are you using?

Cheers,
/Eddie
Received on Wednesday, 5 December 2001 17:50:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT