[lxml-dev] Transform parameter variables

Niels Bjerre nb at xcompetence.dk
Mon Jul 28 01:20:10 CEST 2008


I can get transform to accept literal parameter. eg.
>>> transform = etree.XSLT(xsl_tree)
>>> result = transform(xml_tree, area="'xxx'")


*But I can't get transform to accept variables!!?*

I have tried:

   - param = "area=\"\'xxx\'\""
   - result = transform(xml_tree, param)
   - result = apply(transform(xml_tree,param))

I have altso tried to send parameter as dictionary (as I want to send more
parameters than one).


What am I doing wrong?


-- 
Regards.

Niels Bjerre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080728/9433a3b2/attachment.htm 


More information about the lxml-dev mailing list