[lxml-dev] String parameters to xslt transformation
Alexander Shigin
shigin at rambler-co.ru
Mon Feb 2 16:26:47 CET 2009
lxml lacks ways to apply an external parameter containing both single
and double quotes.
The patch adds `transform` method to XSLT object with `params` and
`strparams` argument. `params` works like `**kw` of `__call__` method
(i.e. you still need to surround string literals with quotes).
`strparams` are treated literally, so you do not need to use any
escaping or quotes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslt-params.diff
Type: text/x-patch
Size: 6282 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20090202/ad3a8772/attachment.bin
More information about the lxml-dev
mailing list