[georss] GML Help

Ron Lake rlake at galdosinc.com
Tue Oct 16 14:10:01 EDT 2007


Hi Chris:

You need to extend the complex type, not the element name.

R

-----Original Message-----
From: georss-bounces at lists.eogeo.org
[mailto:georss-bounces at lists.eogeo.org] On Behalf Of Chris Howell
Sent: October 16, 2007 11:05 AM
To: georss at lists.eogeo.org
Subject: [georss] GML Help

Hi Folks,

I know you've all been great answering my questions I am hoping that you

can help me out with this one. What I am attempting to do is to extend 
gml:Point type My XSD for my extension looks like this.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
elementFormDefault="qualified"
 >
<xsd:import namespace="http://www.opengis.net/gml" 
schemaLocation="base/gml.xsd"/>
    <xsd:complexType name="PYXISPoint">
        <xsd:complexContent>
            <xsd:extension base="gml:Point">
                <xsd:sequence>
                    <xsd:element name="Index" type="xsd:string"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:schema>

Yes I realize it's not in a proper namespace and should be, but this is 
just a prototype. The XML file I am trying to include it in looks 
something like this.

While I am trying to validate my XSD, I am getting an error that 
gml:Point must refer to an existing simple or complex type. Essentially 
I am figuring this is because it doesn't know what a gml:Point is. When 
I tried to do something like.
<xsd:include="base/gml.xsd">

I got an error reporting that I had name space conflicts, such that what

I was including had a namespace and what I was including it in. Did not.

Even if it did, I don't think it should be the GML namespace so there 
would be a conflict with the target namespaces not being the same.

<?xml version="1.0" encoding="UTF-8"?>
<gml:geometryMembers
 xmlns:gml="http://www.opengis.net/gml"
 xmlns:tdn="http://www.tdn.nl/tdn"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xsi:schemaLocation="http://www.opengis.net/gml base/gml.xsd"
  xsi:noNamespaceSchemaLocation="base/PyxisPoint.xsd"
   >

Basically I am looking for help suggestions from whoever is out there.

Cheers
Chris
_______________________________________________
georss mailing list
georss at lists.eogeo.org
http://lists.eogeo.org/mailman/listinfo/georss


More information about the georss mailing list