[lxml-dev] String parameters to xslt transformation
Alexander Shigin
shigin at rambler-co.ru
Fri Feb 6 17:34:35 CET 2009
В Птн, 06/02/2009 в 17:14 +0100, Stefan Behnel пишет:
> Thanks! That looks much better. I'll fix up a couple of things and check
> if I can't get Cython to support classmethods for this purpose. If all
> works out, I'll add it for 2.2.
Oh, I totally forgot, but I think that ```XSLT.strparam``` is a bit
strange for escaping method to be placed. It's only my point of view,
but I prefer
transform = etree.XSLT(...)
result = transform(doc, string_var=etree.strparam("hi"))
instead of
result = transform(doc, string_var=transform.strparam("hi"))
More information about the lxml-dev
mailing list