9 May 18:38
Re: validation with multiple XSD files
From: John Lovell <jlovell <at> esd189.org>
Subject: Re: validation with multiple XSD files
Newsgroups: gmane.comp.python.lxml.devel
Date: 2008-05-09 16:38:08 GMT
Subject: Re: validation with multiple XSD files
Newsgroups: gmane.comp.python.lxml.devel
Date: 2008-05-09 16:38:08 GMT
Arye:
I had a similar problem and this is how I handled
it.
I didn't ask the group so others may have a better or
more full featured approach.
John W.
Lovell
Web Applications Engineer
Northwest Educational Service
District
1601 R Avenue
Anacortes, WA 98221
(360) 299-4086
Together We Can
...
From: lxml-dev-bounces <at> codespeak.net
[mailto:lxml-dev-bounces <at> codespeak.net] On Behalf Of Arye
Sent: Friday, May 09, 2008 9:26 AM
To: lxml-dev <at> codespeak.net
Subject: [lxml-dev] validation with multiple XSD files
Sent: Friday, May 09, 2008 9:26 AM
To: lxml-dev <at> codespeak.net
Subject: [lxml-dev] validation with multiple XSD files
Hello all,
I would like to so some schema validation and started with the instructions in :
http://codespeak.net/lxml/dev/validation.html#xmlschema
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):
<?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 am new to lxml so sorry in advance if the question does not make sense.
Regards,
Arye.
_______________________________________________ lxml-dev mailing list lxml-dev <at> codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
RSS Feed