comparison xslt_params.t @ 211:ee8fee3c4ae8

Tests: fix xslt tests for CentOS 5. Old libxslt used on CentOS 5 (libxml 2.6.26, libxslt 1.1.17) handlex XPath queries in top-level elements incorrectly if relative paths are used. Use paths from document root instead.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 23 Mar 2012 19:57:44 +0400
parents 6bac00bba8d4
children 6a0d934950bc
comparison
equal deleted inserted replaced
210:a5f810eb87a2 211:ee8fee3c4ae8
41 41
42 default_type text/xml; 42 default_type text/xml;
43 43
44 location /x1 { 44 location /x1 {
45 xslt_stylesheet %%TESTDIR%%/test.xslt 45 xslt_stylesheet %%TESTDIR%%/test.xslt
46 param1='value1':param2=root param3='value%33'; 46 param1='value1':param2=/root param3='value%33';
47 } 47 }
48 location /x2 { 48 location /x2 {
49 xslt_stylesheet %%TESTDIR%%/test.xslt; 49 xslt_stylesheet %%TESTDIR%%/test.xslt;
50 xslt_param param1 "'value1'"; 50 xslt_param param1 "'value1'";
51 xslt_param param2 "root"; 51 xslt_param param2 "/root";
52 xslt_string_param param3 "value3"; 52 xslt_string_param param3 "value3";
53 } 53 }
54 location /x3 { 54 location /x3 {
55 xslt_stylesheet %%TESTDIR%%/test.xslt 55 xslt_stylesheet %%TESTDIR%%/test.xslt
56 param1='value1':param2=root; 56 param1='value1':param2=/root;
57 xslt_string_param param3 "value3"; 57 xslt_string_param param3 "value3";
58 } 58 }
59 } 59 }
60 } 60 }
61 61