xsd:any - namespace problem [message #589998] |
Thu, 05 August 2004 14:44 |
Eclipse User |
|
|
|
Originally posted by: alastair.dunsmore.mottmac.com
Hi,
I have been trying to import an XML Schema file (via Eclipse into a new
EMF Java project) and each time it came back with the same error:
Problems were detected while validating and converting the XML Schemas
Error: XSD: The element 'http://www.trip.org/schema/trip#name' may not
overlap with a wildcard allowing its namespace : URI
file:/C:/appdev/HAREGISTRY/problem_example.xsd Line 4 Column 3
Error: XSD: The element 'http://www.trip.org/schema/trip#linkDistance'
may not overlap with a wildcard allowing its namespace : URI
file:/C:/appdev/HAREGISTRY/problem_example.xsd Line 4 Column 3
Error: XSD: The element 'http://www.trip.org/schema/trip#linkDistance'
may not overlap with a wildcard allowing its namespace : URI
file:/C:/appdev/HAREGISTRY/problem_example.xsd Line 4 Column 3
I have included below a cut down version of the schema that highlights the
problem. It does import if (1) the xsd:any is removed or (2) the
minOccurs="0"
is removed for the xsd:element name="linkDistance"?
Can anyone suggest if this is an issue/bug with XSD or with the XML Schema
I
am dealing with?
Thanks for any help,
Alastair
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.trip.org/schema/trip"
elementFormDefault="qualified" version="2.0"
xmlns="http://www.tript.org/schema/trip"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="RaceSubject">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="linkDistance" type="xsd:decimal"
minOccurs="0"/>
<xsd:any minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds