# HG changeset patch # User Maxim Dounin # Date 1332518264 -14400 # Node ID ee8fee3c4ae8573f6e781e30e06d22465a3e345b # Parent a5f810eb87a2f00065a2e94d1be966d82bdbeedf 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. diff --git a/xslt.t b/xslt.t --- a/xslt.t +++ b/xslt.t @@ -46,7 +46,7 @@ http { } location /x2 { xslt_stylesheet %%TESTDIR%%/test.xslt - param1='value1':param2=root param3='value%33'; + param1='value1':param2=/root param3='value%33'; } location /x3 { xml_entities %%TESTDIR%%/entities.dtd; @@ -77,7 +77,7 @@ test xslt result param1= param2= param3= -data= +data= @@ -90,7 +90,7 @@ EOF xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -other +other diff --git a/xslt_params.t b/xslt_params.t --- 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"; } }