[lxml-dev] validation with multiple XSD files

Arye aryeh at bigfoot.com
Mon Jul 7 19:56:57 CEST 2008


Hello.

Thanks for your attention.

What I was trying to do is load MANY XSD files with lxml. I understand now
that the proper way to do this is load just ONE file that includes the other
and let lxml go and load the required includes.
For this, this document had the piece of information that I was missing i.e.
the different options to manage multiple schema files:
http://www.xfront.com/ZeroOneOrManyNamespaces.html

Sorry about the confusion and thanks again for your help.

Sincerely,
Arye.

On Tue, Jun 24, 2008 at 6:36 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:

> Hi,
>
> Arye wrote:
> > 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):
> >
> > <?xml version="1.0"?>
> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > elementFormDefault="qualified">
> >     <xsd:include schemaLocation="base.xsd"/>
> >     <xsd:element name="Price">
> >        ...
> >        ... some types defined in "base.xsd" are used here
>
> I'm not sure what you are trying to do here. Including or importing XSD
> files
> should not be a problem at all, so maybe you could elaborate on the actual
> problem you are facing? Maybe with some example code that shows what you
> are
> doing?
>
> Stefan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080707/fff9967a/attachment-0001.htm 


More information about the lxml-dev mailing list