
Hi, Marat Dakota, 29.12.2009 18:13:
After some time of figuring out and reading libxslt code (the only way to understand what's really happening, because libxslt's documentation is ugly) I've ended up with solution.
The patch is placed below and it's rather simple. I'm almost sure that it needs a few of your fixes just because you know much-much better how to manage elements, memory and so on. But it does things I really needed. [...] I think it's great feature. Is there any chance this thing will be included in nearest release?
Thanks a lot, it's looks reasonable at first glance and I'll take a closer look as soon as I get to it. If it works well, it should make it into 2.3. Could you add a couple of tests to src/lxml/tests/test_xslt.py? That would help in making sure that it keeps working as expected even if I find that I need to rework the patch. Also, it's best to send patches as a readable attachment rather than inline. Mail programs tend to reformat text and it's easy to loose empty trailing lines etc. Thanks for pulling this out! Stefan