Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_xslt_module.xml @ 580:be54c443235a
Added copyright markers to documentation sources.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 10 Jul 2012 12:59:42 +0000 |
parents | 624ac281c628 |
children | 764fbac1b8b4 |
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 |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
564
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
564
diff
changeset
|
4 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
564
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
564
diff
changeset
|
6 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
564
diff
changeset
|
7 |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 <module name="Module ngx_http_xslt_module" |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 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
|
12 lang="en"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 <section id="summary"> |
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 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
|
18 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
|
19 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 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
|
23 <literal>--with-http_xslt_module</literal> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 configuration parameter. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 <note> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 This module requires the |
564
624ac281c628
Separate links to libxml2 and libxslt.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
27 <link url="http://xmlsoft.org">libxml2</link> and |
624ac281c628
Separate links to libxml2 and libxslt.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
28 <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
|
29 </note> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 </para> |
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 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 <section id="example" name="Example Configuration"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 <para> |
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 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 xml_entities /site/dtd/entities.dtd; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 xslt_stylesheet /site/xslt/one.xslt param=value; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 xslt_stylesheet /site/xslt/two.xslt; |
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 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 </para> |
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 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 <section id="directives" name="Directives"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 <directive name="xml_entities"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 <syntax><value>path</value></syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 Specifies the DTD file that declares character entities. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 This file is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 <!ENTITY nbsp "&#xa0;"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 </example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 |
463
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
75 <directive name="xslt_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
76 <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
|
77 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
78 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
79 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
80 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
81 <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
|
82 |
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 Defines parameters for XSLT stylesheets. |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
85 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
|
86 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
|
87 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
|
88 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
|
89 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
90 |
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 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
|
93 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
|
94 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
95 <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
|
96 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
|
97 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
98 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
99 </directive> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
100 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
101 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
102 <directive name="xslt_string_param"> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
103 <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
|
104 <default/> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
105 <context>http</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
106 <context>server</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
107 <context>location</context> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
108 <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
|
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 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
|
112 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
|
113 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
|
114 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
115 |
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 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
|
118 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
|
119 only if there are no |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
120 <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
|
121 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
|
122 </para> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
123 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
124 </directive> |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
125 |
dd9fec875834
Documented new directives: xslt_param and xslt_string_param.
Ruslan Ermilov <ru@nginx.com>
parents:
377
diff
changeset
|
126 |
377
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 <directive name="xslt_stylesheet"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 <syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 <value>stylesheet</value> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 [<value>parameter</value>=<value>value</value> ...]</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 <default/> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 <context>location</context> |
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 Defines the XSLT stylesheet and its optional parameters. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
136 A stylesheet is compiled during the configuration stage. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 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
|
141 single line using the “<literal>:</literal>” delimiter. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
142 If a parameter includes the “<literal>:</literal>” character, |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 it should be escaped as “<literal>%3A</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 Also, <command>libxslt</command> requires to enclose parameters |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 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
|
146 for example: |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 param1='http%3A//www.example.com':param2=value2 |
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 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
152 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
153 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
|
154 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
|
155 <example> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 location / { |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 xslt_stylesheet /site/xslt/one.xslt |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 $arg_xslt_params |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
159 param1='$value1':param2=value2 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
160 param3=value3; |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
161 } |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
162 </example> |
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 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
166 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
|
167 will be applied sequentially in the specified order. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
168 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
169 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
170 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
171 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 <directive name="xslt_types"> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
174 <syntax><value>mime-type</value> ...</syntax> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 <default>text/xml</default> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 <context>http</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
177 <context>server</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
178 <context>location</context> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
179 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
180 <para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
181 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
|
182 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
|
183 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
|
184 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
|
185 is changes to “<literal>text/html</literal>”. |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
186 </para> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
187 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
188 </directive> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
189 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
190 </section> |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
191 |
e72701967099
English translation of ngx_http_xslt_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
192 </module> |