How do I correctly reference georss: point in my xsd?

cF.hyp3R

New Member
I am putting together an XSD schema to describe an existing GeoRSS feed, but I am stumbling trying to use the external georss.xsd to validate an element of type \[code\]georss:point\[/code\]. I've reduced the problem to the smallest components thusly:XML:\[code\]<?xml version="1.0" encoding="utf-8"?><this> <apoint>45.256 -71.92</apoint></this>\[/code\]XSD:\[code\]<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:georss="http://www.georss.org/georss"><xs:import namespace="http://www.georss.org/georss" schemaLocation="http://georss.org/xml/1.1/georss.xsd"/> <xs:element name="this"> <xs:complexType> <xs:sequence> <xs:element name="apoint" type="georss:point"/> </xs:sequence> </xs:complexType> </xs:element></xs:schema> \[/code\]If I make apoint type "xs: string" instead of "georss: point", the XML validates happily against the XSD, but as soon as I reference an imported type (georss: point), my XML validator (Notepad++ | XML Tools) "cannot parse the schema". What am I doing wrong?
 
Back
Top