summaryrefslogtreecommitdiff
path: root/test/VC
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2012-09-21 00:05:28 +0800
committerAron Xu <aron@debian.org>2012-09-21 00:05:28 +0800
commit701a0ca0678e6bbc19a97eca1f07de0cda5e38a7 (patch)
tree097840589de2b11ad86d032c0dea497cee59b59e /test/VC
parentf660f9d2924c7549bc87e7f9b4ece7c9727b3682 (diff)
downloadlibxml2-701a0ca0678e6bbc19a97eca1f07de0cda5e38a7.tar.gz
Imported Upstream version 2.9.0+dfsg1
Diffstat (limited to 'test/VC')
-rw-r--r--test/VC/AttributeDefaultLegal12
-rw-r--r--test/VC/AttributeNmtokens6
-rw-r--r--test/VC/DuplicateType5
-rw-r--r--test/VC/ElementValid3
-rw-r--r--test/VC/ElementValid24
-rw-r--r--test/VC/ElementValid34
-rw-r--r--test/VC/ElementValid47
-rw-r--r--test/VC/ElementValid57
-rw-r--r--test/VC/ElementValid67
-rw-r--r--test/VC/ElementValid77
-rw-r--r--test/VC/ElementValid87
-rw-r--r--test/VC/Enumeration5
-rw-r--r--test/VC/NS113
-rw-r--r--test/VC/NS213
-rw-r--r--test/VC/NS39
-rw-r--r--test/VC/OneID6
-rw-r--r--test/VC/OneID26
-rw-r--r--test/VC/OneID34
-rw-r--r--test/VC/PENesting2
-rw-r--r--test/VC/PENesting23
-rw-r--r--test/VC/UniqueElementTypeDeclaration7
-rw-r--r--test/VC/UniqueElementTypeDeclaration28
-rw-r--r--test/VC/dtds/a.dtd2
-rw-r--r--test/VC/dtds/doc.dtd2
24 files changed, 0 insertions, 149 deletions
diff --git a/test/VC/AttributeDefaultLegal b/test/VC/AttributeDefaultLegal
deleted file mode 100644
index 471eb20..0000000
--- a/test/VC/AttributeDefaultLegal
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE doc [
-<!ELEMENT doc (#PCDATA)>
-<!ATTLIST doc At NMTOKEN "$$$">
-<!ATTLIST doc Ok NMTOKEN "1abc_2">
-<!ATTLIST doc bad IDREF "1abc_2">
-<!ATTLIST doc ok2 IDREF "abc_2">
-<!ATTLIST doc bad2 IDREFS "abc:1 1abc_2">
-<!ATTLIST doc ok3 IDREFS "abc:1 a1bc_2">
-]>
-<doc val="v1"/>
-
diff --git a/test/VC/AttributeNmtokens b/test/VC/AttributeNmtokens
deleted file mode 100644
index 8710de4..0000000
--- a/test/VC/AttributeNmtokens
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE test [
- <!ELEMENT test EMPTY>
- <!ATTLIST test attr1 NMTOKENS #IMPLIED>
-]>
-<!-- Should be invalid due to http://www.w3.org/XML/xml-V10-2e-errata#E20 -->
-<test attr1=" a&#x9;b "/>
diff --git a/test/VC/DuplicateType b/test/VC/DuplicateType
deleted file mode 100644
index 4b28804..0000000
--- a/test/VC/DuplicateType
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE a [
-<!ELEMENT a (#PCDATA | b | c | d | c)*>
-]>
-<a> violates [ VC: No Duplicate Types ] </a>
diff --git a/test/VC/ElementValid b/test/VC/ElementValid
deleted file mode 100644
index c297ce6..0000000
--- a/test/VC/ElementValid
+++ /dev/null
@@ -1,3 +0,0 @@
-<!DOCTYPE doc [
-]>
-<doc/>
diff --git a/test/VC/ElementValid2 b/test/VC/ElementValid2
deleted file mode 100644
index 672a0f5..0000000
--- a/test/VC/ElementValid2
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (p)*>
-]>
-<doc><p/></doc>
diff --git a/test/VC/ElementValid3 b/test/VC/ElementValid3
deleted file mode 100644
index 67cbab4..0000000
--- a/test/VC/ElementValid3
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc EMPTY>
-]>
-<doc>Oops, this element was declared EMPTY</doc>
diff --git a/test/VC/ElementValid4 b/test/VC/ElementValid4
deleted file mode 100644
index 56df55a..0000000
--- a/test/VC/ElementValid4
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (#PCDATA | a | b)*>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<doc> This <b>seems</b> Ok <a/> but this <c>was not declared</c></doc>
diff --git a/test/VC/ElementValid5 b/test/VC/ElementValid5
deleted file mode 100644
index 2cef3c4..0000000
--- a/test/VC/ElementValid5
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (a , b* , c+)>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<doc><a/><b> but this</b><c>was not declared</c><b>seems</b></doc>
diff --git a/test/VC/ElementValid6 b/test/VC/ElementValid6
deleted file mode 100644
index fbf721d..0000000
--- a/test/VC/ElementValid6
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (a , b? , c+)?>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<doc><a/><b>lacks c</b></doc>
diff --git a/test/VC/ElementValid7 b/test/VC/ElementValid7
deleted file mode 100644
index a88115f..0000000
--- a/test/VC/ElementValid7
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc ((a | b)* , c+, a, b?, c, a?)>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<doc><a/><b/><a/><c/><c/><a/></doc>
diff --git a/test/VC/ElementValid8 b/test/VC/ElementValid8
deleted file mode 100644
index 5fd2044..0000000
--- a/test/VC/ElementValid8
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc ((a, b)| (a, c))>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<doc><a/><c> doc is non-deterministic </c></doc>
diff --git a/test/VC/Enumeration b/test/VC/Enumeration
deleted file mode 100644
index 6c63968..0000000
--- a/test/VC/Enumeration
+++ /dev/null
@@ -1,5 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (#PCDATA)>
-<!ATTLIST doc val (v1 | v2 | v3) #IMPLIED>
-]>
-<doc val="v4"></doc>
diff --git a/test/VC/NS1 b/test/VC/NS1
deleted file mode 100644
index 2f74463..0000000
--- a/test/VC/NS1
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE ns:doc [
-<!ELEMENT ns:doc (#PCDATA | ns:a | ns:b)*>
-<!ATTLIST ns:doc
- ns:attr CDATA #REQUIRED
- xmlns:ns CDATA #IMPLIED>
-<!ELEMENT ns:a EMPTY>
-<!ELEMENT ns:b (#PCDATA)>
-]>
-<ns:doc ns:attr="val" xmlns:ns="http://www.example.org/test/">
- <ns:a/>
- <ns:b>first line</ns:b>
- <ns:b>second line</ns:b>
-</ns:doc>
diff --git a/test/VC/NS2 b/test/VC/NS2
deleted file mode 100644
index d748d1a..0000000
--- a/test/VC/NS2
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (#PCDATA | ns:a | ns:b)*>
-<!ATTLIST doc
- attr CDATA #REQUIRED
- xmlns:ns CDATA #IMPLIED>
-<!ELEMENT a EMPTY>
-<!ELEMENT b (#PCDATA)>
-]>
-<ns:doc ns:attr="val" xmlns:ns="http://www.example.org/test/">
- <ns:a/>
- <ns:b>first line</ns:b>
- <ns:b>second line</ns:b>
-</ns:doc>
diff --git a/test/VC/NS3 b/test/VC/NS3
deleted file mode 100644
index f53b0ca..0000000
--- a/test/VC/NS3
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" ?>
-<!DOCTYPE foo [
-<!ELEMENT foo EMPTY>
-<!ATTLIST foo
- xmlns CDATA #FIXED "http://example.com/fooo"
- xmlns:foo CDATA #REQUIRED
- foo:info CDATA #IMPLIED>
-]>
-<foo xmlns="http://example.com/foo" xmlns:foo="http://example.com/fo" foo:info="toto"/>
diff --git a/test/VC/OneID b/test/VC/OneID
deleted file mode 100644
index e9cbc0c..0000000
--- a/test/VC/OneID
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE doc [
-<!ELEMENT doc (#PCDATA)>
-<!ATTLIST doc val ID #IMPLIED>
-<!ATTLIST doc id ID #IMPLIED>
-]>
-<doc val="v1"></doc>
diff --git a/test/VC/OneID2 b/test/VC/OneID2
deleted file mode 100644
index ffa9d1f..0000000
--- a/test/VC/OneID2
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE doc [
-<!ATTLIST doc val ID #IMPLIED>
-<!ATTLIST doc id ID #IMPLIED>
-<!ELEMENT doc (#PCDATA)>
-]>
-<doc val="v1"></doc>
diff --git a/test/VC/OneID3 b/test/VC/OneID3
deleted file mode 100644
index 9696736..0000000
--- a/test/VC/OneID3
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE doc SYSTEM "dtds/doc.dtd" [
-<!ATTLIST doc id ID #IMPLIED>
-]>
-<doc val="v1"></doc>
diff --git a/test/VC/PENesting b/test/VC/PENesting
deleted file mode 100644
index 17332ae..0000000
--- a/test/VC/PENesting
+++ /dev/null
@@ -1,2 +0,0 @@
-<!ENTITY % pe1 "EMPTY> <!ELEMENT e2 EMPTY>">
-<!ELEMENT e1 %pe1;
diff --git a/test/VC/PENesting2 b/test/VC/PENesting2
deleted file mode 100644
index 27b0cca..0000000
--- a/test/VC/PENesting2
+++ /dev/null
@@ -1,3 +0,0 @@
-<!ENTITY % p1 "(A|B">
-<!ENTITY % p2 "|C|D)">
-<!ELEMENT X %p1;%p2;>
diff --git a/test/VC/UniqueElementTypeDeclaration b/test/VC/UniqueElementTypeDeclaration
deleted file mode 100644
index 2246f17..0000000
--- a/test/VC/UniqueElementTypeDeclaration
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE a SYSTEM "dtds/a.dtd" [
-<!ELEMENT a (#PCDATA | b | c)*>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-]>
-<a> violates [ VC: Unique Element Type Declaration ] </a>
diff --git a/test/VC/UniqueElementTypeDeclaration2 b/test/VC/UniqueElementTypeDeclaration2
deleted file mode 100644
index 0805f8d..0000000
--- a/test/VC/UniqueElementTypeDeclaration2
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE a [
-<!ELEMENT a (#PCDATA | b | c)*>
-<!ELEMENT b (#PCDATA)>
-<!ELEMENT c (#PCDATA)>
-<!ELEMENT a (#PCDATA | b | c)*>
-]>
-<a> violates [ VC: Unique Element Type Declaration ] </a>
diff --git a/test/VC/dtds/a.dtd b/test/VC/dtds/a.dtd
deleted file mode 100644
index b8571a4..0000000
--- a/test/VC/dtds/a.dtd
+++ /dev/null
@@ -1,2 +0,0 @@
-<!ELEMENT a (#PCDATA | b | c)*>
-<!ATTLIST doc id ID #IMPLIED>
diff --git a/test/VC/dtds/doc.dtd b/test/VC/dtds/doc.dtd
deleted file mode 100644
index 71f8b41..0000000
--- a/test/VC/dtds/doc.dtd
+++ /dev/null
@@ -1,2 +0,0 @@
-<!ELEMENT doc (#PCDATA)>
-<!ATTLIST doc val ID #IMPLIED>