On 4 February 2012 16:47, SamB <ja.nginx@mailnull.com> wrote:
> Hello,
>
> I've modified my patch, according to comments in
> http://mailman.nginx.org/pipermail/nginx-devel/2012-January/001751.html.
>
> Directive has been renamed to xslt_param, taking 2 parameters - name and
> value separated (similarly to set directive),
> therefore it's now also possible to pass ':' character as it had been
> requested before.
> I think it's better and easier to have it this way + there is no need to
> do that ugly parsing in runtime ;)
Great! Thanks for working on this. One other thing that occurs to me,
it would be useful to be able to pass arbitrary string paramaters.
Perhaps an xslt_string_param directive could also be added?
XPath quoting gets complicated when a string contains both single and
double quotes (see
http://stackoverflow.com/questions/642125/encoding-xpath-expressions-with-both-single-and-double-quotes),
so you should use
http://xmlsoft.org/XSLT/html/libxslt-variables.html#xsltQuoteOneUserParam
on those values.
Laurence
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel