<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is the situation...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a XML Schema that looks like 
this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;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>"&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;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>&gt; 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;element 
name="Authentication"&gt;<BR>&nbsp;&nbsp;&lt;complexType&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;element 
ref="sif:AuthenticationInfo" minOccurs="0" 
maxOccurs="unbounded"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;element 
ref="sif:SIF_ExtendedElements" minOccurs="0" 
maxOccurs="1"/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;attribute 
name="RefId" type="sif:RefIdType" 
use="required"/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;attribute name="SifRefId" 
type="sif:RefIdType" use="required"/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;attribute 
name="SifRefIdType" 
use="required"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;simpleType&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;restriction 
base="string"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;enumeration 
value="StudentPersonal"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;enumeration 
value="StaffPersonal"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;enumeration 
value="StudentContact"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;enumeration 
value="EmployeePersonal"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/restriction&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/simpleType&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/attribute&gt;<BR>&nbsp;&nbsp;&lt;/complexType&gt;<BR>&nbsp;&lt;/element&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;/schema&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am trying to validate this data:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;?xml version="1.0"?&gt;<BR>&lt;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"&gt;<BR>&nbsp; 
&lt;AuthenticationInfo&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;System xmlns:ns0="<A 
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" 
ns0:Type="Application"&gt;&amp;amp;amp;1&amp;amp;lt;tNk44}F2&lt;/System&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;Username&gt;;pl}ee&amp;amp;apos;-&lt;/Username&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;DistinguishedName&gt;mlZm@JD&lt;/DistinguishedName&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;Password xmlns:ns1="<A 
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" 
ns1:Algorithm="MD5" ns1:KeyName="(v4kSY."&gt;l1uqg!&lt;/Password&gt;<BR>&nbsp; 
&lt;/AuthenticationInfo&gt;<BR>&nbsp; 
&lt;SIF_ExtendedElements&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;SIF_ExtendedElement 
xmlns:ns2="<A 
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" 
ns2:Name="%~T="&gt;ZE72n/l&lt;/SIF_ExtendedElement&gt;<BR>&nbsp; 
&lt;/SIF_ExtendedElements&gt;<BR>&lt;/Authentication&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The error log shows the following 
error:</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The same code given diffrent files works 
fine.&nbsp; Does anyone have any ideas why I am getting this 
message?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Required version information:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>lxml.etree:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (1, 3, 4, 
0)<BR>libxml used:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (2, 6, 30)<BR>libxml 
compiled:&nbsp;&nbsp; (2, 6, 30)<BR>libxslt used:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(1, 1, 21)<BR>libxslt compiled:&nbsp; (1, 1, 22)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV></BODY></HTML>