eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
205 stars 111 forks source link

errors compiling gml/2.1.2/geometry.xsd #52

Closed Tomas-Kraus closed 19 years ago

Tomas-Kraus commented 19 years ago

I'm trying to compile http://schemas.opengis.net/gml/2.1.2/geometry.xsd and I'm getting a series of errors

[ERROR] rcase-RecurseLax.2: There is not a complete functional mapping between the particles. line 297 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

[ERROR] derivation-ok-restriction.5.4.2: Error for type 'MultiPolygonType'. The particle of the type is not a valid restriction of the particle of the base. line 297 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

[ERROR] rcase-RecurseLax.2: There is not a complete functional mapping between the particles. line 280 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

[ERROR] derivation-ok-restriction.5.4.2: Error for type 'MultiLineStringType'. The particle of the type is not a valid restriction of the particle of the base. line 280 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

[ERROR] rcase-RecurseLax.2: There is not a complete functional mapping between the particles. line 263 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

[ERROR] derivation-ok-restriction.5.4.2: Error for type 'MultiPointType'. The particle of the type is not a valid restriction of the particle of the base. line 263 of file:/C:/Temp/java/OGCFilter/schemas/gml/2.1.2/geometry.xsd

These seem to be caused by a restriction of an extension of a restriction:

line 263:

Environment

Operating System: All Platform: All

Affected Versions

[2.0 EA1]

Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 19 years ago

@glassfishrobot Commented Reported by m_r_atkinson

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented kohsuke said: This is actually coming from Xerces, and it's complaining that the type definitions in the schema doesn't satisfy one of the most arcane rules of the XML Schema.

I can't see all of the relevant definitions in the posting, but given the past track record of Xerces on these issues, I tend to believe that Xerces is right.

I also know that in xmlschema-dev@w3c.org, someone reported that MSXML4 reports a similar error. Another user reported a similar problem to XMLBeans, too.

So I think at this point it's safe to assume that the GML schema in question is broken. I'm quoting the comment posted by the XMLBeans developer, as that seems to explain the actual cause of the problem:

there is a problem in defining the type "PointMemberType" which is supposed to be restricting "GeometryAssociationType", but its particle "Point" does not restrict the corresponding particle "gml:_Geometry", because it has a type ("gml:PointType") which extends the type of "gml:_Geometry" ("gml:AbstractGeometryType"). See http://www.w3.org/TR/xmlschema-1/#rcase-NameAndTypeOK clause 3.2.5

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented Was assigned to jaxb-issues

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-52

Tomas-Kraus commented 19 years ago

@glassfishrobot Commented Marked as incomplete on Tuesday, May 17th 2005, 10:47:44 am