diff options
Diffstat (limited to 'tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e')
9 files changed, 166 insertions, 0 deletions
diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Entries b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Entries new file mode 100644 index 0000000000..3170ace724 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Entries @@ -0,0 +1,7 @@ +/NE13a.xml/1.1/Thu Jun 1 11:43:24 2006// +/NE13b.xml/1.2/Thu Jun 1 11:45:28 2006// +/NE13c.xml/1.2/Thu Jun 1 11:45:28 2006// +/errata1e.xml/1.1/Thu Jun 1 11:43:24 2006// +/testcases.dtd/1.1/Thu Jun 1 11:43:24 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/namespaces/errata-1e/CVS/Repository b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Repository new file mode 100644 index 0000000000..6ee3edf5a9 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Root b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/CVS/Root new file mode 100644 index 0000000000..3c7177e4bb --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/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/namespaces/errata-1e/NE13a.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13a.xml new file mode 100644 index 0000000000..b3a3a6b544 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13a.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<!-- The xml namespace must not be declared as the default namespace. --> +<!DOCTYPE foo [ +<!ELEMENT foo ANY> +<!ATTLIST foo xmlns CDATA #IMPLIED> +]> +<foo xmlns="http://www.w3.org/XML/1998/namespace"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13b.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13b.xml new file mode 100644 index 0000000000..b483caf6a6 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13b.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<!-- The xmlns namespace must not be declared as the default namespace. --> +<!DOCTYPE foo [ +<!ELEMENT foo ANY> +<!ATTLIST foo xmlns CDATA #IMPLIED> +]> +<foo xmlns="http://www.w3.org/2000/xmlns/"/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13c.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13c.xml new file mode 100644 index 0000000000..fb28af71d1 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/NE13c.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<!-- Elements must not have the prefix xmlns. --> +<!DOCTYPE foo [ +<!ELEMENT xmlns:foo EMPTY> +]> +<xmlns:foo/> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/errata1e.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/errata1e.xml new file mode 100644 index 0000000000..fd2ebf7a87 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/errata1e.xml @@ -0,0 +1,18 @@ +<TESTCASES PROFILE="Richard Tobin's XML Namespaces 1.0/1.1 2nd edition test suite 1 June 2006"> + +<!-- These tests are for the erratum to Namespaces in XML 1.0 and 1.1 + first edition. The erratum is the same for both 1.0 and 1.1. --> + +<TEST RECOMMENDATION="NS1.0-errata1e" SECTIONS="NE13" URI="NE13a.xml" ID="rmt-ns-e1.0-13a" TYPE="not-wf"> +The xml namespace must not be declared as the default namespace. +</TEST> + +<TEST RECOMMENDATION="NS1.0-errata1e" SECTIONS="NE13" URI="NE13b.xml" ID="rmt-ns-e1.0-13b" TYPE="not-wf"> +The xmlns namespace must not be declared as the default namespace. +</TEST> + +<TEST RECOMMENDATION="NS1.0-errata1e" SECTIONS="NE13" URI="NE13c.xml" ID="rmt-ns-e1.0-13c" TYPE="not-wf"> +Elements must not have the prefix xmlns. +</TEST> + +</TESTCASES> diff --git a/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/testcases.dtd b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/testcases.dtd new file mode 100644 index 0000000000..448d362991 --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/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/namespaces/errata-1e/xmlconf.xml b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/xmlconf.xml new file mode 100644 index 0000000000..e8a004303f --- /dev/null +++ b/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/eduni/namespaces/errata-1e/xmlconf.xml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> + +<!-- Richard Tobin's XML Namespaces 1.0/1.1 2nd edition test suite 1 June 2006 + 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-nse SYSTEM "errata1e.xml"> +]> + +<TESTSUITE PROFILE="Richard Tobin's XML Namespaces 1.0/1.1 2nd edition test suite 1 June 2006"> + &eduni-nse; +</TESTSUITE> |