Nginx-0.7.8

Changes with nginx 0.7.8 04 Aug
2008

*) Feature: the ngx_http_xslt_module.

*) Feature: the "$arg_..." variables.

*) Feature: Solaris directio support.
   Thanks to Ivan Debnar.

*) Bugfix: now if FastCGI server sends a "Location" header line 

without
status line, then nginx uses 302 status code.
Thanks to Maxim D…

Igor S. wrote:

Changes with nginx 0.7.8 04 Aug 2008

*) Feature: the ngx_http_xslt_module.

Sweet! When will the documentation be available?

*) Feature: the "$arg_..." variables.

Also ^

Phillip B Oldham
The Activity People
[email protected] mailto:[email protected]


Policies

This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to you in
error, please reply to this e-mail and highlight the error. No action
should be taken regarding content, nor must you copy or show them to
anyone.

This e-mail has been created in the knowledge that Internet e-mail is
not a 100% secure communications medium, and we have taken steps to
ensure that this e-mail and attachments are free from any virus. We must
advise that in keeping with good computing practice the recipient should
ensure they are completely virus free, and that you understand and
observe the lack of security when e-mailing us.

On Mon, Aug 04, 2008 at 05:01:24PM +0100, Phillip B Oldham wrote:

Igor S. 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”.

On 8/4/08, Igor S. [email protected] wrote:

This is values from query string, e.g:

/uri??one=1&two=2

appropriately $arg_one is “1” and $arg_two is “2”.

I assume that was put in to help with the XSLT processing?

Igor S. wrote:

Changes with nginx 0.7.8 04 Aug 2008

*) Feature: the ngx_http_xslt_module.

Would it be possible to set a response header from some script (like
PHP), to trigger an XSL translation on a response? For instance:

X-XSLTranslate: /path/to/file.xsl
X-XSLParam: name1 value1
X-XSLParam: name2 value2
X-XSLParam: name3 value3

I feel this would be a useful extension to this module.

Phillip B Oldham
The Activity People
[email protected] mailto:[email protected]


Policies

This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to you in
error, please reply to this e-mail and highlight the error. No action
should be taken regarding content, nor must you copy or show them to
anyone.

This e-mail has been created in the knowledge that Internet e-mail is
not a 100% secure communications medium, and we have taken steps to
ensure that this e-mail and attachments are free from any virus. We must
advise that in keeping with good computing practice the recipient should
ensure they are completely virus free, and that you understand and
observe the lack of security when e-mailing us.

On Wed, Sep 17, 2008 at 02:14:42PM +0100, Phillip B Oldham wrote:

X-XSLParam: name1 value1
X-XSLParam: name2 value2
X-XSLParam: name3 value3

I feel this would be a useful extension to this module.

You may set parameters, but not XSL:

xslt_stylesheet    /site/xslt/one.xslt
                   $upstream_http_x_xslt_params;

X-XSLT-Params: name1=value1:name2=value2:name3=value3

Igor S. wrote:

You may set parameters, but not XSL:

xslt_stylesheet    /site/xslt/one.xslt
                   $upstream_http_x_xslt_params;

X-XSLT-Params: name1=value1:name2=value2:name3=value3

No plans to extend this then? I’ve just thought of something else which
would be useful, although it might be more difficult; having the module
check the XML file for a processing instruction and applying that.
Specifying the stylesheet in the nginx config is useful, but also quite
limiting.

Phillip B Oldham
The Activity People
[email protected] mailto:[email protected]


Policies

This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to you in
error, please reply to this e-mail and highlight the error. No action
should be taken regarding content, nor must you copy or show them to
anyone.

This e-mail has been created in the knowledge that Internet e-mail is
not a 100% secure communications medium, and we have taken steps to
ensure that this e-mail and attachments are free from any virus. We must
advise that in keeping with good computing practice the recipient should
ensure they are completely virus free, and that you understand and
observe the lack of security when e-mailing us.

On Mon, Aug 04, 2008 at 09:55:12AM -0700, mike wrote:

On 8/4/08, Igor S. [email protected] wrote:

This is values from query string, e.g:

/uri??one=1&two=2

appropriately $arg_one is “1” and $arg_two is “2”.

I assume that was put in to help with the XSLT processing?

Yes.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs