Mercurial > hg > nginx-vendor-0-8
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 418:ff86d646f9df NGINX_0_7_21
nginx 0.7.21
*) Changes in the ngx_http_limit_req_module.
*) Feature: the EXSLT support in the ngx_http_xslt_module.
Thanks to Denis F. Latypoff.
*) Workaround: compatibility with glibc 2.3.
Thanks to Eric Benson and Maxim Dounin.
*) Bugfix: nginx could not run on MacOSX 10.4 and earlier; the bug had
appeared in 0.7.6.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 11 Nov 2008 00:00:00 +0300 |
parents | 6ebbca3d5ed7 |
children | c8cfb6c462ef |
comparison
equal
deleted
inserted
replaced
417:735cec38a814 | 418:ff86d646f9df |
---|---|
12 #include <libxml/tree.h> | 12 #include <libxml/tree.h> |
13 #include <libxslt/xslt.h> | 13 #include <libxslt/xslt.h> |
14 #include <libxslt/xsltInternals.h> | 14 #include <libxslt/xsltInternals.h> |
15 #include <libxslt/transform.h> | 15 #include <libxslt/transform.h> |
16 #include <libxslt/xsltutils.h> | 16 #include <libxslt/xsltutils.h> |
17 | |
18 #if (NGX_HAVE_EXSLT) | |
19 #include <libexslt/exslt.h> | |
20 #endif | |
17 | 21 |
18 | 22 |
19 #ifndef NGX_HTTP_XSLT_REUSE_DTD | 23 #ifndef NGX_HTTP_XSLT_REUSE_DTD |
20 #define NGX_HTTP_XSLT_REUSE_DTD 1 | 24 #define NGX_HTTP_XSLT_REUSE_DTD 1 |
21 #endif | 25 #endif |
1267 static ngx_int_t | 1271 static ngx_int_t |
1268 ngx_http_xslt_filter_init(ngx_conf_t *cf) | 1272 ngx_http_xslt_filter_init(ngx_conf_t *cf) |
1269 { | 1273 { |
1270 xmlInitParser(); | 1274 xmlInitParser(); |
1271 | 1275 |
1276 #if (NGX_HAVE_EXSLT) | |
1277 exsltRegisterAll(); | |
1278 #endif | |
1279 | |
1272 ngx_http_next_header_filter = ngx_http_top_header_filter; | 1280 ngx_http_next_header_filter = ngx_http_top_header_filter; |
1273 ngx_http_top_header_filter = ngx_http_xslt_header_filter; | 1281 ngx_http_top_header_filter = ngx_http_xslt_header_filter; |
1274 | 1282 |
1275 ngx_http_next_body_filter = ngx_http_top_body_filter; | 1283 ngx_http_next_body_filter = ngx_http_top_body_filter; |
1276 ngx_http_top_body_filter = ngx_http_xslt_body_filter; | 1284 ngx_http_top_body_filter = ngx_http_xslt_body_filter; |