Mercurial > hg > nginx
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 2299:3e213fa0cbb3
exslt support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 Nov 2008 15:22:24 +0000 |
parents | fab3fa7339ff |
children | a6954ce88b80 |
comparison
equal
deleted
inserted
replaced
2298:3578be3f65ce | 2299:3e213fa0cbb3 |
---|---|
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; |