[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
+4
View File
@@ -0,0 +1,4 @@
<doc xmlns:xi="http://www.w3.org/2003/XInclude"
xml:base="one/two">
<xi:include href="../../ents/base-inc.xml" xpointer="xpointer(//elem)"/>
</doc>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="../ents/coalesce1.xml#xpointer(/t1))"/>
</test>
+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE book [
<!ELEMENT book (doc*)>
<!ELEMENT doc (isid*)>
<!ELEMENT isid EMPTY>
<!ATTLIST isid myid ID #IMPLIED>
]>
<book>
<doc>
<isid myid="mine"/>
<isid myid="dup"/>
</doc>
<!-- including another XML document with IDs -->
<xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude"
href="../ents/ids.xml"/>
</book>
+6
View File
@@ -0,0 +1,6 @@
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<!-- Simple test of a fallback on unavailable URI -->
<xinclude:include href="something.xml">
<xinclude:fallback><warning>Inclusion failed</warning></xinclude:fallback>
</xinclude:include>
</x>
+10
View File
@@ -0,0 +1,10 @@
<a>
<xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>There is no b.xml ... </xi:fallback>
</xi:include>
<xi:include href="c.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>There is no c.xml ... </xi:fallback>
</xi:include>
</a>
+9
View File
@@ -0,0 +1,9 @@
<a>
<xi:include href="../ents/something.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>
<xi:include href="c.xml">
<xi:fallback>There is no c.xml ... </xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</a>
+7
View File
@@ -0,0 +1,7 @@
<a>
<xi:include href="c.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>
<xi:include href="../ents/something.xml"/>
</xi:fallback>
</xi:include>
</a>
+83
View File
@@ -0,0 +1,83 @@
<a>
<xi:include href="a01.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>
<elem/>
<xi:include href="a02.xml">
<xi:fallback>
<elem/>
<xi:include href="a03.xml">
<xi:fallback>
<elem/>
<xi:include href="a04.xml">
<xi:fallback>
<elem/>
<xi:include href="a05.xml">
<xi:fallback>
<elem/>
<xi:include href="a06.xml">
<xi:fallback>
<elem/>
<xi:include href="a07.xml">
<xi:fallback>
<elem/>
<xi:include href="a08.xml">
<xi:fallback>
<elem/>
<xi:include href="a09.xml">
<xi:fallback>
<elem/>
<xi:include href="a10.xml">
<xi:fallback>
<elem/>
<xi:include href="a11.xml">
<xi:fallback>
<elem/>
<xi:include href="a12.xml">
<xi:fallback>
<elem/>
<xi:include href="a13.xml">
<xi:fallback>
<elem/>
<xi:include href="a14.xml">
<xi:fallback>
<elem/>
<xi:include href="a15.xml">
<xi:fallback>
<elem/>
<xi:include href="a16.xml">
<xi:fallback>
<elem/>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</a>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<doc>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="b.xml">
<xi:fallback><xi:include href="c.xml">
<xi:fallback/>
</xi:include></xi:fallback>
</xi:include>
</doc>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<doc>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="404.txt" parse="text">
<xi:fallback>text not found</xi:fallback>
</xi:include>
</doc>
+4
View File
@@ -0,0 +1,4 @@
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<!-- Simple test of including another XML document -->
<xinclude:include href="../ents/something.xml"/>
</x>
@@ -0,0 +1,3 @@
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<xinclude:include href="../ents/invalid_char.txt" parse="text"/>
</x>
+5
View File
@@ -0,0 +1,5 @@
<reference xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="../ents/issue733-1.xml" xpointer="a"/>
<xi:include href="../ents/issue733-2.xml" xpointer="a"/>
<xi:include href="../ents/issue733-1.xml" xpointer="b"/>
</reference>
+4
View File
@@ -0,0 +1,4 @@
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<!-- Simple test of including a set of nodes from an XML document -->
<xinclude:include href="../ents/something.xml#xpointer(//p)"/>
</x>
+4
View File
@@ -0,0 +1,4 @@
<x xmlns:xinclude="http://www.w3.org/2003/XInclude">
<!-- Simple test of including a set of nodes from an XML document -->
<xinclude:include href="../ents/something.xml" xpointer="xpointer(//p)"/>
</x>
+4
View File
@@ -0,0 +1,4 @@
<x xmlns:xinclude="http://www.w3.org/2003/XInclude">
<!-- Simple test of including a set of nodes from an XML document -->
<xinclude:include href="../ents/something.xml#xpointer(//p)"/>
</x>
+3
View File
@@ -0,0 +1,3 @@
<this><xinc:include href="../ents/sub-inc.ent" parse="xml"
xmlns:xinc="http://www.w3.org/2001/XInclude"/></this>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink">
<chapter>
<para xml:id="t100">Introduction</para>
</chapter>
<chapter>
<xi:include href="./red.xml" xpointer="t100" parse="xml"/>
</chapter>
</book>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<!-- Simple test of including another text document -->
<xinclude:include href="../ents/isolatin.txt" encoding="ISO-8859-1" parse="text"/>
</x>
@@ -0,0 +1,4 @@
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<!-- Simple test of including another text document -->
<xinclude:include href="../ents/something.txt" parse="text"/>
</x>