diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:29:42 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:29:42 (GMT) |
commit | 937cfaf1a06a4a9d0c8ba119d7ce820878ff9058 (patch) | |
tree | f7b0b1bcce9ae963a0a069eafa552350eb4ee391 /libxml2/test/WFC | |
parent | 4b8453f0303492a1de2dcf854555f6429fac550e (diff) | |
download | blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.zip blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.tar.gz blt-937cfaf1a06a4a9d0c8ba119d7ce820878ff9058.tar.bz2 |
inital commit
Diffstat (limited to 'libxml2/test/WFC')
-rw-r--r-- | libxml2/test/WFC/ElemTypeMatch | 2 | ||||
-rw-r--r-- | libxml2/test/WFC/EntityDeclared | 2 | ||||
-rw-r--r-- | libxml2/test/WFC/EntityDeclared2 | 5 | ||||
-rw-r--r-- | libxml2/test/WFC/EntityDeclared3 | 3 | ||||
-rw-r--r-- | libxml2/test/WFC/EntityDeclared4 | 6 | ||||
-rw-r--r-- | libxml2/test/WFC/EntityDeclared5 | 6 | ||||
-rw-r--r-- | libxml2/test/WFC/LegalCharacter | 2 | ||||
-rw-r--r-- | libxml2/test/WFC/NoExternalEntityRef | 5 | ||||
-rw-r--r-- | libxml2/test/WFC/NoLtInAttValue | 5 | ||||
-rw-r--r-- | libxml2/test/WFC/NoRecursion | 7 | ||||
-rw-r--r-- | libxml2/test/WFC/PEintsubset | 6 | ||||
-rw-r--r-- | libxml2/test/WFC/UniqueAttSpec | 2 | ||||
-rw-r--r-- | libxml2/test/WFC/UniqueAttSpec2 | 2 |
13 files changed, 53 insertions, 0 deletions
diff --git a/libxml2/test/WFC/ElemTypeMatch b/libxml2/test/WFC/ElemTypeMatch new file mode 100644 index 0000000..11a2df3 --- /dev/null +++ b/libxml2/test/WFC/ElemTypeMatch @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a> violates [ WFC: Element Type Match ] </b> diff --git a/libxml2/test/WFC/EntityDeclared b/libxml2/test/WFC/EntityDeclared new file mode 100644 index 0000000..e3427a1 --- /dev/null +++ b/libxml2/test/WFC/EntityDeclared @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a> &unknown; violates [ WFC: Entity Declared ] </a> diff --git a/libxml2/test/WFC/EntityDeclared2 b/libxml2/test/WFC/EntityDeclared2 new file mode 100644 index 0000000..e6d16dd --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/EntityDeclared3 b/libxml2/test/WFC/EntityDeclared3 new file mode 100644 index 0000000..1670980 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/EntityDeclared4 b/libxml2/test/WFC/EntityDeclared4 new file mode 100644 index 0000000..15354ac --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/EntityDeclared5 b/libxml2/test/WFC/EntityDeclared5 new file mode 100644 index 0000000..f125373 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/LegalCharacter b/libxml2/test/WFC/LegalCharacter new file mode 100644 index 0000000..67ff388 --- /dev/null +++ b/libxml2/test/WFC/LegalCharacter @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<a>  violates [ WFC: Legal Character ] </a> diff --git a/libxml2/test/WFC/NoExternalEntityRef b/libxml2/test/WFC/NoExternalEntityRef new file mode 100644 index 0000000..43cd192 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/NoLtInAttValue b/libxml2/test/WFC/NoLtInAttValue new file mode 100644 index 0000000..cc459e9 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/NoRecursion b/libxml2/test/WFC/NoRecursion new file mode 100644 index 0000000..970b897 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/PEintsubset b/libxml2/test/WFC/PEintsubset new file mode 100644 index 0000000..e1ea331 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/UniqueAttSpec b/libxml2/test/WFC/UniqueAttSpec new file mode 100644 index 0000000..5074ff2 --- /dev/null +++ b/libxml2/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/libxml2/test/WFC/UniqueAttSpec2 b/libxml2/test/WFC/UniqueAttSpec2 new file mode 100644 index 0000000..e4511f1 --- /dev/null +++ b/libxml2/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> |