[xml] document resolver (again)



So I'm tracking down this issue with document resolver where a python
docloader causes segfaults and a whole load of issues.

I've tracked the problem down to this:

when using a user supplied resolver to load a stylesheet that has 2
levels of import it fails.

I'm not sure why it fails... the resolver python function returns
ok. But it does fail.

Within the resolver function I'm using:

   parserContext.ctxtReadFile()

to read the files. The parserContext is the pctx object passed to the
resolver function in this signature:

   python_resolver(url, pctx, ctx, type)

Does anybody have a clue on how to get round this problem? It seems
like quite a big limitation.


I'm using libxml2 2.6.30 and libxslt  1.1.22

-- 
Nic Ferrier
http://www.woome.com - Enjoy the minute!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]