Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_xslt_module.xml @ 498:65843513cff5
Documented that "fastcgi_keep_conn" appeared in 1.1.4.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 23 Apr 2012 08:01:25 +0000 |
parents | dd9fec875834 |
children | 694db9597ee0 |
rev | line source |
---|---|
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 <module name="Module ngx_http_xslt_module" |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 link="/en/docs/http/ngx_http_xslt_module.html" |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 lang="en"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 <section id="summary"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 The <literal>ngx_http_xslt_module</literal> (0.7.8+) is a filter |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 that transforms XML responses using one or more XSLT stylesheets. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 This module is not built by default, it should be enabled with the |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 <literal>--with-http_xslt_module</literal> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 configuration parameter. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 <note> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 This module requires the |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 <link url="http://www.xmlsoft.org">libxml2 and libxslt</link> libraries. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 </note> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 <section id="example" name="Example Configuration"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 xml_entities /site/dtd/entities.dtd; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 xslt_stylesheet /site/xslt/one.xslt param=value; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 xslt_stylesheet /site/xslt/two.xslt; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 } |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 <section id="directives" name="Directives"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 <directive name="xml_entities"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 <syntax><value>path</value></syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 Specifies the DTD file that declares character entities. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 This file is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 For technical reasons the module is unable to use the |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 external subset declared in the processed XML, so it is |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 ignored and instead a specially defined file is used. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 This file should not describe the XML structure, it is |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 enough to only declare the required character entities, for example: |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 <!ENTITY nbsp "&#xa0;"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 |
463
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
69 <directive name="xslt_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
70 <syntax><value>parameter</value> <value>value</value></syntax> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
71 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
72 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
73 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
74 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
75 <appeared-in>1.1.18</appeared-in> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
76 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
77 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
78 Defines parameters for XSLT stylesheets. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
79 The <value>value</value> is treated as an XPath expression. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
80 The <value>value</value> can contain variables. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
81 To pass a string value to a stylesheet, |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
82 the <link id="xslt_string_param"/> directive can be used. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
83 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
84 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
85 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
86 There could be several <literal>xslt_param</literal> directives. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
87 These directives are inherited from the previous level if and |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
88 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
89 <literal>xslt_param</literal> and <link id="xslt_string_param"/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
90 directives defined on the current level. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
91 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
92 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
93 </directive> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
94 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
95 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
96 <directive name="xslt_string_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
97 <syntax><value>parameter</value> <value>value</value></syntax> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
98 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
99 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
100 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
101 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
102 <appeared-in>1.1.18</appeared-in> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
103 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
104 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
105 Defines string parameters for XSLT stylesheets. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
106 XPath expressions in the <value>value</value> are not interpreted. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
107 The <value>value</value> can contain variables. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
108 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
109 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
110 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
111 There could be several <literal>xslt_string_param</literal> directives. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
112 These directives are inherited from the previous level if and |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
113 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
114 <link id="xslt_param"/> and <literal>xslt_string_param</literal> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
115 directives defined on the current level. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
116 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
117 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
118 </directive> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
119 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
120 |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 <directive name="xslt_stylesheet"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 <syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 <value>stylesheet</value> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
124 [<value>parameter</value>=<value>value</value> ...]</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 Defines the XSLT stylesheet and its optional parameters. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 A stylesheet is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 Parameters can either be specified separately, or grouped in a |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 single line using the “<literal>:</literal>” delimiter. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
136 If a parameter includes the “<literal>:</literal>” character, |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 it should be escaped as “<literal>%3A</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 Also, <command>libxslt</command> requires to enclose parameters |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 that contain non-alphanumeric characters into single or double quotes, |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 for example: |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
142 param1='http%3A//www.example.com':param2=value2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 The description of parameters can contain variables, for example, |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 the whole line of parameters can be taken from a single variable: |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
149 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
150 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 xslt_stylesheet /site/xslt/one.xslt |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
152 $arg_xslt_params |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
153 param1='$value1':param2=value2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 param3=value3; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
155 } |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
160 It is possible to specify several stylesheets; in this case they |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
161 will be applied sequentially in the specified order. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
162 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
163 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
164 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
165 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
166 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
167 <directive name="xslt_types"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
168 <syntax><value>mime-type</value> ...</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 <default>text/xml</default> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
171 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 Enables transformations in responses with the specified MIME types |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 in addition to “<literal>text/xml</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
177 If the result of transformation is an HTML response, its MIME type |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
178 is changes to “<literal>text/html</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
179 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
180 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
181 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
182 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
183 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
184 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
185 </module> |