[lxml-dev] XSD Validation: No matching global declaration.
John Lovell
jlovell at esd189.org
Thu Nov 8 18:29:16 CET 2007
>Hi,
>> I have a XML Schema that looks like this:
>>
>> <schema
>> xmlns="http://www.w3.org/2001/XMLSchema"
>> xmlns:sif="http://www.sifinfo.org/infrastructure/1.x"
>> targetNamespace="http://www.sifinfo.org/infrastructure/1.x">
>>
>> <import namespace="http://www.w3.org/XML/1998/namespace"
>> schemaLocation="http://www.w3.org/2001/xml.xsd"/>
>>
>> ...
>>
>> <element name="Authentication">
>> <complexType>
>> ...
>>
>> </schema>
>>
>> I am trying to validate this data:
>>
>> <?xml version="1.0"?>
>> <Authentication xmlns:ns3="http://www.w3.org/2001/XMLSchema"
>> ns3:RefId="27D1CAEA85C2BAA647A01B551D21E1EB"
>> ns3:SifRefId="211242238C60A55E25B2B86BB337C244"
>> ns3:SifRefIdType="EmployeePersonal">
>Shouldn't <Authentication/> be from the namespace
"http://www.sifinfo.org/infrastructure/1.x"
>in the instance document?
You are probably right (see my last post). However, I have been unable
to figure out how to do that. I just received the O'Reilly XML Schema
book so that should change. Although, if you would like to clue me in,
that would be great.
>How do other instance documents that validate fine differ?
Drastically, one is the very simple PO example while the schema I'm
working with is about a half a megabyte.
John W. Lovell
Web Applications Engineer
Northwest Educational Service District
1601 R Avenue
Anacortes, WA 98221
www.esd189.org
Together We Can ...
More information about the lxml-dev
mailing list