RE: [oXygen-user] Some help please with interpreting error messages

George, Thank you so much for your response. I made the changes as you suggested and it fixed the errors that I reported in my email. Unfortunately, I have other errors which I will try to resolve before I consult this very good list. Your mention of the "schema-full-checking" switch allowed me to show all of the GML XML Schemas validated. Previously there were multitude validation errors before I switched off the "schema-full-checking". I tried looking up "schema-full-checking" in the Oxygen documentation but there wasn't enough for me to understand what it is. Can anyone point me to some documentation that explains what the "schema-full-checking" is? If not can someone explain to me, in simple terms, what it means? It seems to me that there are different levels of XML Schema validation but I'm not quite sure. If there are different validation levels what are the consequences of each level? Thanks in advance for any reply. John
-----Original Message----- From: George Cristian Bina [mailto:george@oxygenxml.com] Sent: Wednesday, 18 August 2004 1:49 AM To: Hockaday John; oXygen-user@oxygenxml.com Subject: Re: [oXygen-user] Some help please with interpreting error messages
Dear John,
The error message means that there is no declaration for that type in the included/imported schemas.
You should add change the <include schemaLocation="gmlBase.xsd"/> to <include schemaLocation="../../GML3.1/GML-3.1.0-Draft-Schemas/base/gmlB ase.xsd"/> in your ISO19139/2004-08-11/temporal.xsd file.
Also you need to import the XLink schema in your ISO19139/2004-08-11/basicTypes.xsd file.
<xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlinks.xsd"/>
Then the following document should be reported valid (with schema full checking feature disabled):
<?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.isotc211.org/stXML" xmlns:stXML="http://www.isotc211.org/stXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:scXML="http://www.isotc211.org/scXML" xmlns:gml="http://www.opengis.net/gml" version="0.1"> <!-- ================================== Imports ================================== --> <xs:import namespace="http://www.opengis.net/gml" schemaLocation="ISO19139/2004-08-11/temporal.xsd"/> <xs:import namespace="http://www.isotc211.org/scXML" schemaLocation="ISO19139/2004-08-11/basicTypes.xsd"/> <!-- ================================== Classes ================================= --> <!-- .............................................................. .......... --> <xs:element name="TM_Primitive" type="gml:AbstractTimePrimitiveType" substitutionGroup="stXML:TM_Object"/> <!-- .............................................................. .......... --> <xs:complexType name="TM_Primitive_PropertyType"> <xs:sequence> <xs:element ref="gml:_TimePrimitive" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="scXML:ObjectReference"/> </xs:complexType> <!-- ============================================================== ============= --> <!-- .............................................................. .......... --> <xs:element name="TM_Object" type="gml:AbstractTimeObjectType"/> <!-- .............................................................. .......... --> <xs:complexType name="TM_Object_PropertyType"> <xs:sequence> <xs:element ref="gml:_TimeObject" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="scXML:ObjectReference"/> </xs:complexType> </xs:schema>
Hope that helps, George ------------------------------------------------------------- George Cristian Bina mailto:george@oxygenxml.com <oXygen/> XML Editor - http://www.oxygenxml.com/
----- Original Message ----- From: <John.Hockaday@ga.gov.au> To: <oXygen-user@oxygenxml.com> Sent: Tuesday, August 17, 2004 2:30 AM Subject: RE: [oXygen-user] Some help please with interpreting error messages
Sorin,
Thank you very much for replying to my email. The XSDs that you ask for are about 1MB so I have tarred and gzipped them into a file called ISO19139GML.tar.gz. I have loaded this file onto a test web site. The URL is:
http://www-test.ga.gov.au/asdd/work/ISO19139GML.tar.gz
If you can't access this file then I will send it directly to you rather than fill up everyone's mailbox on this list.
The version of Oxygen that I am using is 3.1. I have asked for our systems administrators to load up version 4.2 and I expect that to happen within the next day or two. Maybe this will fix some of the validation errors.
Thanks again for replying to my email.
John
-----Original Message----- From: Sorin Ristache [mailto:sorin@oxygenxml.com] Sent: Monday, 16 August 2004 6:01 PM To: Hockaday John Cc: oXygen-user@oxygenxml.com Subject: Re: [oXygen-user] Some help please with interpreting error messages
Hello,
Can you send your version of the files basicTypes.xsd, temporal.xsd, gmlBase.xsd and xlinks.xsd and your complete XSD file that you are trying to validate ? If I use the GML schema files from http://schemas.opengis.net/ I get a completely different set of validation errors. What <oXygen/> version are you using for validation ?
Best regards, Sorin Ristache
http://www.oxygenxml.com/ Syncro Soft ltd.
John.Hockaday@ga.gov.au wrote:
Hi All,
At the bottom of this email is an extract from an W3C XML Schema file. When I try to validate this XSD I get the following error:
"E src-resolve: Cannot resolve the name 'gml:AbstractGeometryType' to a(n) 'type definition' component."
The line to which this errors refers is:
" <xs:element name="TM_Object" type="gml:AbstractTimeObjectType"/>"
I'm not quite sure what this error message means. I have tried looking at the relevant W3C XML Schema documentation but it doesn't make sense to me. I have looked at the temporal.xsd, which is the file referred to by the "gml" namespace. The relevant code looks like this:
" <complexType name="AbstractTimeObjectType" abstract="true"> <annotation> <documentation xml:lang="en"> The abstract supertype for temporal objects. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGMLType"/> </complexContent> </complexType> "
All I can think of is that the complexType name mentioned above should be "gml:AbstractTimeObjectType" to make it relate to the "gml" namespace.
Can anyone tell me how I must change the code below to get rid of the error?
Thanks in advance for any help.
John
<?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.isotc211.org/stXML" xmlns:stXML="http://www.isotc211.org/stXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:scXML="http://www.isotc211.org/scXML" xmlns:gml="http://www.opengis.net/gml" version="0.1"> <!-- ================================== Imports ================================== --> <xs:import namespace="http://www.opengis.net/gml" schemaLocation="../../GML3.1/GML-3.1.0-Draft-Schemas/base/tem poral.xsd"/> <xs:import namespace="http://www.isotc211.org/scXML" schemaLocation="basicTypes.xsd"/> <!-- ================================== Classes ================================= --> <!-- ............................................................. ........... --> <xs:element name="TM_Primitive" type="gml:AbstractTimePrimitiveType" substitutionGroup="stXML:TM_Object"/> <!-- ............................................................. ........... --> <xs:complexType name="TM_Primitive_PropertyType"> <xs:sequence> <xs:element ref="gml:_TimePrimitive" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="scXML:ObjectReference"/> </xs:complexType> <!-- ============================================================= ============== --> <!-- ............................................................. ........... --> <xs:element name="TM_Object" type="gml:AbstractTimeObjectType"/> <!-- ............................................................. ........... --> <xs:complexType name="TM_Object_PropertyType"> <xs:sequence> <xs:element ref="gml:_TimeObject" minOccurs="0"/> </xs:sequence> <xs:attributeGroup ref="scXML:ObjectReference"/> </xs:complexType>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi John,
Can anyone point me to some documentation that explains what the "schema-full-checking" is? If not can someone explain to me, in simple terms, what it means? It seems to me that there are different levels of XML Schema validation but I'm not quite sure. If there are different validation levels what are the consequences of each level?
You can find more information following the link below [1], look for the [http://apache.org/xml/features/validation/schema-full-checking] feature. In simple words this means that the ambiguities [2] in schemas and derivations by restriction [3] will not be checked. [1] http://xml.apache.org/xerces2-j/features.html [2] http://www.w3.org/TR/xmlschema-1/#cos-nonambig [3] http://www.w3.org/TR/xmlschema-1/#cos-particle-restrict Best Regards, George ------------------------------------------------------------- George Cristian Bina mailto:george@oxygenxml.com <oXygen/> XML Editor - http://www.oxygenxml.com/
participants (2)
-
George Cristian Bina
-
John.Hockaday@ga.gov.au