From 1566d3a91b50e08f8bd928da5a06d9c53a99747f Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 15 Jul 1999 14:24:29 +0000 Subject: Added XPath code (http://www.w3.org/TR/xpath), updated HTML support and docs, Daniel --- test/XPath/expr/base | 5 +++++ test/XPath/expr/functions | 5 +++++ test/XPath/expr/strings | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 test/XPath/expr/base create mode 100644 test/XPath/expr/functions create mode 100644 test/XPath/expr/strings (limited to 'test/XPath/expr') diff --git a/test/XPath/expr/base b/test/XPath/expr/base new file mode 100644 index 00000000..9aaed4fc --- /dev/null +++ b/test/XPath/expr/base @@ -0,0 +1,5 @@ +1 +1+2 +2*3 +1+2*3+4 +(1+2)*(3+4) diff --git a/test/XPath/expr/functions b/test/XPath/expr/functions new file mode 100644 index 00000000..d2cba4e2 --- /dev/null +++ b/test/XPath/expr/functions @@ -0,0 +1,5 @@ +true() +false() +number("1.5") +concat("titi",'toto') +concat("titi",'toto',"tata","last") diff --git a/test/XPath/expr/strings b/test/XPath/expr/strings new file mode 100644 index 00000000..299b3007 --- /dev/null +++ b/test/XPath/expr/strings @@ -0,0 +1,19 @@ +string(5) +string(0.5) +string(-0.5) +string(true()) +string(false()) +concat("titi","toto") +concat("titi","toto","tata") +starts-with("tititoto","titi") +starts-with("tititoto","to") +contains("tititototata","titi") +contains("tititototata","toto") +contains("tititototata","tata") +contains("tititototata","tita") +substring("12345",2,3) +substring("12345",2) +substring("12345",1.5,2.6) +substring("12345",0,3) +string-length("") +string-length("titi") -- cgit v1.2.1