Mercurial > hg > nginx-site
changeset 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 | dc6b11a3ccdd |
children | f18026f5d10d |
files | xml/en/docs/http/ngx_http_xslt_module.xml xml/ru/docs/http/ngx_http_xslt_module.xml |
diffstat | 2 files changed, 102 insertions(+), 0 deletions(-) [+] |
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>
--- a/xml/ru/docs/http/ngx_http_xslt_module.xml +++ b/xml/ru/docs/http/ngx_http_xslt_module.xml @@ -66,6 +66,56 @@ location / { </directive> +<directive name="xslt_param"> +<syntax><value>параметр</value> <value>значение</value></syntax> +<default/> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.1.18</appeared-in> + +<para> +Задаёт параметры для XSLT-шаблонов. +Значение рассматривается как выражение XPath. +В значении можно использовать переменные. +Если нужно передать в шаблон строковое значение, +можно воспользоваться директивой <link id="xslt_string_param"/>. +</para> + +<para> +Директив <literal>xslt_param</literal> может быть несколько. +Директивы наследуются с предыдущего уровня при условии, что на данном +уровне не описаны свои директивы <literal>xslt_param</literal> и +<link id="xslt_string_param"/>. +</para> + +</directive> + + +<directive name="xslt_string_param"> +<syntax><value>параметр</value> <value>значение</value></syntax> +<default/> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>1.1.18</appeared-in> + +<para> +Задаёт строковые параметры для XSLT-шаблонов. +Выражения XPath в значении параметра не интерпретируются. +В значении можно использовать переменные. +</para> + +<para> +Директив <literal>xslt_string_param</literal> может быть несколько. +Директивы наследуются с предыдущего уровня при условии, что на данном +уровне не описаны свои директивы <link id="xslt_param"/> и +<literal>xslt_string_param</literal>. +</para> + +</directive> + + <directive name="xslt_stylesheet"> <syntax> <value>шаблон</value>