
April 23, 2006
2:19 p.m.
Hi, one more comment on this:
Alternatively, we could serialize the XSL to a string before compiling it and parse it on request. Daniel suggested that this might even be faster than deep-copying.
I did a couple of tests and found that this is much slower for small stylesheets. It may also carry the additional risk of requiring special parser options that may not be known to XSLT. I now simplified the code somewhat and special cased only the current stylesheet itself. The rest is handed to the Python loaders and subsequently to the default loader. If there are no substantial counter-arguments to this behaviour, I'll just wait for a few bug reports and otherwise merge it next week. Stefan