diff xml/en/docs/http/ngx_http_xslt_module.xml @ 463:dd9fec875834

Documented new directives: xslt_param and xslt_string_param.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 27 Mar 2012 16:34:53 +0000
parents e72701967099
children 694db9597ee0
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_xslt_module.xml
+++ b/xml/en/docs/http/ngx_http_xslt_module.xml
@@ -66,6 +66,58 @@ enough to only declare the required char
 </directive>
 
 
+<directive name="xslt_param">
+<syntax><value>parameter</value> <value>value</value></syntax>
+<default/>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.1.18</appeared-in>
+
+<para>
+Defines parameters for XSLT stylesheets.
+The <value>value</value> is treated as an XPath expression.
+The <value>value</value> can contain variables.
+To pass a string value to a stylesheet,
+the <link id="xslt_string_param"/> directive can be used.
+</para>
+
+<para>
+There could be several <literal>xslt_param</literal> directives.
+These directives are inherited from the previous level if and
+only if there are no
+<literal>xslt_param</literal> and <link id="xslt_string_param"/>
+directives defined on the current level.
+</para>
+
+</directive>
+
+
+<directive name="xslt_string_param">
+<syntax><value>parameter</value> <value>value</value></syntax>
+<default/>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.1.18</appeared-in>
+
+<para>
+Defines string parameters for XSLT stylesheets.
+XPath expressions in the <value>value</value> are not interpreted.
+The <value>value</value> can contain variables.
+</para>
+
+<para>
+There could be several <literal>xslt_string_param</literal> directives.
+These directives are inherited from the previous level if and
+only if there are no
+<link id="xslt_param"/> and <literal>xslt_string_param</literal>
+directives defined on the current level.
+</para>
+
+</directive>
+
+
 <directive name="xslt_stylesheet">
 <syntax>
     <value>stylesheet</value>