diff options
Diffstat (limited to 'tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e')
19 files changed, 301 insertions, 0 deletions
diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Entries b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Entries new file mode 100644 index 0000000000..75b258e445 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Entries @@ -0,0 +1,17 @@ +/E05a.xml/1.1/Thu Jun 1 12:24:56 2006// +/E05b.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06a.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06b.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06c.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06d.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06e.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06f.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06g.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06h.xml/1.1/Thu Jun 1 12:24:57 2006// +/E06i.xml/1.1/Thu Jun 1 12:24:57 2006// +/E12.xml/1.1/Thu Jun 1 12:24:57 2006// +/E13.xml/1.1/Thu Jun 1 12:24:57 2006// +/errata3e.xml/1.3/Thu Jun 1 12:55:35 2006// +/testcases.dtd/1.1/Thu Jun 1 11:45:56 2006// +/xmlconf.xml/1.2/Thu Jun 1 12:55:35 2006// +D diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Repository b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Repository new file mode 100644 index 0000000000..748d2db480 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/eduni/errata-3e diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Root b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Root new file mode 100644 index 0000000000..3c7177e4bb --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05a.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05a.xml new file mode 100644 index 0000000000..42654d1651 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05a.xml @@ -0,0 +1,5 @@ +<!-- CDATA sections may occur in Mixed content. --> +<!DOCTYPE foo [ +<!ELEMENT foo (#PCDATA|foo)*> +]> +<foo>a <![CDATA[cdata section]]> in mixed content</foo> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05b.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05b.xml new file mode 100644 index 0000000000..2522b035c4 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E05b.xml @@ -0,0 +1,9 @@ +<!-- CDATA sections, comments and PIs may occur in ANY content. --> +<!DOCTYPE foo [ +<!ELEMENT foo ANY> +]> +<foo> +a <![CDATA[cdata section]]> in mixed content. +a <!-- comment --> in mixed content. +a <?processing instruction?> in mixed content. +</foo> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06a.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06a.xml new file mode 100644 index 0000000000..1174ed52a8 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06a.xml @@ -0,0 +1,7 @@ +<!-- Default values for IDREF attributes must match Name. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo id ID #IMPLIED> +<!ATTLIST foo a IDREF "34"> +]> +<foo id="g0034" a="g0034"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06b.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06b.xml new file mode 100644 index 0000000000..d11d8cdcab --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06b.xml @@ -0,0 +1,8 @@ +<!-- Default values for ENTITY attributes must match Name. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo a ENTITY "34"> +<!ENTITY ent SYSTEM "foo" NDATA not> +<!NOTATION not SYSTEM "not"> +]> +<foo a="ent"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06c.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06c.xml new file mode 100644 index 0000000000..bd0fd5351d --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06c.xml @@ -0,0 +1,7 @@ +<!-- Default values for IDREFS attributes must match Names. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo id ID #IMPLIED> +<!ATTLIST foo a IDREFS "34"> +]> +<foo id="g0034" a="g0034"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06d.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06d.xml new file mode 100644 index 0000000000..0671b7466f --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06d.xml @@ -0,0 +1,8 @@ +<!-- Default values for ENTITIES attributes must match Names. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo a ENTITIES "34"> +<!ENTITY ent SYSTEM "foo" NDATA not> +<!NOTATION not SYSTEM "not"> +]> +<foo a="ent"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06e.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06e.xml new file mode 100644 index 0000000000..2b737e099b --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06e.xml @@ -0,0 +1,6 @@ +<!-- Default values for NMTOKEN attributes must match Nmtoken. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo a NMTOKEN "34+"> +]> +<foo a="34"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06f.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06f.xml new file mode 100644 index 0000000000..47e4618632 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06f.xml @@ -0,0 +1,6 @@ +<!-- Default values for NMTOKENS attributes must match Nmtokens. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo a NMTOKENS "34+"> +]> +<foo a="34"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06g.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06g.xml new file mode 100644 index 0000000000..37b1ee6ae6 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06g.xml @@ -0,0 +1,8 @@ +<!-- Default values for NOTATION attributes must match one of the enumerated values. --> +<!DOCTYPE foo [ +<!ELEMENT foo ANY> +<!ATTLIST foo a NOTATION (not) "not2"> +<!NOTATION not SYSTEM "not"> +<!NOTATION not2 SYSTEM "not2"> +]> +<foo a="not">junk</foo> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06h.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06h.xml new file mode 100644 index 0000000000..1b3f11aeb4 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06h.xml @@ -0,0 +1,6 @@ +<!-- Default values for enumerated attributes must match one of the enumerated values. --> +<!DOCTYPE foo [ +<!ELEMENT foo EMPTY> +<!ATTLIST foo a (one|two|three) "four"> +]> +<foo a="one"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06i.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06i.xml new file mode 100644 index 0000000000..dd79ee2899 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E06i.xml @@ -0,0 +1,12 @@ +<!-- Non-syntactic validity errors in default attributes only happen if the attribute is in fact defaulted. --> +<!DOCTYPE foo [ +<!ELEMENT foo ANY> +<!ATTLIST foo id ID #IMPLIED> +<!ATTLIST foo ref IDREF "undef"> +<!ATTLIST foo ent ENTITY "undef"> +<!-- can't test NOTATION attribute, because if it's undeclared then we'll + get an error for one of the enumerated values being undeclared. --> +<!ENTITY ent SYSTEM "foo" NDATA not> +<!NOTATION not SYSTEM "not"> +]> +<foo id="g0034" ref="g0034" ent="ent"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E12.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E12.xml new file mode 100644 index 0000000000..784f3424ee --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E12.xml @@ -0,0 +1,7 @@ +<!-- Default values for attributes may not contain references to external entities. --> +<!DOCTYPE foo [ +<!ENTITY ent SYSTEM "ent"> +<!ELEMENT foo ANY> +<!ATTLIST foo a CDATA "contains &ent; reference"> +]> +<foo a="not defaulted"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E13.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E13.xml new file mode 100644 index 0000000000..d93ef3ee5d --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/E13.xml @@ -0,0 +1,7 @@ +<!-- Even internal parameter entity references are enough to make undeclared entities into mere validity errors rather than well-formedness errors. --> +<!DOCTYPE foo [ +<!ENTITY % pe "<!ENTITY ent1 'text'>"> +%pe; +<!ELEMENT foo ANY> +]> +<foo>&ent2;</foo> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/errata3e.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/errata3e.xml new file mode 100644 index 0000000000..3eda8c6fd1 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/errata3e.xml @@ -0,0 +1,67 @@ +<TESTCASES PROFILE="Richard Tobin's XML 1.0 3rd edition errata test suite 1 June 2006"> + +<!-- These tests are for the errata to XML 1.0 3rd edition + (http://www.w3.org/XML/xml-V10-3e-errata). + The errata to XML 1.1 (first edition) are a superset of these + (http://www.w3.org/XML/xml-V11-1e-errata). + The additional XML 1.1 errata are (a) minor fixes to the BNF + and (b) a correction concerning 1.0 compatibility; these do + not seem to me to merit tests. --> + +<!-- E01 concerns xml:lang and is not testable at the XML level --> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E05" URI="E05a.xml" ID="rmt-e3e-05a" TYPE="valid"> +CDATA sections may occur in Mixed content. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E05" URI="E05b.xml" ID="rmt-e3e-05b" TYPE="valid"> +CDATA sections, comments and PIs may occur in ANY content. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06a.xml" ID="rmt-e3e-06a" TYPE="invalid"> +Default values for IDREF attributes must match Name. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06b.xml" ID="rmt-e3e-06b" TYPE="invalid"> +Default values for ENTITY attributes must match Name. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06c.xml" ID="rmt-e3e-06c" TYPE="invalid"> +Default values for IDREFS attributes must match Names. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06d.xml" ID="rmt-e3e-06d" TYPE="invalid"> +Default values for ENTITIES attributes must match Names. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06e.xml" ID="rmt-e3e-06e" TYPE="invalid"> +Default values for NMTOKEN attributes must match Nmtoken. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06f.xml" ID="rmt-e3e-06f" TYPE="invalid"> +Default values for NMTOKENS attributes must match Nmtokens. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06g.xml" ID="rmt-e3e-06g" TYPE="invalid"> +Default values for NOTATION attributes must match one of the enumerated values. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06h.xml" ID="rmt-e3e-06h" TYPE="invalid"> +Default values for enumerated attributes must match one of the enumerated values. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06i.xml" ID="rmt-e3e-06i" TYPE="valid"> +Non-syntactic validity errors in default attributes only happen if +the attribute is in fact defaulted. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E12" URI="E12.xml" ID="rmt-e3e-12" TYPE="not-wf"> +Default values for attributes may not contain references to external entities. +</TEST> + +<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E13" URI="E13.xml" ID="rmt-e3e-13" TYPE="invalid"> +Even internal parameter entity references are enough to make undeclared +entities into mere validity errors rather than well-formedness errors. +</TEST> + +</TESTCASES> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/testcases.dtd b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/testcases.dtd new file mode 100644 index 0000000000..448d362991 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/testcases.dtd @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ @(#)testcases.dtd 1.6 99/01/21
+ Original version copyright 1998 by Sun Microsystems, Inc.
+ All Rights Reserved.
+ Modifications copyright 1999 by OASIS.
+
+ 1999-06-09 00:20
+
+ DTD describing a database of XML tests.
+
+ NOTE: the OASIS/NIST test effort also has a DTD for its test
+ environment, but that DTD is not yet suited for automated test
+ processing. (Among other issues, it doesn't record information
+ putting any test case into the test matrix.) If that gets fixed,
+ it may be useful to switch over to that DTD.
+-->
+
+<!--
+ The root element of the whole collection is TESTSUITE. While not
+ very different from TESTCASES, it must be distinguished due to
+ improper processing by IE5.
+-->
+<!ELEMENT TESTSUITE ( TESTCASES+ )>
+<!ATTLIST TESTSUITE
+ PROFILE CDATA #IMPLIED
+ >
+
+<!--
+ The root element of a collection should be "TESTCASES". It groups
+ a set of tests in a particular "PROFILE", which is descriptive. For
+ example, a "Japanese" profile might group tests with documents
+ in standard Japanese encodings, using Japanese characters used
+ inside names and name tokens as well as inside text. Or the
+ profile might be associated with the test supplier.
+-->
+
+<!ELEMENT TESTCASES (TEST|TESTCASES)*>
+<!ATTLIST TESTCASES
+ PROFILE CDATA #IMPLIED
+ >
+
+<!--
+ The body of each TEST element is its description, used
+ to evaluate the diagnostic produced on negative tests.
+ People will generally read this to evaluate whether the
+ test failed for the correct reason.
+
+ The type of (external) ENTITIES required affect the results
+ permitted for certain types of nonvalidating parsers. In
+ some cases, errors (even well-formedness errors) can't be seen
+ without reading external parameter or general entities.
+
+ Each test has a unique ID used in diagnostics.
+
+ Tests with an OUTPUT attribute do dual duty: not only must parsers
+ accept the test, but the data they report must also have "Second
+ Canonical Form" as found in the specified output file. (This is
+ what James Clark titled "Canonical XML", with the addition of the
+ NOTATION declarations that all XML parsers are required to report.)
+
+ The OUTPUT3 attribute is like OUTPUT, but when sent through a
+ validating parser the data reported must have the "Third Canonical
+ Form" as found in the specified output file. (This is Second
+ Canonical form, with declarations of unparsed ENTITY values and
+ with all ignorable whitespace removed.)
+
+ Tests apply to one or more particular SECTIONS.
+
+ Each test has a TYPE:
+ * All parsers must accept "valid" testcases.
+ * Nonvalidating parsers must also accept "invalid" testcases,
+ but validating ones must reject them.
+ * No parser should accept a "not-wf" testcase unless it's a
+ nonvalidating parser and the test contains external entities
+ that the parser doesn't read.
+ * Parsers are not required to report "errors".
+
+ Each test is in a particular XML document, with a URI. If these
+ tests are accessed over a network, the path will be relative to
+ the base URI of the document holding the testcase.
+-->
+
+<!ELEMENT TEST (#PCDATA | EM | B)*>
+<!ATTLIST TEST
+ ENTITIES (both|none|parameter|general) "none"
+ ID ID #REQUIRED
+ OUTPUT CDATA #IMPLIED
+ OUTPUT3 CDATA #IMPLIED
+ SECTIONS CDATA #REQUIRED
+ TYPE (valid|invalid|not-wf|error) #REQUIRED
+ URI CDATA #REQUIRED
+ NAMESPACE (yes|no) "yes" + >
+
+<!--
+ Really basic HTML font tweaks, to support highlighting
+ some aspects of test descriptions ...
+ EM == emphasis (e.g. italics, fun colors)
+ B == bold
+-->
+<!ELEMENT EM (#PCDATA | B)*>
+<!ELEMENT B (#PCDATA | EM)*>
diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/xmlconf.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/xmlconf.xml new file mode 100644 index 0000000000..dcc571a743 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/errata-3e/xmlconf.xml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> + +<!-- Richard Tobin's XML 1.0 3rd edition errata test suite. + Copyright Richard Tobin, HCRC June 2006. + May be freely redistributed provided copyright notice is retained. + --> + +<?xml-stylesheet href="xmlconformance.xsl" type="text/xsl"?> + +<!DOCTYPE TESTSUITE SYSTEM "testcases.dtd" [ + <!ENTITY eduni-errata3e SYSTEM "errata3e.xml"> +]> + +<TESTSUITE PROFILE="Richard Tobin's XML 1.0 3rd edition errata test suite 1 June 2006"> + &eduni-errata3e; +</TESTSUITE> |