| Syntax: | xslt_stylesheet stylesheet [ parameter = value ...] |
| Default: | |
| Context: | location |
| Reference: | xslt_stylesheet |
Specifies the XSLT template with its parameters. Template is compiled at the stage of configuration. The parameters are assigned as shown:
param=value
You can specify parameters either one per line, or separate multiple parameters with colon (“: ”) If the parameter itself contains the character “:”, escape it as “%3A”. Furthermore, libxslt requires that string parameters should be quoted by the single or dual quotation marks if they contain non-alphanumeric characters, for example:
param1='http%3A//www.example.com': param2=value2
It's possible to use variables as parameters, for example, the entire line of the parameters can be substituted with one variable:
location / { xslt_stylesheet /site/xslt/one.xslt $arg_xslt_params param1='$value1': param2=value2 param3=value3; }
It is possible to specify several templates, in which case they would be chained together in the order of their declaration.