[oXygen-user] Some help please with interpreting error messages
George Cristian Bina
Tue Aug 17 10:48:44 CDT 2004
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/gmlBase.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:
<oXygen/> XML Editor - http://www.oxygenxml.com/
----- Original Message -----
From: <>
To: <>
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:]
> > Sent: Monday, 16 August 2004 6:01 PM
> > To: Hockaday John
> > Cc:
> > 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.
> >
> >
> > 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
> > >
> > >http://www.oxygenxml.com/mailman/listinfo/oxygen-user
> > >
> > >
> >
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list