On May 21, 2005, at 12:49 PM, Martijn Faassen wrote:
Hi there,
I've enabled simple XInclude support. If you call the new .xinclude () method on a document, it will proceed with XInclude processing. If people are interested to test this, let me know how it works out.
No, no, noooooo! Err, yes! :^) I just wrote down this morning how I was going to rewrite my stuff to work around the missing XInclude support in a simpler fashion. Fortunately I hadn't implemented it yet. This is *perfect* timing, thanks a *bunch*! BTW, I had pretty good luck yesterday with XSLT parameters. I did both the string and XPath. About the only thing I can complain about is really petty and trivial: support for None. The basic pattern is this: let's say I might or might not pass in a parameter which I grab from in the process of doing something. Instead of: if viewarg: result = style.apply(doc, viewarg=viewarg) else: result = style.apply(doc) ...it would be nice to say: viewarg = None result = style.apply(doc, viewarg=viewarg) When you several things to pass in, the combinations of testing will get pretty crazy. I realize there might be some Pythonic way to do this that avoids the need of supporting None. In the course of doing this, I found (I think) that the error reported when something is wrong with your parameters is a bit misleading. IIRC, it was NameError: XSLTApply or something. --Paul