[lxml-dev] XSD Validation: No matching global declaration.
jholg at gmx.de
jholg at gmx.de
Thu Nov 8 09:19:39 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?
How do other instance documents that validate fine differ?
Holger
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the lxml-dev
mailing list