summaryrefslogtreecommitdiff
path: root/test/catalogs
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-22 00:06:49 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-22 00:06:49 +0000
commite2940ddb351e0aa2055ec6b74c245685196d532b (patch)
tree00d08550a570bc97b7c70fcd8e681588cacdb559 /test/catalogs
parent6433954692abb5620ed4e554a2979ef4ecdc6871 (diff)
downloadlibxml2-e2940ddb351e0aa2055ec6b74c245685196d532b.tar.gz
starts to look okay, really plugged the new framework, cleaned a lot of
* catalog.c parser.c xmlIO.c xmlcatalog.c xmllint.c include/libxml/catalog.h: starts to look okay, really plugged the new framework, cleaned a lot of stuff, added some APIs, except the PI's support missing this should be mostly complete * result/catalogs/* test/catalogs/*: added new test, enriched the existing one with URN ID tests Daniel
Diffstat (limited to 'test/catalogs')
-rw-r--r--test/catalogs/docbook.script2
-rw-r--r--test/catalogs/registry.script4
-rw-r--r--test/catalogs/registry.xml23
3 files changed, 29 insertions, 0 deletions
diff --git a/test/catalogs/docbook.script b/test/catalogs/docbook.script
index 1c606c08..faa06b03 100644
--- a/test/catalogs/docbook.script
+++ b/test/catalogs/docbook.script
@@ -1,3 +1,5 @@
resolve toto http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod
public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN"
+system urn:publicid:-:OASIS:DTD+DocBook+XML+V4.1.2:EN
+public urn:publicid:-:OASIS:DTD+DocBook+XML+V4.1.2:EN
resolve toto toto
diff --git a/test/catalogs/registry.script b/test/catalogs/registry.script
new file mode 100644
index 00000000..9bb944c4
--- /dev/null
+++ b/test/catalogs/registry.script
@@ -0,0 +1,4 @@
+resolve toto http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod
+public "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN"
+system http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod
+system urn:publicid:-:OASIS:DTD+DocBook+XML+V4.1.2:EN
diff --git a/test/catalogs/registry.xml b/test/catalogs/registry.xml
new file mode 100644
index 00000000..5caccfca
--- /dev/null
+++ b/test/catalogs/registry.xml
@@ -0,0 +1,23 @@
+<?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">
+
+<delegatePublic publicIdStartString="-//OASIS//"
+ catalog="oasis.xml"/>
+<delegateSystem systemIdStartString="http://www.oasis-open.org/"
+ catalog="oasis.xml"/>
+<delegateURI uriStartString="http://www.oasis-open.org/"
+ catalog="oasis.xml"/>
+
+<delegatePublic publicIdStartString="-//OASIS//DTD XML Catalog //"
+ catalog="docbook.xml"/>
+<delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML"
+ catalog="docbook.xml"/>
+<delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"
+ catalog="docbook.xml"/>
+<delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/"
+ catalog="docbook.xml"/>
+<delegateURI uriStartString="http://www.oasis-open.org/docbook/"
+ catalog="docbook.xml"/>
+
+</catalog>