[oXygen-user] Some more help with interpreting validations errorsplease

George Cristian Bina
Wed Aug 25 02:44:40 CDT 2004


Hi John,

As you know oXygen uses Xerces for XML Schema validation. Xerces follows a
one schema file per namespace rule, that is if you import a schema in one
place then the following import statements will be disregarded and the
schema in the first encountered import will be used. Therefore you should
always refer to your schema master file in an import statement otherwise you
may get errors like the ones you quoted below.

In your case I found that you import the http://www.opengis.net/gml
namespace refering to two different schemas:

<xs:import namespace="http://www.opengis.net/gml" Geometry.xsd
file:/D:/test/current/ISO19139/2004-08-17/ssXML/Geometry.xsd 10:23
<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="../../../GML3.1/GML-3.1.0-Draft-Schemas/base/geometryComplex
es.xsd"/>

and

<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="../../../GML3.1/GML-3.1.0-Draft-Schemas/base/temporal.xsd"/>
TemporalObjects.xsd
file:/D:/test/current/ISO19139/2004-08-17/stXML/TemporalObjects.xsd 8:23
<xs:import namespace="http://www.opengis.net/gml"
schemaLocation="../../../GML3.1/GML-3.1.0-Draft-Schemas/base/temporal.xsd"/>

I guess this causes the errors.

If there is not a master schema for your namespace then you can just define
a schema with that target namespace and include all the files that define
components of that namespace and use that as the main schema file.

Best Regards,
George
-------------------------------------------------------------
George Cristian Bina mailto:
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: <>
To: <>
Sent: Wednesday, August 25, 2004 6:29 AM
Subject: [oXygen-user] Some more help with interpreting validations
errorsplease


> 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/
> 
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>



More information about the oXygen-user mailing list