[lxml-dev] validation with multiple XSD files

Stefan Behnel stefan_ml at behnel.de
Tue Jun 24 18:36:29 CEST 2008


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



More information about the lxml-dev mailing list