Module ngx_http_xslt_module | english русский 简体中文 עברית 日本語 türkçe news about download security advisories documentation pgp keys faq links books support donation trac wiki nginx.com | ||||||||||||||||||||||||||||||
The
This module is not built by default, it should be enabled with the
This module requires the libxml2 and libxslt libraries.
Example Configuration
location / { xml_entities /site/dtd/entities.dtd; xslt_stylesheet /site/xslt/one.xslt param=value; xslt_stylesheet /site/xslt/two.xslt; }
Directives
Specifies the DTD file that declares character entities. This file is compiled during the configuration stage. For technical reasons the module is unable to use the external subset declared in the processed XML, so it is ignored and instead a specially defined file is used. This file should not describe the XML structure, it is enough to only declare the required character entities, for example: <!ENTITY nbsp " ">
This directive appeared in version 1.1.18.
Defines parameters for XSLT stylesheets.
The
There could be several
This directive appeared in version 1.1.18.
Defines string parameters for XSLT stylesheets.
XPath expressions in the
There could be several
Defines the XSLT stylesheet and its optional parameters. A stylesheet is compiled during the configuration stage.
Parameters can either be specified separately, or grouped in a
single line using the “ param1='http%3A//www.example.com':param2=value2
The description of parameters can contain variables, for example, the whole line of parameters can be taken from a single variable: location / { xslt_stylesheet /site/xslt/one.xslt $arg_xslt_params param1='$value1':param2=value2 param3=value3; }
It is possible to specify several stylesheets; in this case they will be applied sequentially in the specified order.
Enables transformations in responses with the specified MIME types
in addition to “ |