comparison src/http/modules/ngx_http_xslt_filter_module.c @ 2150:50cede290146

fix xslt module context levels
author Igor Sysoev <igor@sysoev.ru>
date Tue, 05 Aug 2008 06:21:15 +0000
parents 071bc0fc1459
children c8331f70d799
comparison
equal deleted inserted replaced
2149:deaa4cabecdc 2150:50cede290146
129 129
130 130
131 static ngx_command_t ngx_http_xslt_filter_commands[] = { 131 static ngx_command_t ngx_http_xslt_filter_commands[] = {
132 132
133 { ngx_string("xml_entities"), 133 { ngx_string("xml_entities"),
134 NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_TAKE1, 134 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
135 ngx_http_xslt_entities, 135 ngx_http_xslt_entities,
136 NGX_HTTP_LOC_CONF_OFFSET, 136 NGX_HTTP_LOC_CONF_OFFSET,
137 0, 137 0,
138 NULL }, 138 NULL },
139 139
140 { ngx_string("xslt_stylesheet"), 140 { ngx_string("xslt_stylesheet"),
141 NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_1MORE, 141 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
142 ngx_http_xslt_stylesheet, 142 ngx_http_xslt_stylesheet,
143 NGX_HTTP_LOC_CONF_OFFSET, 143 NGX_HTTP_LOC_CONF_OFFSET,
144 0, 144 0,
145 NULL }, 145 NULL },
146 146
147 { ngx_string("xslt_types"), 147 { ngx_string("xslt_types"),
148 NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_1MORE, 148 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
149 ngx_http_types_slot, 149 ngx_http_types_slot,
150 NGX_HTTP_LOC_CONF_OFFSET, 150 NGX_HTTP_LOC_CONF_OFFSET,
151 offsetof(ngx_http_xslt_filter_conf_t, types_keys), 151 offsetof(ngx_http_xslt_filter_conf_t, types_keys),
152 &ngx_http_xslt_default_types[0] }, 152 &ngx_http_xslt_default_types[0] },
153 153