I am compiling an XSD schema to describe an existing GeoRSS feed, but I am trying to use external georss.xsd to check for an element of type georss:point . I reduced the problem to the smallest components:
XML:
<?xml version="1.0" encoding="utf-8"?> <this> <apoint>45.256 -71.92</apoint> </this>
XSD:
<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>
If I make an apoint of type "xs: string" instead of "georss: point", XML successfully settles against XSD, but as soon as I refer to the imported type (georss: point), my XML validator (Notepad ++ | XML Tools) " impossible to parse the circuit. " What am I doing wrong?
source share