diff 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
line wrap: on
line diff
--- a/xslt_params.t
+++ b/xslt_params.t
@@ -43,17 +43,17 @@ http {
 
         location /x1 {
             xslt_stylesheet %%TESTDIR%%/test.xslt
-                            param1='value1':param2=root param3='value%33';
+                            param1='value1':param2=/root param3='value%33';
         }
         location /x2 {
             xslt_stylesheet %%TESTDIR%%/test.xslt;
             xslt_param param1 "'value1'";
-            xslt_param param2 "root";
+            xslt_param param2 "/root";
             xslt_string_param param3 "value3";
         }
         location /x3 {
             xslt_stylesheet %%TESTDIR%%/test.xslt
-                            param1='value1':param2=root;
+                            param1='value1':param2=/root;
             xslt_string_param param3 "value3";
         }
     }