comparison src/http/modules/ngx_http_xslt_filter_module.c @ 4717:bd45a98ff226 stable-1.2

Merge of r4647: xslt reuse. Fixed the reuse of parsed DTDs and XSLTs. Patch by Kuramoto Eiji.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 02 Jul 2012 15:39:28 +0000
parents 1a11e4a8877a
children 4a18bf1833a9 b5601d23b61e
comparison
equal deleted inserted replaced
4716:d1415d1e7a6b 4717:bd45a98ff226
808 808
809 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); 809 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module);
810 810
811 file = xmcf->dtd_files.elts; 811 file = xmcf->dtd_files.elts;
812 for (i = 0; i < xmcf->dtd_files.nelts; i++) { 812 for (i = 0; i < xmcf->dtd_files.nelts; i++) {
813 if (ngx_strcmp(file[i].name, &value[1].data) == 0) { 813 if (ngx_strcmp(file[i].name, value[1].data) == 0) {
814 xlcf->dtd = file[i].data; 814 xlcf->dtd = file[i].data;
815 return NGX_CONF_OK; 815 return NGX_CONF_OK;
816 } 816 }
817 } 817 }
818 818
882 882
883 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module); 883 xmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_xslt_filter_module);
884 884
885 file = xmcf->sheet_files.elts; 885 file = xmcf->sheet_files.elts;
886 for (i = 0; i < xmcf->sheet_files.nelts; i++) { 886 for (i = 0; i < xmcf->sheet_files.nelts; i++) {
887 if (ngx_strcmp(file[i].name, &value[1].data) == 0) { 887 if (ngx_strcmp(file[i].name, value[1].data) == 0) {
888 sheet->stylesheet = file[i].data; 888 sheet->stylesheet = file[i].data;
889 goto found; 889 goto found;
890 } 890 }
891 } 891 }
892 892