[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
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://example.org/a" rewritePrefix="a"/>
<nextCatalog catalog="c.example.org.xml"/>
</catalog>
+1
View File
@@ -0,0 +1 @@
<!ELEMENT a (#PCDATA)>
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ELEMENT abc (a, b, c)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE abc SYSTEM "http://example.org/abc.dtd">
<abc>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
<b>Let's use a DTD defined entity &bent;</b>
<c/>
</abc>
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ELEMENT acb (a, c, b)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE acb SYSTEM "http://example.org/acb.dtd">
<acb>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
<c/>
<b>Let's use a DTD defined entity &bent;</b>
</acb>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://example.org/b" rewritePrefix="b"/>
<nextCatalog catalog="c.example.org.xml"/>
</catalog>
+2
View File
@@ -0,0 +1,2 @@
<!ELEMENT b (#PCDATA)>
<!ENTITY bent "the b entity">
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ELEMENT bac (b, a, c)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE bac SYSTEM "http://example.org/bac.dtd">
<bac>
<b>Let's use a DTD defined entity &bent;</b>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
<c/>
</bac>
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ELEMENT bca (b, c, a)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE bca SYSTEM "http://example.org/bca.dtd">
<bca>
<b>Let's use a DTD defined entity &bent;</b>
<c/>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
</bca>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://example.org/c" rewritePrefix="c"/>
<rewriteSystem systemIdStartString="http://example.org/" rewritePrefix="./"/>
</catalog>
+1
View File
@@ -0,0 +1 @@
<!ELEMENT c EMPTY>
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ELEMENT cab (c, a, b)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE cab SYSTEM "http://example.org/cab.dtd">
<cab>
<c/>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
<b>Let's use a DTD defined entity &bent;</b>
</cab>
+7
View File
@@ -0,0 +1,7 @@
<!ENTITY % c SYSTEM "http://example.org/c/c.dtd">
%c;
<!ENTITY % b SYSTEM "http://example.org/b/b.dtd">
%b;
<!ENTITY % a SYSTEM "http://example.org/a/a.dtd">
%a;
<!ELEMENT cba (c, b, a)>
+7
View File
@@ -0,0 +1,7 @@
<!DOCTYPE cba SYSTEM "http://example.org/cba.dtd">
<cba>
<c/>
<b>Let's use a DTD defined entity &bent;</b>
<a>Let's use predefined entities &amp; &lt; &gt;</a>
</cba>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<delegateSystem systemIdStartString="http://example.org/"
catalog="example.org.xml"/>
</catalog>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<delegateSystem systemIdStartString="http://example.org/a"
catalog="a.example.org.xml"/>
<delegateSystem systemIdStartString="http://example.org/b"
catalog="b.example.org.xml"/>
<nextCatalog catalog="c.example.org.xml"/>
</catalog>
+2
View File
@@ -0,0 +1,2 @@
<!-- Well formed but invalid -->
<doc/>