diff options
Diffstat (limited to 'libxml2/test/XPath')
37 files changed, 0 insertions, 480 deletions
diff --git a/libxml2/test/XPath/docs/chapters b/libxml2/test/XPath/docs/chapters deleted file mode 100644 index c48f65e..0000000 --- a/libxml2/test/XPath/docs/chapters +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<EXAMPLE prop1="gnome is great" prop2="& linux too"> - <head> - <title>Welcome to Gnome</title> - </head> - <chapter id="chapter1"> - <title>The Linux adventure</title> - <p>bla bla bla ...</p> - <image href="linus.gif"/> - <p>...</p> - </chapter> - <chapter id="chapter2"> - <title>Chapter 2</title> - <p>this is chapter 2 ...</p> - </chapter> - <chapter id="chapter3"> - <title>Chapter 3</title> - <p>this is chapter 3 ...</p> - </chapter> - <chapter id="chapter4"> - <title>Chapter 4</title> - <p>this is chapter 4 ...</p> - </chapter> - <chapter id="chapter5"> - <title>Chapter 5</title> - <p>this is chapter 5 ...</p> - </chapter> -</EXAMPLE> diff --git a/libxml2/test/XPath/docs/id b/libxml2/test/XPath/docs/id deleted file mode 100644 index 4b6659f..0000000 --- a/libxml2/test/XPath/docs/id +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<EXAMPLE id="root" prop1="gnome is great" prop2="& linux too"> - <head id="head"> - <title>Welcome to Gnome</title> - </head> - <chapter id="chapter1"> - <title>The Linux adventure</title> - <p>bla bla bla ...</p> - <image href="linus.gif"/> - <p>...</p> - </chapter> - <chapter id="chapter2"> - <title>Chapter 2</title> - <p>this is chapter 2 ...</p> - </chapter> - <chapter id="chapter3"> - <title>Chapter 3</title> - <p>this is chapter 3 ...</p> - </chapter> - <chapter id="chapter4"> - <title>Chapter 4</title> - <p>this is chapter 4 ...</p> - </chapter> - <chapter id="chapter5"> - <title>Chapter 5</title> - <p>this is chapter 5 ...</p> - </chapter> -</EXAMPLE> diff --git a/libxml2/test/XPath/docs/lang b/libxml2/test/XPath/docs/lang deleted file mode 100644 index abfe1d6..0000000 --- a/libxml2/test/XPath/docs/lang +++ /dev/null @@ -1,13 +0,0 @@ -<doc> - <x>1</x> - <b xml:lang="en"> - <x>en</x> - <x>3</x> - </b> - <x>4</x> - <para xml:lang="en"/> - <div xml:lang="en"><para/></div> - <para xml:lang="EN"/> - <para xml:lang="en-us"/> - <para xml:lang="EN-US"/> -</doc> diff --git a/libxml2/test/XPath/docs/mixed b/libxml2/test/XPath/docs/mixed deleted file mode 100644 index 3b457bc..0000000 --- a/libxml2/test/XPath/docs/mixed +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0"?> -<root> - <s p="root"/> - <p1> - <s p="p1"/> - </p1> - <p2> - <s p="p2"/> - </p2> -</root> diff --git a/libxml2/test/XPath/docs/nodes b/libxml2/test/XPath/docs/nodes deleted file mode 100644 index a863df0..0000000 --- a/libxml2/test/XPath/docs/nodes +++ /dev/null @@ -1,2 +0,0 @@ -<?xml version="1.0"?> -<root><foo>txt<!--hello--><![CDATA[data]]><?target data?><bar>txt<!--hello--><![CDATA[data]]><?target data?></bar></foo></root>
\ No newline at end of file diff --git a/libxml2/test/XPath/docs/ns b/libxml2/test/XPath/docs/ns deleted file mode 100644 index 88f4575..0000000 --- a/libxml2/test/XPath/docs/ns +++ /dev/null @@ -1,3 +0,0 @@ -<doc xmlns:ns1="nsuri1"> - <elem xmlns:ns2="nsuri2"/> -</doc> diff --git a/libxml2/test/XPath/docs/simple b/libxml2/test/XPath/docs/simple deleted file mode 100644 index ca665a2..0000000 --- a/libxml2/test/XPath/docs/simple +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<EXAMPLE prop1="gnome is great" prop2="& linux too"> - <head> - <title>Welcome to Gnome</title> - </head> - <chapter> - <title>The Linux adventure</title> - <p>bla bla bla ...</p> - <image href="linus.gif"/> - <p>...</p> - </chapter> -</EXAMPLE> diff --git a/libxml2/test/XPath/docs/str b/libxml2/test/XPath/docs/str deleted file mode 100644 index 547e54d..0000000 --- a/libxml2/test/XPath/docs/str +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0"?> -<chapter> - <p>a simple test</p> - <p>multiple tests</p> - <p>a diff<em>i</em>cult one</p> - <p><p>a span</p>n<p>ing one</p></p> - <p><p>and an unbal</p><empty/>anced test</p> - <p>for empty string <seq>123</seq></p> -</chapter> diff --git a/libxml2/test/XPath/docs/usr1 b/libxml2/test/XPath/docs/usr1 deleted file mode 100644 index 44c7529..0000000 --- a/libxml2/test/XPath/docs/usr1 +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<BODY> -<DECLARACION importador="123456789" fecha="08/09/2000" -monto_factura="100.09"> -<ITEM monto="50.12" divisa="DOL"> -<SUFIJO codigo="NL34" valor="negro"/> -<SUFIJO codigo="AS34" valor="grande"/> -</ITEM> -</DECLARACION> -<FIRMA>N</FIRMA> -</BODY> - diff --git a/libxml2/test/XPath/docs/vid b/libxml2/test/XPath/docs/vid deleted file mode 100644 index cdb7437..0000000 --- a/libxml2/test/XPath/docs/vid +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE iddemo [ -<!ELEMENT iddemo (head?, (chapter)*)> -<!ATTLIST iddemo id ID #IMPLIED> -<!ELEMENT head (title?, (p)*)> -<!ATTLIST head id ID #IMPLIED> -<!ELEMENT chapter (title?, (p | image)*)> -<!ATTLIST chapter id ID #IMPLIED> -<!ELEMENT image EMPTY> -<!ATTLIST image href CDATA #IMPLIED> -<!ELEMENT title (#PCDATA)> -<!ELEMENT p (#PCDATA)> -]> - -<iddemo> - <head> - <title>Welcome to Gnome</title> - </head> - <chapter id="chapter1"> - <title>The Linux adventure</title> - <p>bla bla bla ...</p> - <image href="linus.gif"/> - <p>...</p> - <p>third p</p> - <p>fourth p</p> - </chapter> - <chapter id="chapter2"> - <title>Chapter 2</title> - <p>this is chapter 2 ...</p> - </chapter> - <chapter id="chapter3"> - <title>Chapter 3</title> - <p>this is chapter 3 ...</p> - </chapter> - <chapter id="chapter4"> - <title>Chapter 4</title> - <p>this is chapter 4 ...</p> - </chapter> - <chapter id="chapter5"> - <title>Chapter 5</title> - <p>this is chapter 5 ...</p> - </chapter> -</iddemo> diff --git a/libxml2/test/XPath/expr/base b/libxml2/test/XPath/expr/base deleted file mode 100644 index f57e4d0..0000000 --- a/libxml2/test/XPath/expr/base +++ /dev/null @@ -1,7 +0,0 @@ -1 -1+2 -2*3 -1+2*3+4 -(1+2)*(3+4) -1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1 -self::-name diff --git a/libxml2/test/XPath/expr/compare b/libxml2/test/XPath/expr/compare deleted file mode 100644 index 2d52eaf..0000000 --- a/libxml2/test/XPath/expr/compare +++ /dev/null @@ -1,46 +0,0 @@ -0<0 -0<=0 -0>0 -0>=0 -0<1 -0<=1 -0>1 -0>=1 -1<0 -1<=0 -1>0 -1>=0 -1<1 -1<=1 -1>1 -1>=1 -'0'<1 -'0'<=1 -'0'>1 -'0'>=1 -0<'1.2' -0<='1.2' -0>'1.2' -0>='1.2' -0<'-0.2' -0<='-0.2' -0>'-0.2' -0>='-0.2' -false()<1 -false()<=1 -0>true() -0>=true() -'a' > 'a' -'a' > 'b' -'b' > 'a' -'a' < 'a' -'a' < 'b' -'b' < 'a' -'a' >= 'a' -'a' >= 'b' -'b' >= 'a' -'a' <= 'a' -'a' <= 'b' -'b' <= 'a' -'a' > '0.0' -'a' < '0.0' diff --git a/libxml2/test/XPath/expr/equality b/libxml2/test/XPath/expr/equality deleted file mode 100644 index 7982173..0000000 --- a/libxml2/test/XPath/expr/equality +++ /dev/null @@ -1,26 +0,0 @@ -1=1 -1!=1 -1=0 -1!=0 -true()=true() -true()!=true() -true()=false() -false()!=true() -'test'='test' -'test'!='test' -'test2'='test' -'test2'!='test' -false()=0 -false()!=0 -false()=1 -false()!=1 -0=true() -0!=true() -1=true() -1!=true() -true()='test' -false()='test' -'test'!=true() -'test'!=false() -'a'=0.0 -'a'!=0.0 diff --git a/libxml2/test/XPath/expr/floats b/libxml2/test/XPath/expr/floats deleted file mode 100644 index 96c10d1..0000000 --- a/libxml2/test/XPath/expr/floats +++ /dev/null @@ -1,61 +0,0 @@ -1 -123 -1.23 -0.123 -4. -.4 -1.23e3 -1.23e-3 -1 div 0 --1 div 0 -0 div 0 -1 div -0 -(1 div 0) > 0 -(1 div 0) < 0 -(-1 div 0) > 0 -(-1 div 0) < 0 -(0 div 0) > 0 -(0 div 0) < 0 -(1 div -0) > 0 -(1 div -0) < 0 -0 div 0 = 0 div 0 -0 div 0 != 0 div 0 -0 div 0 > 0 div 0 -0 div 0 < 0 div 0 -0 div 0 >= 0 div 0 -0 div 0 <= 0 div 0 -1 div 0 = -1 div 0 -1 div 0 != -1 div 0 -1 div 0 > -1 div 0 -1 div 0 < -1 div 0 -1 div 0 >= -1 div 0 -1 div 0 <= -1 div 0 -1 div 0 = 1 div 0 -1 div 0 != 1 div 0 -1 div 0 > 1 div 0 -1 div 0 < 1 div 0 -1 div 0 >= -1 div 0 -1 div 0 <= -1 div 0 --2 div 0 = -1 div 0 -1 div floor(0.1) -1 div floor(-0.1) -1 div floor(-0) -1 div floor(0) -1 div ceiling(0.1) -1 div ceiling(-0.1) -1 div ceiling(-0) -1 div ceiling(0) -1 div round(0.1) -1 div round(-0.1) -1 div round(-0) -1 div round(0) -1 div number('f') -number('f') div 1 -1 div (1 div 0) -(1 div 0) div 1 --(1 div 0) div 1 -5 mod 2 -5 mod -2 --5 mod 2 --5 mod -2 -8 mod 3 = 2 diff --git a/libxml2/test/XPath/expr/functions b/libxml2/test/XPath/expr/functions deleted file mode 100644 index d168b18..0000000 --- a/libxml2/test/XPath/expr/functions +++ /dev/null @@ -1,25 +0,0 @@ -true() -false() -number("1.5") -number('abc') --number('abc') -floor(0.1) -floor(-0.1) -floor(-0) -floor(0) -floor(5.2) -floor(-5.2) -ceiling(0.1) -ceiling(-0.1) -ceiling(-0) -ceiling(0) -ceiling(5.2) -ceiling(-5.2) -round(0.1) -round(5.2) -round(5.5) -round(5.6) -round(-0.1) -round(-5.2) -round(-5.5) -round(-5.6) diff --git a/libxml2/test/XPath/expr/strings b/libxml2/test/XPath/expr/strings deleted file mode 100644 index 849ca14..0000000 --- a/libxml2/test/XPath/expr/strings +++ /dev/null @@ -1,34 +0,0 @@ -string(5) -string(0.5) -string(-0.5) -string(true()) -string(false()) -concat("titi","toto") -concat("titi","toto","tata") -concat("titi",'toto') -concat("titi",'toto',"tata","last") -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",-4) -substring("12345",3.4) -substring("12345",3.6) -substring("12345",1.5,2.6) -substring("12345",2.2,2.2) -substring("12345",0,3) -substring("12345",-8,10) -substring("12345",4,-10) -substring("12345",0 div 0, 3) -substring("12345",1, 0 div 0) -substring("12345",1 div 0, 3) -substring("12345",3,-1 div 0) -substring("12345",-42, 1 div 0) -substring("12345",-1 div 0, 1 div 0) -substring("12345",-1 div 0,5) -string-length("") -string-length("titi") diff --git a/libxml2/test/XPath/tests/chaptersbase b/libxml2/test/XPath/tests/chaptersbase deleted file mode 100644 index 17638f7..0000000 --- a/libxml2/test/XPath/tests/chaptersbase +++ /dev/null @@ -1,10 +0,0 @@ -/child::EXAMPLE -/child::* -/child::EXAMPLE/child::head -/child::EXAMPLE/child::* -/child::EXAMPLE/child::head/child::title -/child::EXAMPLE/child::head/child::title/child::text() -/child::EXAMPLE/child::head/node() -/descendant::title -/descendant::p/ancestor::chapter -//p[1] diff --git a/libxml2/test/XPath/tests/chaptersprefol b/libxml2/test/XPath/tests/chaptersprefol deleted file mode 100644 index 8f1e65b..0000000 --- a/libxml2/test/XPath/tests/chaptersprefol +++ /dev/null @@ -1,8 +0,0 @@ -/following::* -/preceding::* -/child::EXAMPLE/preceding::* -/child::EXAMPLE/following::* -/child::EXAMPLE/child::chapter[3]/preceding::* -/child::EXAMPLE/child::chapter[3]/following::* -/child::EXAMPLE/child::chapter[1]/image/preceding::* -/child::EXAMPLE/child::chapter[1]/image/following::* diff --git a/libxml2/test/XPath/tests/idsimple b/libxml2/test/XPath/tests/idsimple deleted file mode 100644 index 2841ae9..0000000 --- a/libxml2/test/XPath/tests/idsimple +++ /dev/null @@ -1,3 +0,0 @@ -//*[@id="root"] -//*[@id="chapter2"] -//*[@id="chapter5"] diff --git a/libxml2/test/XPath/tests/langsimple b/libxml2/test/XPath/tests/langsimple deleted file mode 100644 index f71a321..0000000 --- a/libxml2/test/XPath/tests/langsimple +++ /dev/null @@ -1,5 +0,0 @@ -//*[lang('en')] -//*[lang('en-us')] -//*[lang('en-gb')] -//*[lang('fr')] -//*[lang('')] diff --git a/libxml2/test/XPath/tests/mixedpat b/libxml2/test/XPath/tests/mixedpat deleted file mode 100644 index c212f6c..0000000 --- a/libxml2/test/XPath/tests/mixedpat +++ /dev/null @@ -1,7 +0,0 @@ -s -s|p1/s -s|/root/p1/s -/root/p1/s|s -//s -//s|p1 -p1|//s diff --git a/libxml2/test/XPath/tests/nodespat b/libxml2/test/XPath/tests/nodespat deleted file mode 100644 index c157a3e..0000000 --- a/libxml2/test/XPath/tests/nodespat +++ /dev/null @@ -1,5 +0,0 @@ -/. -//. -/root//. -//.//./././/. -/root//././/bar//.
\ No newline at end of file diff --git a/libxml2/test/XPath/tests/nssimple b/libxml2/test/XPath/tests/nssimple deleted file mode 100644 index d2a9528..0000000 --- a/libxml2/test/XPath/tests/nssimple +++ /dev/null @@ -1,3 +0,0 @@ -/doc/elem/namespace::node()/.. -/doc/elem/namespace::*/self::node()[true()] -//*[namespace::ns1] diff --git a/libxml2/test/XPath/tests/simpleabbr b/libxml2/test/XPath/tests/simpleabbr deleted file mode 100644 index 8de476f..0000000 --- a/libxml2/test/XPath/tests/simpleabbr +++ /dev/null @@ -1,10 +0,0 @@ -/EXAMPLE -/EXAMPLE/head -/EXAMPLE/chapter[1] -//p -//chapter/image -//p/text() -//p/text()[position()=1] -//p/text()[position()=last()] -(//p/text())[position()=1] -(//p/text())[position()=last()] diff --git a/libxml2/test/XPath/tests/simplebase b/libxml2/test/XPath/tests/simplebase deleted file mode 100644 index 8b2c7d1..0000000 --- a/libxml2/test/XPath/tests/simplebase +++ /dev/null @@ -1,15 +0,0 @@ -/child::* -/child::EXAMPLE -/child::EXAMPLE/child::head -/child::EXAMPLE/child::* -/child::EXAMPLE/child::head/child::title -/child::EXAMPLE/child::head/child::title/child::text() -/child::EXAMPLE/child::head/node() -/child::EXAMPLE/attribute::prop1/self::node() -/child::EXAMPLE/attribute::prop1/self::* -/child::EXAMPLE/attribute::prop1/descendant-or-self::node() -/child::EXAMPLE/attribute::prop1/descendant-or-self::* -/child::EXAMPLE/attribute::prop1/ancestor-or-self::node() -/child::EXAMPLE/attribute::prop1/ancestor-or-self::* -/descendant::title -/descendant::p/ancestor::chapter diff --git a/libxml2/test/XPath/tests/usr1check b/libxml2/test/XPath/tests/usr1check deleted file mode 100644 index c38d003..0000000 --- a/libxml2/test/XPath/tests/usr1check +++ /dev/null @@ -1 +0,0 @@ -//ITEM[1] diff --git a/libxml2/test/XPath/tests/vidbase b/libxml2/test/XPath/tests/vidbase deleted file mode 100644 index 5cd79ac..0000000 --- a/libxml2/test/XPath/tests/vidbase +++ /dev/null @@ -1,5 +0,0 @@ -id('chapter1') -id('chapter3') -id('chapter1')/p -id('chapter1')//p -id('chapter1')/p[1] diff --git a/libxml2/test/XPath/xptr/chapterschildseq b/libxml2/test/XPath/xptr/chapterschildseq deleted file mode 100644 index 3b52f5f..0000000 --- a/libxml2/test/XPath/xptr/chapterschildseq +++ /dev/null @@ -1,8 +0,0 @@ -/1/2/3 -element(/1/2/3) -element(foo)element(/1/2/3) -element(/1/2/3)element(foo) -chapter1/3 -element(chapter1/3) -element(foo)element(chapter1/3) -element(chapter1/3)element(foo) diff --git a/libxml2/test/XPath/xptr/chaptersparts b/libxml2/test/XPath/xptr/chaptersparts deleted file mode 100644 index aadc47c..0000000 --- a/libxml2/test/XPath/xptr/chaptersparts +++ /dev/null @@ -1,6 +0,0 @@ -xpointer(//chapitre[2]) -xpointer(//chapter[2]) -xpointer(//chapitre[2])xpointer(//chapter[2]) -xpointer(id("chapter1")) -xpointer(//*[@id="chapter1"]) -xpointer(id("chapter1"))xpointer(//*[@id="chapter1"]) diff --git a/libxml2/test/XPath/xptr/chaptersrange b/libxml2/test/XPath/xptr/chaptersrange deleted file mode 100644 index 4d7a55b..0000000 --- a/libxml2/test/XPath/xptr/chaptersrange +++ /dev/null @@ -1,4 +0,0 @@ -xpointer(//chapter[position() = 2]/range-to(following::chapter[1])) -xpointer(//chapter[position() <= 2]/range-to(following::chapter[1])) -xpointer(//chapter[position() = last()]/range-to(following::chapter[1])) -xpointer(//chapter[position() = 3]/range-to(/.//chapter[position() = 1])) diff --git a/libxml2/test/XPath/xptr/strpoint b/libxml2/test/XPath/xptr/strpoint deleted file mode 100644 index 0916ef1..0000000 --- a/libxml2/test/XPath/xptr/strpoint +++ /dev/null @@ -1,9 +0,0 @@ -xpointer(start-point(string-range(//p,'multiple'))) -xpointer(end-point(string-range(//p,'multiple'))) -xpointer(start-point(string-range(//p,'test'))) -xpointer(end-point(string-range(//p,'test'))) -xpointer(start-point(string-range(//*,'multiple',1,0))) -xpointer(end-point(string-range(//*,'multiple',1,0))) -xpointer(start-point(string-range(//*,'multiple',1,1))) -xpointer(end-point(string-range(//*,'multiple',1,1))) -xpointer(start-point(string-range(//p,'test'))[1]) diff --git a/libxml2/test/XPath/xptr/strrange b/libxml2/test/XPath/xptr/strrange deleted file mode 100644 index 3231927..0000000 --- a/libxml2/test/XPath/xptr/strrange +++ /dev/null @@ -1,6 +0,0 @@ -xpointer(string-range(//p, 'simple')) -xpointer(string-range(//p, 'test')) -xpointer(string-range(//p, 'difficult')) -xpointer(string-range(//p, 'spanning')) -xpointer(string-range(//p, 'unbalanced')) -xpointer(string-range(//seq, '')) diff --git a/libxml2/test/XPath/xptr/strrange2 b/libxml2/test/XPath/xptr/strrange2 deleted file mode 100644 index 5133547..0000000 --- a/libxml2/test/XPath/xptr/strrange2 +++ /dev/null @@ -1,3 +0,0 @@ -xpointer(string-range(//p, 'test', 2)) -xpointer(string-range(//p, 'test', 2, 2)) -xpointer(string-range(//p, 'difficult', 1, 0)) diff --git a/libxml2/test/XPath/xptr/strrange3 b/libxml2/test/XPath/xptr/strrange3 deleted file mode 100644 index aea5665..0000000 --- a/libxml2/test/XPath/xptr/strrange3 +++ /dev/null @@ -1,4 +0,0 @@ -xpointer(string-range(//p, 'test', 1, 0)) -xpointer(string-range(//*, 'test', 1, 0)) -xpointer(string-range(//p, 'test', 1, 0)[2]) -xpointer(string-range(//*, 'test', 1, 0)[2]) diff --git a/libxml2/test/XPath/xptr/vidbase b/libxml2/test/XPath/xptr/vidbase deleted file mode 100644 index b146383..0000000 --- a/libxml2/test/XPath/xptr/vidbase +++ /dev/null @@ -1,2 +0,0 @@ -xpointer(id('chapter1')/p) -xpointer(id('chapter1')/p[1]/range-to(following-sibling::p[2])) diff --git a/libxml2/test/XPath/xptr/vidchildseq b/libxml2/test/XPath/xptr/vidchildseq deleted file mode 100644 index fe205dc..0000000 --- a/libxml2/test/XPath/xptr/vidchildseq +++ /dev/null @@ -1,4 +0,0 @@ -/1/2/3 -element(/1/2/3) -chapter1/3 -element(chapter1/3) diff --git a/libxml2/test/XPath/xptr/vidparts b/libxml2/test/XPath/xptr/vidparts deleted file mode 100644 index 3afbbdd..0000000 --- a/libxml2/test/XPath/xptr/vidparts +++ /dev/null @@ -1,3 +0,0 @@ -xpointer(id("chapter1")) -xpointer(//*[@id="chapter1"]) -xpointer(id("chapter1"))xpointer(//*[@id="chapter1"]) |