<!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.16608" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008>Arye:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008>I had a similar problem and this is how I handled 
it.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008><A 
href="http://messagesleuth.svn.sourceforge.net/viewvc/messagesleuth/trunk/xsd/xsd2one.py?view=markup">http://messagesleuth.svn.sourceforge.net/viewvc/messagesleuth/trunk/xsd/xsd2one.py?view=markup</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008>I didn't ask the group so others may have a better or 
more full featured approach.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=614093616-09052008>
<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><FONT face=Arial size=2>(360) 299-4086</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><A 
href="mailto:jlovell@nwesd.org">jlovell@nwesd.org</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</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></SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> lxml-dev-bounces@codespeak.net 
[mailto:lxml-dev-bounces@codespeak.net] <B>On Behalf Of </B>Arye<BR><B>Sent:</B> 
Friday, May 09, 2008 9:26 AM<BR><B>To:</B> 
lxml-dev@codespeak.net<BR><B>Subject:</B> [lxml-dev] validation with multiple 
XSD files<BR></FONT><BR></DIV>
<DIV></DIV><BR>Hello all,<BR>I would like to so some schema validation and 
started with the instructions in :<BR><A 
href="http://codespeak.net/lxml/dev/validation.html#xmlschema">http://codespeak.net/lxml/dev/validation.html#xmlschema</A><BR><BR><BR>This 
all works great. Now I would like to extend this to a XSD file that includes 
many other files. In other words I have a directory of XSD files that I would 
like to use. The include statement look like this (the included file is 
referenced by its name):<BR><BR>&lt;?xml version="1.0"?&gt;<BR>&lt;xsd:schema 
xmlns:xsd="<A 
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>" 
elementFormDefault="qualified"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;xsd:include 
schemaLocation="base.xsd"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;xsd:element 
name="Price"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... some types defined in "base.xsd" 
are used here<BR><BR><BR><BR>I am new to lxml so sorry in advance if the 
question does not make 
sense.<BR><BR>Regards,<BR>Arye.<BR><BR><BR><BR></BODY></HTML>