nginx-0.7.8
Igor Sysoev
is at rambler-co.ru
Mon Aug 4 20:16:25 MSD 2008
On Mon, Aug 04, 2008 at 05:01:24PM +0100, Phillip B Oldham wrote:
> Igor Sysoev wrote:
> >Changes with nginx 0.7.8 04 Aug
> >2008
> >
> > *) Feature: the ngx_http_xslt_module.
> >
> Sweet! When will the documentation be available?
The module is filter that transforms XML using one or more XSLTs.
The module requires libxml2/libxslt libraries.
There are 3 directives (all are available on http/server/location levels):
------------
xml_entities /path/to/entities.dtd;
The modules ignores external subset in XML, therefore it needs some DTD
to resolve symbol entities.
------------
xslt_stylesheet /path/to/some.xslt param1=value1 param2=value2;
Stylesheet and parameters. There can be several stylesheets, running
in order description:
xslt_stylesheet /path/to/some1.xslt param1=value1 param2=value2;
xslt_stylesheet /path/to/some2.xslt param1=value1;
The parameters can be one string, separated by ":":
param1=value1:param2=value2;
The variables can be use in paramters:
param1=$value1:param2=value2;
or even
xslt_stylesheet /path/to/some1.xslt $arg_xslt_params;
The ":" in parameter value must be escaped as %3A.
------------
xslt_types text/xml;
MIME-types to processes.
> > *) Feature: the "$arg_..." variables.
> >
> Also ^
This is values from query string, e.g:
/uri??one=1&two=2
appropriately $arg_one is "1" and $arg_two is "2".
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list