[lxml-dev] XInclude does not support Resolvers?

Luke Tucker ltucker at openplans.org
Tue Nov 28 16:45:26 CET 2006


On Tue, 2006-11-28 at 12:36 -0200, Sidnei da Silva wrote:
> Hi there,
> 
> I was looking at the XInclude functionality and noticed that it does
> use the 'resolvers'. Is that a missing feature or it just can't be
> done at all?
> 

It wouldn't be on the C side, but I think lxml might stick 
close enough to the ElementTree api to use their python xinclude 
implementation (ElementInclude.py) which does support the 
specification of a resolver if you need it. If you 
don't want to use that directly, it's probably a decent
example. There is also a modified version of it that we use 
with lxml in Deliverance, but it's recursive I believe. 
(http://codespeak.net/svn/z3/deliverance/trunk/deliverance/xinclude.py) 

- Luke 



More information about the lxml-dev mailing list