[lxml-dev] questions about lxml xsd:include and xsd:import behavior
Santoro, Peter
Peter.Santoro at po.state.ct.us
Thu Aug 28 14:00:55 CEST 2008
After reading
http://kontrawize.blogs.com/kontrawize/2007/10/the-trouble-wit.html, I
have a couple of questions about how lxml and libxml2 handle imports and
includes. I can always run some tests to figure this out for myself,
but it would be nice if someone who already knows the official/correct
answers could share them.
1) The XML Schema standard appears to leave it up to the parser to
determine how to resolve importing multiple schemas from the same
namespace. Apparently, some parsers only import the first schema from a
given namespace, which could lead to missing definition errors. What is
the behavior of lxml/libxml2 here?
2) It appears that some xml parsers incorrectly treat multiple relative
includes of the same file as being different. This behavior would cause
the same file to be included more than once, causing redefinition
errors. What is the behavior of lxml/libxml2 here?
Thank you,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080828/db2380d5/attachment.htm
More information about the lxml-dev
mailing list