diff options
Diffstat (limited to 'test/WFC')
-rw-r--r-- | test/WFC/ElemTypeMatch | 2 | ||||
-rw-r--r-- | test/WFC/EntityDeclared | 2 | ||||
-rw-r--r-- | test/WFC/EntityDeclared2 | 5 | ||||
-rw-r--r-- | test/WFC/EntityDeclared3 | 3 | ||||
-rw-r--r-- | test/WFC/EntityDeclared4 | 6 | ||||
-rw-r--r-- | test/WFC/EntityDeclared5 | 6 | ||||
-rw-r--r-- | test/WFC/LegalCharacter | 2 | ||||
-rw-r--r-- | test/WFC/NoExternalEntityRef | 5 | ||||
-rw-r--r-- | test/WFC/NoLtInAttValue | 5 | ||||
-rw-r--r-- | test/WFC/NoRecursion | 7 | ||||
-rw-r--r-- | test/WFC/PEintsubset | 6 | ||||
-rw-r--r-- | test/WFC/UniqueAttSpec | 2 | ||||
-rw-r--r-- | test/WFC/UniqueAttSpec2 | 2 |
13 files changed, 53 insertions, 0 deletions
diff --git a/test/WFC/ElemTypeMatch b/test/WFC/ElemTypeMatch new file mode 100644 index 0000000..11a2df3 --- /dev/null +++ b/test/WFC/ElemTypeMatch @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a> violates [ WFC: Element Type Match ] </b> diff --git a/test/WFC/EntityDeclared b/test/WFC/EntityDeclared new file mode 100644 index 0000000..e3427a1 --- /dev/null +++ b/test/WFC/EntityDeclared @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a> &unknown; violates [ WFC: Entity Declared ] </a> diff --git a/test/WFC/EntityDeclared2 b/test/WFC/EntityDeclared2 new file mode 100644 index 0000000..e6d16dd --- /dev/null +++ b/test/WFC/EntityDeclared2 @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE a [ +<!ENTITY e "an entity"> +]> +<a> &unknown; violates [ WFC: Entity Declared ] </a> diff --git a/test/WFC/EntityDeclared3 b/test/WFC/EntityDeclared3 new file mode 100644 index 0000000..1670980 --- /dev/null +++ b/test/WFC/EntityDeclared3 @@ -0,0 +1,3 @@ +<?xml version="1.0" standalone="yes"?> +<!DOCTYPE a SYSTEM "a.dtd"> +<a> &unknown; violates [ WFC: Entity Declared ] </a> diff --git a/test/WFC/EntityDeclared4 b/test/WFC/EntityDeclared4 new file mode 100644 index 0000000..15354ac --- /dev/null +++ b/test/WFC/EntityDeclared4 @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<!DOCTYPE a [ +%unknown; +<!ENTITY % unknown "<!ELEMENT a (#PCDATA)>"> +]> +<a> violates [ WFC: Entity Declared ] </a> diff --git a/test/WFC/EntityDeclared5 b/test/WFC/EntityDeclared5 new file mode 100644 index 0000000..f125373 --- /dev/null +++ b/test/WFC/EntityDeclared5 @@ -0,0 +1,6 @@ +<?xml version="1.0" standalone="yes"?> +<!DOCTYPE a SYSTEM "a.dtd" [ +%unknown; +<!ENTITY % unknown "<!ELEMENT a (#PCDATA)>"> +]> +<a> violates [ WFC: Entity Declared ] </a> diff --git a/test/WFC/LegalCharacter b/test/WFC/LegalCharacter new file mode 100644 index 0000000..67ff388 --- /dev/null +++ b/test/WFC/LegalCharacter @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a>  violates [ WFC: Legal Character ] </a> diff --git a/test/WFC/NoExternalEntityRef b/test/WFC/NoExternalEntityRef new file mode 100644 index 0000000..43cd192 --- /dev/null +++ b/test/WFC/NoExternalEntityRef @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE a [ +<!ENTITY ext SYSTEM "ext.ent"> +]> +<a att="wrong &ext; ref"> violates [ WFC: No External Entity References ] </a> diff --git a/test/WFC/NoLtInAttValue b/test/WFC/NoLtInAttValue new file mode 100644 index 0000000..cc459e9 --- /dev/null +++ b/test/WFC/NoLtInAttValue @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE a [ +<!ENTITY ext "no < workie"> +]> +<a att="wrong &ext; ref"> violates [ WFC: No < in Attribute Values ] </a> diff --git a/test/WFC/NoRecursion b/test/WFC/NoRecursion new file mode 100644 index 0000000..970b897 --- /dev/null +++ b/test/WFC/NoRecursion @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<!DOCTYPE doc [ +<!ENTITY a "&b;"> +<!ENTITY b "&c;"> +<!ENTITY c "&a;"> +]> +<doc> &a; violates [ WFC: No Recursion ] </doc> diff --git a/test/WFC/PEintsubset b/test/WFC/PEintsubset new file mode 100644 index 0000000..e1ea331 --- /dev/null +++ b/test/WFC/PEintsubset @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<!DOCTYPE a [ +<!ENTITY % pcdata "(#PCDATA)"> +<!ELEMENT e %pcdata> +]> +<a> violates [ WFC: PEs in Internal Subset ] </a> diff --git a/test/WFC/UniqueAttSpec b/test/WFC/UniqueAttSpec new file mode 100644 index 0000000..5074ff2 --- /dev/null +++ b/test/WFC/UniqueAttSpec @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a att="Ok" att2="Ok" att="Bad"> violates [ WFC: Unique Att Spec ] </a> diff --git a/test/WFC/UniqueAttSpec2 b/test/WFC/UniqueAttSpec2 new file mode 100644 index 0000000..e4511f1 --- /dev/null +++ b/test/WFC/UniqueAttSpec2 @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a> <b att="Ok" att2="Ok" att="Bad"/> violates [ WFC: Unique Att Spec ] </a> |