[libxml2]Add libxml2 library

This commit is contained in:
zhoujiale
2026-07-26 16:57:28 +08:00
committed by zhoujiale
parent 0a44ec8a06
commit e841ac915d
3790 changed files with 668244 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/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]
//p[0 div 0]
//p[100000000000000000000]
//p[-100000000000000000000]
//chapter[true()][position() mod 2 = 1][true()][2]
//chapter[true()][2][true()]
//node()[false()]
(//node())[false()]
+8
View File
@@ -0,0 +1,8 @@
/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::*
+3
View File
@@ -0,0 +1,3 @@
//*[@id="root"]
//*[@id="chapter2"]
//*[@id="chapter5"]
+5
View File
@@ -0,0 +1,5 @@
//*[lang('en')]
//*[lang('en-us')]
//*[lang('en-gb')]
//*[lang('fr')]
//*[lang('')]
+7
View File
@@ -0,0 +1,7 @@
s
s|p1/s
s|/root/p1/s
/root/p1/s|s
//s
//s|p1
p1|//s
+5
View File
@@ -0,0 +1,5 @@
/.
//.
/root//.
//.//./././/.
/root//././/bar//.
+5
View File
@@ -0,0 +1,5 @@
/doc/elem/namespace::node()/..
/doc/elem/namespace::*/self::node()[true()]
//*[namespace::ns1]
/doc/elem/namespace::ns2/following::*
/doc/elem/namespace::ns2/preceding::*
+10
View File
@@ -0,0 +1,10 @@
/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()]
+16
View File
@@ -0,0 +1,16 @@
/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
/child::EXAMPLE/attribute::prop2/preceding::text()
+1
View File
@@ -0,0 +1 @@
//p[.='abc']
+1
View File
@@ -0,0 +1 @@
/文書
+1
View File
@@ -0,0 +1 @@
//ITEM[1]
+5
View File
@@ -0,0 +1,5 @@
id('chapter1')
id('chapter3')
id('chapter1')/p
id('chapter1')//p
id('chapter1')/p[1]