Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » xsd:any - namespace problem
xsd:any - namespace problem [message #589998] Thu, 05 August 2004 14:44
Eclipse UserFriend
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>
Previous Topic:How to get declaration in the order defined in XML Schema file
Next Topic:xsd:any - namespace problem
Goto Forum:
  


Current Time: Wed Apr 24 16:31:45 GMT 2024

Powered by FUDForum. Page generated in 0.03015 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top