<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi All:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I don't know if my schema is invalid or if this
represents a bug in lxml or libxml2.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Here is the situation...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have a XML Schema that looks like
this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><schema <BR>xmlns="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"<BR>xmlns:sif="<A
href="http://www.sifinfo.org/infrastructure/1.x">http://www.sifinfo.org/infrastructure/1.x</A>"<BR>targetNamespace="<A
href="http://www.sifinfo.org/infrastructure/1.x">http://www.sifinfo.org/infrastructure/1.x</A>"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <import namespace="<A
href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</A>"
schemaLocation="<A
href='http://www.w3.org/2001/xml.xsd"/'>http://www.w3.org/2001/xml.xsd"/</A>>
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <element
name="Authentication"><BR> <complexType><BR> <sequence><BR> <element
ref="sif:AuthenticationInfo" minOccurs="0"
maxOccurs="unbounded"/><BR> <element
ref="sif:SIF_ExtendedElements" minOccurs="0"
maxOccurs="1"/><BR> </sequence><BR> <attribute
name="RefId" type="sif:RefIdType"
use="required"/><BR> <attribute name="SifRefId"
type="sif:RefIdType" use="required"/><BR> <attribute
name="SifRefIdType"
use="required"><BR> <simpleType><BR> <restriction
base="string"><BR> <enumeration
value="StudentPersonal"/><BR> <enumeration
value="StaffPersonal"/><BR> <enumeration
value="StudentContact"/><BR> <enumeration
value="EmployeePersonal"/><BR> </restriction><BR> </simpleType><BR> </attribute><BR> </complexType><BR> </element></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></schema></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am trying to validate this data:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0"?><BR><Authentication
xmlns:ns3="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
ns3:RefId="27D1CAEA85C2BAA647A01B551D21E1EB"
ns3:SifRefId="211242238C60A55E25B2B86BB337C244"
ns3:SifRefIdType="EmployeePersonal"><BR>
<AuthenticationInfo><BR> <System xmlns:ns0="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
ns0:Type="Application">&amp;amp;1&amp;lt;tNk44}F2</System><BR>
<Username>;pl}ee&amp;apos;-</Username><BR>
<DistinguishedName>mlZm@JD</DistinguishedName><BR>
<Password xmlns:ns1="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
ns1:Algorithm="MD5" ns1:KeyName="(v4kSY.">l1uqg!</Password><BR>
</AuthenticationInfo><BR>
<SIF_ExtendedElements><BR> <SIF_ExtendedElement
xmlns:ns2="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
ns2:Name="%~T=">ZE72n/l</SIF_ExtendedElement><BR>
</SIF_ExtendedElements><BR></Authentication></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The error log shows the following
error:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>../1.5r1/XSD/Infrastructure/Authentication__Authentication.xml:2:ERROR:SCHEMASV:SCHEMAV_CVC_ELT_1:
Element 'Authentication': No matching global declaration available for the
validation root.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The same code given diffrent files works
fine. Does anyone have any ideas why I am getting this
message?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Required version information:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>lxml.etree: (1, 3, 4,
0)<BR>libxml used: (2, 6, 30)<BR>libxml
compiled: (2, 6, 30)<BR>libxslt used:
(1, 1, 21)<BR>libxslt compiled: (1, 1, 22)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><STRONG><FONT face=Arial size=2>John W.
Lovell</FONT></STRONG></DIV>
<DIV align=left><FONT face=Arial size=2>Web Applications Engineer</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Northwest Educational Service
District</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>1601 R Avenue</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Anacortes, WA 98221</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2><A
href="mailto:jlovell@esd189.org"></A></FONT></DIV><FONT face=Arial
size=2></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><A
href="http://www.esd189.org/">www.esd189.org</A></FONT></DIV>
<DIV align=left><EM><FONT face=Arial size=2>Together We Can
...</FONT></EM></DIV>
<DIV> </DIV></BODY></HTML>