Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_xslt_module.xml @ 576:cac22cc79afd
Documented the "etag" directive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 10 Jul 2012 11:44:07 +0000 |
parents | 624ac281c628 |
children | be54c443235a |
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 |
564
624ac281c628
Separate links to libxml2 and libxslt.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
22 <link url="http://xmlsoft.org">libxml2</link> and |
624ac281c628
Separate links to libxml2 and libxslt.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
23 <link url="http://xmlsoft.org/XSLT/">libxslt</link> libraries. |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 </note> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 </section> |
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 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 <section id="example" name="Example Configuration"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 xml_entities /site/dtd/entities.dtd; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 xslt_stylesheet /site/xslt/one.xslt param=value; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 xslt_stylesheet /site/xslt/two.xslt; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 } |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 </section> |
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 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 <section id="directives" name="Directives"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 <directive name="xml_entities"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 <syntax><value>path</value></syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 Specifies the DTD file that declares character entities. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 This file is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 <!ENTITY nbsp "&#xa0;"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 |
463
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
70 <directive name="xslt_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
71 <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
|
72 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
73 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
74 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
75 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
76 <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
|
77 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
78 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
79 Defines parameters for XSLT stylesheets. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
80 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
|
81 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
|
82 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
|
83 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
|
84 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
85 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
86 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
87 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
|
88 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
|
89 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
90 <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
|
91 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
|
92 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
93 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
94 </directive> |
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 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
97 <directive name="xslt_string_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
98 <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
|
99 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
100 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
101 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
102 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
103 <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
|
104 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
105 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
106 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
|
107 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
|
108 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
|
109 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
110 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
111 <para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
112 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
|
113 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
|
114 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
115 <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
|
116 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
|
117 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
118 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
119 </directive> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
120 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
121 |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 <directive name="xslt_stylesheet"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 <syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
124 <value>stylesheet</value> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 [<value>parameter</value>=<value>value</value> ...]</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 Defines the XSLT stylesheet and its optional parameters. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 A stylesheet is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 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
|
136 single line using the “<literal>:</literal>” delimiter. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 If a parameter includes the “<literal>:</literal>” character, |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 it should be escaped as “<literal>%3A</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 Also, <command>libxslt</command> requires to enclose parameters |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 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
|
141 for example: |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
142 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 param1='http%3A//www.example.com':param2=value2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 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
|
149 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
|
150 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
152 xslt_stylesheet /site/xslt/one.xslt |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
153 $arg_xslt_params |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 param1='$value1':param2=value2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
155 param3=value3; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 } |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
160 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
161 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
|
162 will be applied sequentially in the specified order. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
163 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
164 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
165 </directive> |
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 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
168 <directive name="xslt_types"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 <syntax><value>mime-type</value> ...</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 <default>text/xml</default> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
171 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 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
|
177 in addition to “<literal>text/xml</literal>”. |
546
694db9597ee0
Documented the special value "*" in various "*_type" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
463
diff
changeset
|
178 The special value “<literal>*</literal>” matches any MIME type (0.8.29). |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
179 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
|
180 is changes to “<literal>text/html</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
181 </para> |
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 </directive> |
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 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
186 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
187 </module> |