[oXygen-user] Some more help with interpreting validations errors please
Tue Aug 24 22:29:04 CDT 2004
Hi Everyone,
First of all a big thanks to Sorin and George for helping fix my validation
errors that I sent to this list.
Secondly, I have tried to apply my (limited) understanding of those fixes to
the rest of the XML Schema. I unfortunately can't work through what I think
is a complex structure to work out where I need to add the "import" and
"include" statements.
I have tarred and gzipped the GML and ISO 19139 schema that I am using and
made them available at the following URL:
http://www-test.ga.gov.au/asdd/work/ISO19139GML.tar.gz
I have generated an Oxygen project called smXML.xpr and loaded the following
XML Schema into that project:
Geometry.xsd
TemporalObjects.xsd
applicationSchema.xsd bad
basicTypes.xsd
citation.xsd bad
constraints.xsd
content.xsd bad
dataQuality.xsd bad
distribution.xsd bad
extent.xsd bad
generalFeatureModel.xsd
identification.xsd bad
maintenance.xsd bad
metadataApplication.xsd bad
metadataEntity.xsd bad
metadataExtension.xsd bad
portrayalCatalogue.xsd bad
referenceSystem.xsd bad
scXMLbase.xsd
spatialRepresentation.xsd bad
I have also noted which files do not *individually* validate by putting the
word "bad" next to the above file list. The Geometry.xsd validates
individually. However, if I validate some XML Schema that "import"
Geometry.xsd then Geometry.xsd has the following errors:
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:AbstractGeometryType' to a(n) 'type definition' component.
Geometry.xsd file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd
37:80"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:AbstractGeometricPrimitiveType' to a(n) 'type definition'
component. Geometry.xsd
file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd 27:39"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:PointType' to a(n) 'type definition' component. Geometry.xsd
file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd 16:91"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:Point' to a(n) 'element declaration' component. Geometry.xsd
file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd 20:44"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:_GeometricPrimitive' to a(n) 'element declaration' component.
Geometry.xsd file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd
31:58"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:_Geometry' to a(n) 'element declaration' component.
Geometry.xsd file:/E:/downloads/ISO19139/2004-08-17/ssXML/Geometry.xsd
41:48"
Similarly, if I validate TemporalObjects.xsd there are no errors yet if I
validate XML Schema in the project then those XML Schema that "import"
TemporalObjects.xsd indicate that TemporalObjects.xsd has the following
errors:
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:AbstractTimeObjectType' to a(n) 'type definition' component.
TemporalObjects.xsd
file:/E:/downloads/ISO19139/2004-08-17/stXML/TemporalObjects.xsd
23:65"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:AbstractTimePrimitiveType' to a(n) 'type definition' component.
TemporalObjects.xsd
file:/E:/downloads/ISO19139/2004-08-17/stXML/TemporalObjects.xsd
13:38"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:_TimePrimitive' to a(n) 'element declaration' component.
TemporalObjects.xsd
file:/E:/downloads/ISO19139/2004-08-17/stXML/TemporalObjects.xsd
17:53"
"http://www.w3.org/TR/xmlschema-1/#src-resolve E src-resolve: Cannot resolve
the name 'gml:_TimeObject' to a(n) 'element declaration' component.
TemporalObjects.xsd
file:/E:/downloads/ISO19139/2004-08-17/stXML/TemporalObjects.xsd
27:50"
I believe that the problem has something to do with the link between the
ISO19139 XML Schema files and the GML XML Schema files. I have somehow come
to this conclusion because of the following commonly occurring validation
error:
"E src-resolve: Cannot resolve the name 'gml:......' to a(n) 'type
definition' component."
Please note that the "......" represents different GML types and elements.
"E src-resolve: Cannot resolve the name 'gml:AbstractTimeObjectType' to a(n)
'type definition' component. TemporalObjects.xsd
file:/E:/downloads/ISO19139/2004-08-17/stXML/TemporalObjects.xsd
23:65"
How can a file be valid and also invalid? Can anyone help me track down
which files need the "import" or "include" statements?
Thanks.
John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/
More information about the oXygen-user
mailing list