| Syntax: | xslt_stylesheet
|
|---|---|
| Default: | — |
| Context: | location |
Defines the XSLT stylesheet and its optional parameters. A stylesheet is compiled at the configuration stage.
Parameters can either be specified separately, or grouped in a single line using the “:” delimiter. If a parameter includes the “:” character, it should be escaped as “%3A”. Also, libxslt requires to enclose parameters that contain non-alphanumeric characters into single or double quotes, for example:
param1='http%3A//www.example.com':param2=value2
The parameters description 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. They will be applied sequentially in the specified order.
Please login to continue.