[lxml-dev] Transform parameter variables
Niels Bjerre
niels at bjerre.net
Wed Aug 6 08:46:18 CEST 2008
<jholg <at> gmx.de> writes:
>
>
>
> > Note the two stars before "the_dict". This is standard Python syntax for>
expanding a mapping into keyword arguments.> > Stefan> I'm Sorry - still no luck
passing a dictionary as extentions parameterThe stylesheet has a parameter:
<xsl:param name="area" select="'ost'"/>The parameter is picked up in the
transformation if I use:transform(doc, area="'3751'")but not when I use the_dict
transform(doc, {'area':'\"\'3751\'\"'}) or any other variant of a dictionary ora
dict_variable I can think of!
>
>
>
>
> Try
>
> transform(doc, **{'area':"3751"})
>
> Note the two stars, read up on python syntax on function calling and
> keyword parameters.
>
> -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal
für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
>
> _______________________________________________
> lxml-dev mailing list
> lxml-dev <at> codespeak.net
> http://codespeak.net/mailman/listinfo/lxml-dev
>
Resolved!
Thank You
More information about the lxml-dev
mailing list