Hi,<br><br>   I've added xslt_string_param and slightly changed parameter passing and transformation<br>   to make it work as expected.<br>   As a side effect of this change, might be usage of xslt_param/xslt_string_param faster,<br>

   because params are directly inserted to transformation context and do not need to be<br>   copied to name/value parameter array that is passed to xsltApplyStylesheet() as it's now<br>   by parameters passed via xslt_stylesheet directive.<br>

<br>   Old parameter passing using xslt_stylesheet has not been changed to prevent unexpected behavior,<br>   maybe this can be modified later if this patch will prove to be stable...<br>   <br>Sam   <br><br><div class="gmail_quote">

On Wed, Feb 8, 2012 at 2:03 AM, Laurence Rowe <span dir="ltr"><<a href="mailto:l@lrowe.co.uk">l@lrowe.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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


so you should use<br>
<a href="http://xmlsoft.org/XSLT/html/libxslt-variables.html#xsltQuoteOneUserParam" target="_blank">http://xmlsoft.org/XSLT/html/libxslt-variables.html#xsltQuoteOneUserParam</a><br>
on those values.<br>
<font color="#888888"><br>
Laurence<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</div></div></blockquote></div><br>