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


Thu Aug 26 18:43:50 CDT 2004


George,

Thank you very much for replying to my email.  

It took me a while to work out what to do.  Probably because of my lack of
understanding of the W3C XML Schema standard.  ;--)  I fixed the problem by
tracking down that feature.xsd is the base XML Schema for GML (as you
suggested that I look for).  Once I imported that schema under the gml
namespace into the applicationSchema.xsd, Geometry.xsd and
TemporalObjects.xsd and fixed a couple of spelling mistakes then everything
validated.  It even validated after checking the "schema-full-checking"
option except for a repeating error in the GML Schema.

Thank you very much for all your help.


John

> -----Original Message-----
> From: George Cristian Bina [mailto:] 
> Sent: Wednesday, 25 August 2004 5:45 PM
> To: Hockaday John; 
> Subject: Re: [oXygen-user] Some more help with interpreting 
> validations errorsplease
> 
> 
> 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/g
> eometryComplex
> es.xsd"/>
> 
> and
> 
> <xs:import namespace="http://www.opengis.net/gml"
> schemaLocation="../../../GML3.1/GML-3.1.0-Draft-Schemas/base/t
> emporal.xsd"/>
> TemporalObjects.xsd
> file:/D:/test/current/ISO19139/2004-08-17/stXML/TemporalObject
> s.xsd 8:23
> <xs:import namespace="http://www.opengis.net/gml"
> schemaLocation="../../../GML3.1/GML-3.1.0-Draft-Schemas/base/t
> emporal.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