diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 14:06:06 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 14:06:06 (GMT) |
commit | f15b8a83e2e51955776a3f07cb85ebfc342dd8ef (patch) | |
tree | c5dc684986051654898db11ce73e03b9fec8db99 /tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun | |
download | Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.zip Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.gz Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.bz2 |
Initial import of statemachine branch from the old kinetic repository
Diffstat (limited to 'tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun')
218 files changed, 2859 insertions, 0 deletions
diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Entries b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Entries new file mode 100644 index 0000000..aef96e9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Entries @@ -0,0 +1,8 @@ +/cxml.html/1.3/Mon Mar 25 15:18:13 2002// +/sun-error.xml/1.3/Thu May 16 14:50:02 2002// +/sun-invalid.xml/1.5/Thu May 16 14:34:12 2002// +/sun-not-wf.xml/1.5/Tue Sep 30 15:11:13 2003// +/sun-valid.xml/1.4/Thu May 16 14:53:10 2002// +D/invalid//// +D/not-wf//// +D/valid//// diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Repository b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Repository new file mode 100644 index 0000000..9b23a84 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/sun diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Root b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/cxml.html b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/cxml.html new file mode 100644 index 0000000..56dd479 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/cxml.html @@ -0,0 +1,155 @@ +<HTML> +<TITLE>XML Canonical Forms</TITLE> +<BODY> +<H1>XML Canonical Forms</H1> +<P><FONT COLOR=RED><b><em>DRAFT 1</em></b></FONT> +<P> As with many sorts of structured information, there are many +categories of information that may be deemed "important" for +some task. Canonical forms are standard ways to represent +such classes of information. For testing XML, and potentially +for other purposes, three <em>XML Canonical Forms</em> have +been defined as of this writing: <UL> + + <LI> <a href=#cxml1>First XML Canonical Form</a>, defined by + James Clark, is also called <em>Canonical XML</em>. + + <LI> <a href=#cxml2>Second XML Canonical Form</a>, defined + by Sun, supports testing a larger subset of the XML 1.0 + processor requirements by exposing notation declarations. + + <LI> <a href=#cxml3>Third XML Canonical Form</a>, defined + by Sun, extends the second form to reflect information + which validating XML 1.0 processors are required to report. + + </UL> + +<P> For a document already in a given canonical form, recanonicalizing +to that same form will change nothing. Canonicalizing second or +third forms to the first canonical form discards all declarations. +Canonicalizing second or third forms to the other form has no effect. + +<P> <em>The author is pleased to acknowledge help from +James Clark in defining the additional canonical forms.</em> + + +<A NAME=cxml1> +<H2>First XML Canonical Form</H2> +</A> + +<P> <em>This description has been extracted from the version at +<a href=http://www.jclark.com/xml/canonxml.html> +http://www.jclark.com/xml/canonxml.html</a>.</em> + +<P> +Every well-formed XML document has a unique structurally equivalent +canonical XML document. Two structurally equivalent XML +documents have a byte-for-byte identical canonical XML document. +Canonicalizing an XML document requires only information that an XML +processor is required to make available to an application. +<P> +A canonical XML document conforms to the following grammar: +<PRE> +CanonXML ::= Pi* element Pi* +element ::= Stag (Datachar | Pi | element)* Etag +Stag ::= '<' Name Atts '>' +Etag ::= '</' Name '>' +Pi ::= '<?' Name ' ' (((Char - S) Char*)? - (Char* '?>' Char*)) '?>' +Atts ::= (' ' Name '=' '"' Datachar* '"')* +Datachar ::= '&amp;' | '&lt;' | '&gt;' | '&quot;' + | '&#9;'| '&#10;'| '&#13;' + | (Char - ('&' | '<' | '>' | '"' | #x9 | #xA | #xD)) +Name ::= (see XML spec) +Char ::= (see XML spec) +S ::= (see XML spec) +</PRE> +<P> +Attributes are in lexicographical order (in Unicode bit order). +<P> +A canonical XML document is encoded in UTF-8. +<P> +Ignorable white space is considered significant and is treated equivalently +to data. + + +<A NAME=cxml2> +<H2>Second XML Canonical Form</H2> +</A> +<P><FONT COLOR=RED><b><em>Modified to ensure that literals are surrounded by single quotes.</em></b></FONT> +<P> This canonical form is identical to the first form, with +one significant addition. All XML processors are required to +report the name and external identifiers of notations that +are declared and referred to in an XML document (section 4.7); +those reports are reflected in declarations in this form, +presented in lexicographic order. + +<P> Note that all public identifiers must be normalized before being +presented to applications (section 4.2.2). + +<P> System identifiers are normalized on output to be relative +to the input document, if that is possible, with the shortest +such relative URI. All other URIs must be absolute. Any +hash mark and fragment ID, if erroneously present on input, are +removed. Any non-ASCII characters in the URI must be escaped +as specified in the XML specification (section 4.2.2). + +<PRE> +CanonXML2 ::= DTD2? CanonXML +DTD2 ::= '<!DOCTYPE ' name ' [' #xA Notations? ']>' #xA +Notations ::= ( '<!NOTATION ' Name ' + (('PUBLIC ' PubidLiteral ' ' SystemLiteral) + |('PUBLIC ' PubidLiteral) + |('SYSTEM ' SystemLiteral)) + '>' #xA )* +PubidLiteral ::= "'" PubidChar* "'" +SystemLiteral ::= "'" [^']* "'" + +</PRE> + +<P> The requirement of this canonical form differs slightly from that +of the XML specification itself in that all declared notations +must be listed, not just those which were referred to. +<em>Should that change? SAX supports it easily.</em> + + +<A NAME=cxml3> +<H2>Third XML Canonical Form</H2> +</A> +<P> This canonical form is identical to the second form, with +two significant exceptions reflecting requirements placed on +validating XML processors:<UL> + + <LI> They are required to report "white space appearing in + element content" (section 2.10). Ignorable whitespace is + not represented in this canonical form. + + <LI> They must report the external identifiers and notation name + for unparsed entities appearing as attribute values (section 4.4.6). + Such entities are declared in this canonical form, in lexicographic + order. + + </UL> + +<P> This builds on the grammar productions included above. + +<PRE> +CanonXML3 ::= DTD3? CanonXML +DTD3 ::= '<!DOCTYPE ' name ' [' #xA Notations? Unparsed? ']>' #xA +Unparsed ::= ( '<!ENTITY ' Name ' + (('PUBLIC ' PubidLiteral ' ' SystemLiteral) + |('SYSTEM ' SystemLiteral)) + 'NDATA ' Name + '>' #xA )* +</PRE> + +<P> The requirement of this canonical form differs slightly from that +of the XML specification itself in that all declared unparsed entities +must be listed, not just those which were referred to. +<em>Should that change? SAX supports it easily.</em> + +<P> +<ADDRESS> +<A HREF="mailto:xml-feedback@java.sun.com">xml-feedback@java.sun.com</A> +</ADDRESS> + +</BODY> +</HTML> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Entries b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Entries new file mode 100644 index 0000000..081cd42 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Entries @@ -0,0 +1,76 @@ +/attr01.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr02.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr03.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr04.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr05.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr06.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr07.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr08.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr09.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr10.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr11.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/attr12.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/attr13.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr14.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr15.xml/1.2/Thu Feb 7 19:44:41 2002// +/attr16.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd01.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd02.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd03.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd06.xml/1.2/Thu Feb 7 19:44:41 2002// +/el01.xml/1.2/Thu Feb 7 19:44:41 2002// +/el02.xml/1.2/Thu Feb 7 19:44:41 2002// +/el03.xml/1.2/Thu Feb 7 19:44:41 2002// +/el04.xml/1.2/Thu Feb 7 19:44:41 2002// +/el05.xml/1.2/Thu Feb 7 19:44:41 2002// +/el06.xml/1.2/Thu Feb 7 19:44:41 2002// +/empty.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/id01.xml/1.2/Thu Feb 7 19:44:41 2002// +/id02.xml/1.2/Thu Feb 7 19:44:41 2002// +/id03.xml/1.2/Thu Feb 7 19:44:41 2002// +/id04.xml/1.2/Thu Feb 7 19:44:41 2002// +/id05.xml/1.2/Thu Feb 7 19:44:41 2002// +/id06.xml/1.2/Thu Feb 7 19:44:41 2002// +/id07.xml/1.2/Thu Feb 7 19:44:41 2002// +/id08.xml/1.2/Thu Feb 7 19:44:41 2002// +/id09.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa01.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa02.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa04.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa05.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa06.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa07.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa08.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa09.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa10.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa11.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa12.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa13.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa14.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional01.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional02.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional03.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional04.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional05.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional06.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional07.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional08.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional09.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional10.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional11.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional12.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional13.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional14.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional20.xml/1.3/Wed May 1 18:03:37 2002// +/optional21.xml/1.3/Wed May 1 18:03:37 2002// +/optional22.xml/1.3/Wed May 1 18:03:37 2002// +/optional23.xml/1.3/Wed May 1 18:03:37 2002// +/optional24.xml/1.3/Wed May 1 18:03:37 2002// +/optional25.xml/1.3/Wed May 1 18:03:37 2002// +/required00.xml/1.2/Thu Feb 7 19:44:41 2002// +/required01.xml/1.2/Thu Feb 7 19:44:41 2002// +/required02.xml/1.2/Thu Feb 7 19:44:41 2002// +/root.xml/1.2/Thu Feb 7 19:44:41 2002// +/utf16b.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/utf16l.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +D diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Repository b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Repository new file mode 100644 index 0000000..f180fae --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/sun/invalid diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Root b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr01.xml new file mode 100644 index 0000000..cb2b4e6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr01.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + affiliated ENTITY #REQUIRED + > + <!-- tests the "entity name" VC ... the "entity declared" clause, + as applied to attributes of type ENTITY --> +]> +<root affiliated="food"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr02.xml new file mode 100644 index 0000000..b9f2461 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr02.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + affiliated ENTITIES #REQUIRED + > + <!-- tests the "entity name" VC ... the "entity declared" clause, + as applied to attributes of type ENTITIES --> +<!NOTATION fruit + PUBLIC "-//International Grocery Consortium//Edible//Healthy//EN"> +<!ENTITY apple SYSTEM "http://www.apple.com" NDATA fruit> +]> +<root affiliated="apple apple food"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr03.xml new file mode 100644 index 0000000..b84d1f1 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr03.xml @@ -0,0 +1,17 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + type NOTATION (fruit | vegetable) #REQUIRED + > +<!NOTATION fruit + PUBLIC "-//International Grocery Consortium//Edible//Healthy//EN"> +<!NOTATION vegetable + PUBLIC "-//International Grocery Consortium//Edible//Yucky//EN"> +<!NOTATION candy + PUBLIC "-//International Grocery Consortium//Edible//Yummy//EN"> + + <!-- tests the 'must match one of the names included in the + declaration' part of the "Notation Attributes" VC --> +]> +<root type="candy"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr04.xml new file mode 100644 index 0000000..cbe62af --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr04.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + type NOTATION (fruit | vegetable) #REQUIRED + > +<!NOTATION fruit + PUBLIC "-//International Grocery Consortium//Edible//Healthy//EN"> + + <!-- tests the 'all notation names in the declaration must + be declared' part of the "Notation Attributes" VC --> +]> +<root type="fruit"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr05.xml new file mode 100644 index 0000000..d459fd9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr05.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + token NMTOKEN #REQUIRED + > + + <!-- tests the "name token' VC for an NMTOKEN value --> +]> +<root token="dev@null"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr06.xml new file mode 100644 index 0000000..f652f33 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr06.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root + token NMTOKEN #REQUIRED + > + + <!-- tests the "name token' VC for an NMTOKENS value --> +]> +<root token="now is the time!?"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr07.xml new file mode 100644 index 0000000..57489b3 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr07.xml @@ -0,0 +1,10 @@ +<!DOCTYPE arbor [ +<!ELEMENT arbor EMPTY> +<!ATTLIST arbor + type (fruit | vegetable) "fruit" + > + <!-- tests the 'must match one of the nmtokens included in the + declaration' part of the "Enumeration" VC --> +]> +<arbor type="money"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr08.xml new file mode 100644 index 0000000..3c59fc5 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr08.xml @@ -0,0 +1,9 @@ +<!DOCTYPE palimpest [ +<!ELEMENT palimpest EMPTY> +<!ATTLIST palimpest + xmlns CDATA #FIXED "http://java.sun.com/historical" + > + <!-- tests the "fixed attribute default" vc --> +]> + +<palimpest xmlns="http://over.the.rainbow.com/somewhere"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr09.xml new file mode 100644 index 0000000..f65f582 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr09.xml @@ -0,0 +1,20 @@ +<!DOCTYPE collection [ + +<!ELEMENT collection ANY> + +<!ELEMENT identifier EMPTY> +<!ATTLIST identifier + value IDREF "42" + > + <!-- tests the "attribute default legal" vc --> + +<!ELEMENT identified EMPTY> +<!ATTLIST identified + id ID #REQUIRED + > +]> + +<collection> + <identifier name="i-am-not-a-number"/> + <identified id="i-am-not-a-number"/> +</collection> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr10.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr10.xml new file mode 100644 index 0000000..04ba586 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr10.xml @@ -0,0 +1,20 @@ +<!DOCTYPE collection [ + +<!ELEMENT collection ANY> + +<!ELEMENT identifier EMPTY> +<!ATTLIST identifier + value IDREFS "i-am-not-a-number 42" + > + <!-- tests the "attribute default legal" vc --> + +<!ELEMENT identified EMPTY> +<!ATTLIST identified + id ID #REQUIRED + > +]> + +<collection> + <identifier name="i-am-not-a-number"/> + <identified id="i-am-not-a-number"/> +</collection> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr11.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr11.xml new file mode 100644 index 0000000..dcefb05 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr11.xml @@ -0,0 +1,15 @@ +<!DOCTYPE reference [
+
+<!ELEMENT reference EMPTY>
+<!ATTLIST reference
+ value ENTITY "2orldbook"
+ >
+ <!-- tests the "attribute default legal" vc -->
+
+<!NOTATION encyclopaedia PUBLIC "-//fooCorp Inc//NOTATION something//EN">
+<!ENTITY brittannica SYSTEM "http://www.eb.com/" NDATA encyclopaedia>
+<!ENTITY worldbook SYSTEM "http://www.worldbook.com">
+
+]>
+
+<reference value="brittannica"/>
diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr12.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr12.xml new file mode 100644 index 0000000..67b83f9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr12.xml @@ -0,0 +1,15 @@ +<!DOCTYPE references [
+
+<!ELEMENT references EMPTY>
+<!ATTLIST references
+ value ENTITIES "brittannica 2orldbook"
+ >
+ <!-- tests the "attribute default legal" vc -->
+
+<!NOTATION encyclopaedia PUBLIC "-//fooCorp Inc//NOTATION something//EN">
+<!ENTITY brittannica SYSTEM "http://www.eb.com/" NDATA encyclopaedia>
+<!ENTITY worldbook SYSTEM "http://www.worldbook.com">
+
+]>
+
+<references value="brittannica"/>
diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr13.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr13.xml new file mode 100644 index 0000000..a2c81f9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr13.xml @@ -0,0 +1,11 @@ +<!DOCTYPE root [ + +<!ELEMENT root EMPTY> +<!ATTLIST root + value NMTOKEN "alpha/beta" + > + <!-- tests the "attribute default legal" vc --> +]> + +<root value="brittannica"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr14.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr14.xml new file mode 100644 index 0000000..0205a02 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr14.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + +<!ELEMENT root EMPTY> +<!ATTLIST root + value NMTOKENS "alpha beta $gamma" + > + <!-- tests the "attribute default legal" vc --> +]> + +<root value="zeta eta iota"/> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr15.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr15.xml new file mode 100644 index 0000000..6ce369f --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr15.xml @@ -0,0 +1,14 @@ +<!DOCTYPE reference [ + +<!ELEMENT reference EMPTY> +<!ATTLIST reference + source NOTATION (brittannica | worldbook) "encarta" + > + <!-- tests the "attribute default legal" vc --> + +<!NOTATION brittannica SYSTEM "http://www.eb.com/"> +<!NOTATION worldbook SYSTEM "http://www.worldbook.com"> + +]> + +<reference source="brittannica"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr16.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr16.xml new file mode 100644 index 0000000..7b77780 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/attr16.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + +<!ELEMENT root EMPTY> +<!ATTLIST root + value (brittannica | worldbook) "encarta" + > + <!-- tests the "attribute default legal" vc --> +]> + +<root value="brittannica"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd01.xml new file mode 100644 index 0000000..f348c16 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd01.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT y (#PCDATA|x|x)*> + <!-- element types can't repeat in mixed content --> + <!ELEMENT root ANY> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd02.xml new file mode 100644 index 0000000..c4868f9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd02.xml @@ -0,0 +1,5 @@ +<!DOCTYPE paper [ +<!ELEMENT paper EMPTY> +<!ENTITY Brittannica SYSTEM "http://www.eb.com" NDATA Encyclopaedia> +]> +<paper/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd03.xml new file mode 100644 index 0000000..db87f99 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd03.xml @@ -0,0 +1,14 @@ +<!DOCTYPE violation [ +<!ELEMENT violation (a,a,a,b)> +<!ELEMENT a EMPTY> +<!ELEMENT b EMPTY> + <!-- tests the "element valid" constraint for content + which doesn't match the declared content model. + (there can be an infinite number of such tests...) + --> +]> +<violation> + <a/> + <a/> + <b/> +</violation> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd06.xml new file mode 100644 index 0000000..29de14c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/dtd06.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ + <!-- reference to undefined PE --> + %undefined; +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el01.xml new file mode 100644 index 0000000..7adb884 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el01.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +]> +<root> <undeclared/> </root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el02.xml new file mode 100644 index 0000000..46453f2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el02.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +]> +<root><root/></root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el03.xml new file mode 100644 index 0000000..ec4fe96 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el03.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root [ +<!ELEMENT root (#PCDATA|root)*> +<!ELEMENT exception (#PCDATA)> +]> +<root>this is ok <exception>this isn't</exception> </root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el04.xml new file mode 100644 index 0000000..58a8579 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el04.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +<!ELEMENT exception (#PCDATA)> +<!ELEMENT exception (#PCDATA)> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el05.xml new file mode 100644 index 0000000..03355e2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el05.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root [ +<!ELEMENT root (#PCDATA|repeat-till-done|repeat-till-done)*> +<!ELEMENT repeat-till-done (#PCDATA)> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el06.xml new file mode 100644 index 0000000..8473a08 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/el06.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> + <!-- in case parsers special-case builtin entities incorrectly --> +]> +<root>&</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/empty.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/empty.xml new file mode 100644 index 0000000..2fc2410 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/empty.xml @@ -0,0 +1,22 @@ +<!--
+ From: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
+
+ I'd be interested in reports from validating parsers wrt the
+ following:
+-->
+
+<!DOCTYPE foo [
+<!ELEMENT foo (a+)>
+<!ENTITY empty ''>
+<!ENTITY space ' '>
+<!ELEMENT a EMPTY>]>
+<foo>
+∅
+<a/>
+&space;
+<a/>
+<![CDATA[]]>
+<a/>
+<![CDATA[ ]]>
+<a/>
+</foo>
diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id01.xml new file mode 100644 index 0000000..b5dc324 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id01.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root SYSTEM "../valid/sa.dtd"> + +<!-- values of type ID must match "name" --> + +<root> + <attributes id="42a"/> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id02.xml new file mode 100644 index 0000000..e0e3576 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id02.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root SYSTEM "../valid/sa.dtd"> + +<!-- a name must not appear more than once as a value of type id --> + +<root> + <attributes id="a42"/> + <attributes id="a42"/> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id03.xml new file mode 100644 index 0000000..7234bd6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id03.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root SYSTEM "../valid/sa.dtd" [ + <!ATTLIST attributes + id2 ID #IMPLIED + > +]> + +<!-- no element type may have more than one ID attribute specified --> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id04.xml new file mode 100644 index 0000000..101f898 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id04.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + <!ATTLIST root + id2 ID "x23" + > +]> + +<!-- an ID attribute must have a declared default + of #IMPLIED or #REQUIRED +--> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id05.xml new file mode 100644 index 0000000..d7c6b7b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id05.xml @@ -0,0 +1,14 @@ +<!DOCTYPE root [ + <!ELEMENT root ANY> + <!ATTLIST root + id2 ID #FIXED "x23" + > +]> + +<!-- an ID attribute must have a declared default + of #IMPLIED or #REQUIRED +--> + +<root/> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id06.xml new file mode 100644 index 0000000..b260121 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id06.xml @@ -0,0 +1,14 @@ +<!DOCTYPE root [ + <!ELEMENT root ANY> + <!ATTLIST root + id ID #IMPLIED + idref IDREF #IMPLIED + > +]> + +<!-- Values of type IDREF must match the name production --> + +<root idref="36d"> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id07.xml new file mode 100644 index 0000000..959cec6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id07.xml @@ -0,0 +1,16 @@ +<!DOCTYPE root [ + <!ELEMENT root ANY> + <!ATTLIST root + id ID #IMPLIED + idref IDREF #IMPLIED + idrefs IDREFS #IMPLIED + > +]> + +<!-- Values of type IDREFS must match the names production --> + +<root idrefs="d36 36d"> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id08.xml new file mode 100644 index 0000000..fddeb7e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id08.xml @@ -0,0 +1,14 @@ +<!DOCTYPE root [ + <!ELEMENT root ANY> + <!ATTLIST root + id ID #IMPLIED + idref IDREF #IMPLIED + > +]> + +<!-- each name must match the value of an id attribute on some element --> + +<root idref="d36d"> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id09.xml new file mode 100644 index 0000000..3f096b4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/id09.xml @@ -0,0 +1,17 @@ +<!DOCTYPE root [ + <!ELEMENT root ANY> + <!ATTLIST root + id ID #IMPLIED + idref IDREF #IMPLIED + idrefs IDREFS #IMPLIED + > +]> + +<!-- each name must match the value of an id attribute on some element --> + +<root idrefs="d36 ee38"> + <root id="d36"/> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa01.xml new file mode 100644 index 0000000..714e544 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa01.xml @@ -0,0 +1,10 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE root SYSTEM "../valid/sa.dtd"> + +<root> + <child> + The whitespace before and after this element keeps + this from being standalone. + </child> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa02.xml new file mode 100644 index 0000000..c8f551c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa02.xml @@ -0,0 +1,31 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!ENTITY internal " number99"> +]> + + <!-- sync with ../valid/not-sa02.xml --> + + <!-- + LOTS of normalized/defaulted attributes + keep this from being standalone + + XXX not the best of tests!! + ... each type of normalization/defaulting + needs separate testing + --> + +<attributes + notation = " nonce " + nmtoken = " this-gets-normalized " + nmtokens = " this
 also gets  normalized " + id = " &internal; " + idref = " &internal; + " + idrefs = " &internal; &internal; &internal;" + entity = " unparsed-1 " + entities = "unparsed-1 + unparsed-2 +" + cdata = "nothing happens to this one!" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa04.xml new file mode 100644 index 0000000..947de49 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa04.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + attribute needs defaulting + --> +]> + +<attributes/> + +<?pi equals three?> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa05.xml new file mode 100644 index 0000000..c0bcd0e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa05.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + TOKEN needs normalization + --> +]> + +<attributes + token = " c " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa06.xml new file mode 100644 index 0000000..75e6b47 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa06.xml @@ -0,0 +1,13 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + NOTATION needs normalization + --> +]> + +<attributes + token = "b" + notation = " nonce " + /> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa07.xml new file mode 100644 index 0000000..df19754 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa07.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + NMTOKEN needs normalization + --> +]> + +<attributes + token = "b" + nmtoken = " this-gets-normalized " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa08.xml new file mode 100644 index 0000000..e07ac59 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa08.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + NMTOKENS needs normalization + --> +]> + +<attributes + token = "b" + nmtokens = " this
 also gets  normalized " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa09.xml new file mode 100644 index 0000000..3fec088 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa09.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + ID needs normalization + --> +]> + +<attributes + token = "b" + id = " cindy " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa10.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa10.xml new file mode 100644 index 0000000..467e6b8 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa10.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + IDREF needs normalization + --> +]> + +<attributes + token = "b" + id = "id43" + idref = " id43 + " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa11.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa11.xml new file mode 100644 index 0000000..ad259c4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa11.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + IDREFS needs normalization + --> +]> + +<attributes + token = "b" + id = "date28" + idrefs = " date28 date28 + date28 " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa12.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa12.xml new file mode 100644 index 0000000..9cd4b87 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa12.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + ENTITY needs normalization + --> +]> + +<attributes + token = "b" + entity = " unparsed-1 " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa13.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa13.xml new file mode 100644 index 0000000..5a3a8cf --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa13.xml @@ -0,0 +1,16 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + ENTITIES needs normalization + --> +]> + +<attributes + token = "b" + entities = " + unparsed-1 + + unparsed-2 + " + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa14.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa14.xml new file mode 100644 index 0000000..f3b3ee2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/not-sa14.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE root SYSTEM "../valid/sa.dtd"> + +<root><![CDATA[ + ]]><child> + The whitespace before and after this element keeps + this from being standalone. (CDATA is just another + way to represent text...) + </child><![CDATA[ +]]></root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional01.xml new file mode 100644 index 0000000..0d03c0f --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional01.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once></once> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional02.xml new file mode 100644 index 0000000..5f66c66 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional02.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once><e/><e/></once> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional03.xml new file mode 100644 index 0000000..35c7ad9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional03.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <twice></twice> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional04.xml new file mode 100644 index 0000000..8614e24 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional04.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <twice><e/><e/><e/></twice> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional05.xml new file mode 100644 index 0000000..5b6669a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional05.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-a></once-or-twice-a> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional06.xml new file mode 100644 index 0000000..44d8151 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional06.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-b></once-or-twice-b> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional07.xml new file mode 100644 index 0000000..8745675 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional07.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-c></once-or-twice-c> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional08.xml new file mode 100644 index 0000000..fb6c545 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional08.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-d></once-or-twice-d> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional09.xml new file mode 100644 index 0000000..91bb7f0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional09.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-e></once-or-twice-e> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional10.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional10.xml new file mode 100644 index 0000000..3a9703d --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional10.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-a><e/><e/><e/></once-or-twice-a> +</root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional11.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional11.xml new file mode 100644 index 0000000..7aa6a08 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional11.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-b><e/><e/><e/></once-or-twice-b> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional12.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional12.xml new file mode 100644 index 0000000..779c5e2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional12.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-c><e/><e/><e/></once-or-twice-c> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional13.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional13.xml new file mode 100644 index 0000000..5354404 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional13.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-d><e/><e/><e/></once-or-twice-d> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional14.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional14.xml new file mode 100644 index 0000000..b6588df --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional14.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-e><e/><e/><e/></once-or-twice-e> +</root> + + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional20.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional20.xml new file mode 100644 index 0000000..24f454e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional20.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-a></once-or-twice-a> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional21.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional21.xml new file mode 100644 index 0000000..af57ff3 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional21.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-b></once-or-twice-b> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional22.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional22.xml new file mode 100644 index 0000000..ae9a33c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional22.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-c></once-or-twice-c> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional23.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional23.xml new file mode 100644 index 0000000..75edc24 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional23.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-d></once-or-twice-d> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional24.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional24.xml new file mode 100644 index 0000000..c323309 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional24.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-e></once-or-twice-e> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional25.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional25.xml new file mode 100644 index 0000000..1b0eeb8 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/optional25.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> +<root> + <once-or-twice-e>No text allowed!</once-or-twice-e> +</root> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required00.xml new file mode 100644 index 0000000..e673fdc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required00.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!ATTLIST root + req CDATA #REQUIRED + > +]> + +<root/> + +<!-- doesn't include required 'req' attribute --> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required01.xml new file mode 100644 index 0000000..290d369 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required01.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> +]> + +<root xml:space='preserve'/> + + <!-- all attributes must be declared --> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required02.xml new file mode 100644 index 0000000..480f62a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/required02.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> +]> + +<root xml:lang='en'/> + + <!-- all attributes must be declared --> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/root.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/root.xml new file mode 100644 index 0000000..6089657 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/root.xml @@ -0,0 +1,7 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd"> + +<!-- the name in the dtd must match the element type of the root element --> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16b.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16b.xml Binary files differnew file mode 100644 index 0000000..52c7e2d --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16b.xml diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16l.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16l.xml Binary files differnew file mode 100644 index 0000000..2cad40a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/invalid/utf16l.xml diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Entries b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Entries new file mode 100644 index 0000000..1740929 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Entries @@ -0,0 +1,61 @@ +/attlist01.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist02.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist03.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist04.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist05.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist06.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist07.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist08.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist09.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist10.xml/1.2/Thu Feb 7 19:44:41 2002// +/attlist11.xml/1.2/Thu Feb 7 19:44:41 2002// +/cond.dtd/1.2/Thu Feb 7 19:44:41 2002// +/cond01.xml/1.2/Thu Feb 7 19:44:41 2002// +/cond02.xml/1.2/Thu Feb 7 19:44:41 2002// +/content01.xml/1.2/Thu Feb 7 19:44:41 2002// +/content02.xml/1.2/Thu Feb 7 19:44:41 2002// +/content03.xml/1.2/Thu Feb 7 19:44:41 2002// +/decl01.ent/1.3/Tue Sep 30 15:08:39 2003// +/decl01.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd00.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd01.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd02.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd03.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd04.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd05.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd07.dtd/1.2/Thu Feb 7 19:44:41 2002// +/dtd07.xml/1.2/Thu Feb 7 19:44:41 2002// +/element00.xml/1.2/Thu Feb 7 19:44:41 2002// +/element01.xml/1.2/Thu Feb 7 19:44:41 2002// +/element02.xml/1.2/Thu Feb 7 19:44:41 2002// +/element03.xml/1.2/Thu Feb 7 19:44:41 2002// +/element04.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding01.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding02.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding03.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding04.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding05.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding06.xml/1.2/Thu Feb 7 19:44:41 2002// +/encoding07.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa03.xml/1.1/Thu May 16 14:30:27 2002// +/pi.xml/1.2/Thu Feb 7 19:44:41 2002// +/pubid01.xml/1.2/Thu Feb 7 19:44:41 2002// +/pubid02.xml/1.2/Thu Feb 7 19:44:41 2002// +/pubid03.xml/1.2/Thu Feb 7 19:44:41 2002// +/pubid04.xml/1.2/Thu Feb 7 19:44:41 2002// +/pubid05.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml01.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml02.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml03.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml04.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml05.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml06.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml07.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml08.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml09.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml10.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml11.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml12.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml13.xml/1.2/Thu Feb 7 19:44:41 2002// +/uri01.xml/1.2/Thu Feb 7 19:44:41 2002// +D diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Repository b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Repository new file mode 100644 index 0000000..95984c5 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/sun/not-wf diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Root b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist01.xml new file mode 100644 index 0000000..9b25d73 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist01.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + number NUTOKEN "1" + > + +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist02.xml new file mode 100644 index 0000000..65405ca --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist02.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + number NUTOKENS "1 2 3" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist03.xml new file mode 100644 index 0000000..a7174c9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist03.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + choice (a,b,c) "a" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist04.xml new file mode 100644 index 0000000..f45d656 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist04.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + number NUMBER "1" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist05.xml new file mode 100644 index 0000000..1705e80 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist05.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + numbers NUMBERS "1 2 3 4" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist06.xml new file mode 100644 index 0000000..84444b4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist06.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + number NAME "Elvis" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist07.xml new file mode 100644 index 0000000..3dd94e5 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist07.xml @@ -0,0 +1,13 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute types --> + + <!ATTLIST root + number NAMES "The King" + > + +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist08.xml new file mode 100644 index 0000000..c9e54c6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist08.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: illegal attribute default --> + + <!ATTLIST root + language CDATA #CURRENT + > + +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist09.xml new file mode 100644 index 0000000..a1faf84 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist09.xml @@ -0,0 +1,11 @@ +<!DOCTYPE root [ + <!-- SGML-ism: illegal attribute default --> + + <!ATTLIST root + language CDATA #CONREF + > + +]> + +<root language="Dutch"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist10.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist10.xml new file mode 100644 index 0000000..d690200 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist10.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +<!ATTLIST root att1 CDATA #IMPLIED> +<!ATTLIST root att2 CDATA #IMPLIED> +]> +<root att1="value1"att2="value2"> + <!-- whitespace required between attributes --> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist11.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist11.xml new file mode 100644 index 0000000..67de117 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/attlist11.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +<!ATTLIST root att1 CDATA #IMPLIED> +<!ATTLIST root att2 CDATA #IMPLIED> +]> +<root att1="value1"att2="value2"/> + <!-- whitespace required between attributes --> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond.dtd new file mode 100644 index 0000000..4b43ef7 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond.dtd @@ -0,0 +1,3 @@ +<!-- test conditional sections --> +<!ENTITY % MAYBE "IGNORE"> +<![%MAYBE;[ <!ENTITY root EMTPY> ]]> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond01.xml new file mode 100644 index 0000000..5028d46 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond01.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root SYSTEM "cond.dtd" [ + <!ENTITY % MAYBE "CDATA"> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond02.xml new file mode 100644 index 0000000..ce4e191 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/cond02.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root SYSTEM "cond.dtd" [ + <!ENTITY % MAYBE ""> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content01.xml new file mode 100644 index 0000000..85c27dc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content01.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root [ + <!-- no whitespace before '?', '*', '+' --> + <!ELEMENT root ((root) ?)> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content02.xml new file mode 100644 index 0000000..1086148 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content02.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ + <!-- no whitespace before '?', '*', '+' --> + <!ELEMENT root ((root) *)> +]> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content03.xml new file mode 100644 index 0000000..c4fdff1 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/content03.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ + <!-- no whitespace before '?', '*', '+' --> + <!ELEMENT root (root +)> +]> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.ent b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.ent new file mode 100644 index 0000000..65059fd --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.ent @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!-- only documents may have standalone decls --> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.xml new file mode 100644 index 0000000..ee57cb4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/decl01.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!ENTITY % ent01 SYSTEM "decl01.ent"> + + <!-- the entity is an illegal PE --> + %ent01; +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd00.xml new file mode 100644 index 0000000..5c3e9aa --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd00.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root (foo, bar? foo)> + <!-- comma omitted --> + <!ELEMENT foo EMPTY> + <!ELEMENT bar EMPTY> +]> + +<root> <foo/> <foo/> </root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd01.xml new file mode 100644 index 0000000..3af805c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd01.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root (foo, bar? | foo)> + <!-- comma swapped for vertical bar --> + <!ELEMENT foo EMPTY> + <!ELEMENT bar EMPTY> +]> + +<root> <foo/> <foo/> </root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd02.xml new file mode 100644 index 0000000..da2c639 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd02.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!-- correct PE ref syntax --> + <!ENTITY % foo "<!ATTLIST root>"> + % foo; +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd03.xml new file mode 100644 index 0000000..6f5234a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd03.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!-- correct PE ref syntax --> + <!ENTITY % foo "<!ATTLIST root>"> + %foo + ; +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd04.xml new file mode 100644 index 0000000..4acb0c2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd04.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!-- PUBLIC id must be quoted --> + <!ENTITY foo PUBLIC -//BadCorp//DTD-foo-1.0//EN "elvis.ent"> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd05.xml new file mode 100644 index 0000000..2d4c8cf --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd05.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!-- SYSTEM id must be quoted --> + <!ENTITY foo SYSTEM elvis.ent> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.dtd new file mode 100644 index 0000000..7acb91f --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.dtd @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<!-- + "encoding=..." is mandatory in text declarations. + + All external entities (parameter, general) have optional text + declarations; only the document entity may omit this declaration. +--> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.xml new file mode 100644 index 0000000..921ed63 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/dtd07.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root SYSTEM "dtd07.dtd" [ + <!ELEMENT root EMPTY> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element00.xml new file mode 100644 index 0000000..4d7a011 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element00.xml @@ -0,0 +1,3 @@ +<root> + Incomplete end tag. +</ro
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element01.xml new file mode 100644 index 0000000..c1796cc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element01.xml @@ -0,0 +1,3 @@ +<root> + Incomplete end tag. +</root
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element02.xml new file mode 100644 index 0000000..da038dd --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element02.xml @@ -0,0 +1,4 @@ +<!DOCTYPE html [ <!ELEMENT html ANY> ]> +<html> + <% @ LANGUAGE="VBSCRIPT" %> +</html> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element03.xml new file mode 100644 index 0000000..eb0c93a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element03.xml @@ -0,0 +1,5 @@ +<!DOCTYPE html [ <!ELEMENT html ANY> ]> +<html> + <% document.println ("hello, world"); %> +</html> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element04.xml new file mode 100644 index 0000000..7f639c2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/element04.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root [ <!ELEMENT root ANY> ]> +<root> + <!ELEMENT foo EMPTY> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding01.xml new file mode 100644 index 0000000..5ef3915 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding01.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding=" utf-8"?> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding02.xml new file mode 100644 index 0000000..b6ebbb4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding02.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="a/b"?> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding03.xml new file mode 100644 index 0000000..be6cc1a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding03.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="just)word"?> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding04.xml new file mode 100644 index 0000000..dbecbcd --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding04.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf:8"?> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding05.xml new file mode 100644 index 0000000..94edbfb --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding05.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="@import(sys-encoding)"?> +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding06.xml new file mode 100644 index 0000000..ee1a699 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding06.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="XYZ+999"?> + +<!-- WF ... but illegal encoding name, also a fatal error --> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding07.xml new file mode 100644 index 0000000..cd225c5 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/encoding07.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- + reusing this entity; it's got no markup decls, + so it's legal except for a missing "encoding=...". + --> + <!ENTITY empty SYSTEM "dtd07.dtd"> +]> +<root>∅</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/not-sa03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/not-sa03.xml new file mode 100644 index 0000000..6f1fb4b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/not-sa03.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!-- + External entity ref + --> +]> + +<attributes + token = "b" + id = "external-&number;" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pi.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pi.xml new file mode 100644 index 0000000..c50a0f0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pi.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!-- space before PI data and ?> --> +<?bad-pi+?> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid01.xml new file mode 100644 index 0000000..4df57fd --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid01.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- illegal public ID characters --> + + <!ENTITY e PUBLIC "this isn't allowed" "ignored"> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid02.xml new file mode 100644 index 0000000..c1a0da1 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid02.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- illegal public ID characters --> + + <!ENTITY e PUBLIC "<illegal>" "ignored"> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid03.xml new file mode 100644 index 0000000..55b074c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid03.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- illegal public ID characters --> + + <!ENTITY e PUBLIC "[illegal]" "ignored"> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid04.xml new file mode 100644 index 0000000..fd268aa --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid04.xml @@ -0,0 +1,10 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- illegal public ID characters --> + + <!ENTITY e PUBLIC "{ illegal }" "ignored"> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid05.xml new file mode 100644 index 0000000..a0e8bdd --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/pubid05.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + + <!-- SGML-ism: publid ID without system ID --> + + <!ENTITY e PUBLIC "this is not allowed"> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml01.xml new file mode 100644 index 0000000..83fa98c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml01.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + + <!-- SGML-ism: omitted end tag --> +]> + +<root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml02.xml new file mode 100644 index 0000000..a22d740 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml02.xml @@ -0,0 +1,4 @@ + <?xml version="1.0"?> + <!-- SGML-ism: XML PI not at beginning --> +<!DOCTYPE root [ <!ELEMENT root EMPTY> ]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml03.xml new file mode 100644 index 0000000..78b4aa8 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml03.xml @@ -0,0 +1,4 @@ +<!DOCTYPE root [ <!ELEMENT root EMPTY> ]> + + <!-- SGML-ism: -- inside comment --> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml04.xml new file mode 100644 index 0000000..36f863c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml04.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + <!-- SGML-ism: multiple attlist types --> + + <!ELEMENT root EMPTY> + <!ELEMENT branch EMPTY> + + <!ATTLIST (root|branch) + TreeType CDATA #REQUIRED + > +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml05.xml new file mode 100644 index 0000000..9021795 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml05.xml @@ -0,0 +1,12 @@ +<!DOCTYPE root [ + <!-- SGML-ism: multiple element types --> + + <!ELEMENT root EMPTY> + <!ELEMENT leaves EMPTY> + <!ELEMENT branch EMPTY> + + <!ELEMENT (bush|tree) (root,leaves,branch)> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml06.xml new file mode 100644 index 0000000..8ce6b55 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml06.xml @@ -0,0 +1,11 @@ +<!DOCTYPE root [ + <!-- Web-SGML-ism: global attlist types --> + + <!ELEMENT root EMPTY> + + <!ATTLIST #ALL + TreeType CDATA #REQUIRED + > +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml07.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml07.xml new file mode 100644 index 0000000..4622b83 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml07.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ + <!-- SGML-ism: omitted tag minimzation spec --> + <!ELEMENT root - o EMPTY> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml08.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml08.xml new file mode 100644 index 0000000..5cf457c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml08.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!-- SGML-ism: omitted tag minimzation spec --> + <!ELEMENT root - - EMPTY> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml09.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml09.xml new file mode 100644 index 0000000..d943ce9a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml09.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!-- SGML-ism: exception spec --> + + <!ELEMENT footnote (para*) -footnote> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml10.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml10.xml new file mode 100644 index 0000000..ba03a03 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml10.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!-- SGML-ism: exception spec --> + <!ELEMENT section (header,(para|section))* +(annotation|todo)> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml11.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml11.xml new file mode 100644 index 0000000..6d8e4a2 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml11.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!-- SGML-ism: CDATA content type --> + <!ELEMENT ROOT CDATA> +]> + +<root/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml12.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml12.xml new file mode 100644 index 0000000..e2f0b2e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml12.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!-- SGML-ism: RCDATA content type --> + <!ELEMENT ROOT RCDATA> +]> + +<root/> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml13.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml13.xml new file mode 100644 index 0000000..97e9702 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/sgml13.xml @@ -0,0 +1,11 @@ +<!DOCTYPE root [ + <!-- SGML-ism: unordered content type --> + <!ELEMENT ROOT (a & b & c)> + <!ELEMENT a EMPTY> + <!ELEMENT b EMPTY> + <!ELEMENT c EMPTY> +]> + +<root><b/><c/><a/></root> + + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/uri01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/uri01.xml new file mode 100644 index 0000000..c15ceb4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/not-wf/uri01.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!-- URI fragments disallowed --> +<!ENTITY foo SYSTEM "foo#bar"> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-error.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-error.xml new file mode 100644 index 0000000..31656dc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-error.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + @(#)error.xml 1.6 98/12/29 + Copyright 1998 by Sun Microsystems, Inc. + All Rights Reserved. +--> + +<TEST URI="not-wf/uri01.xml" ID="uri01" TYPE="error" SECTIONS="4.2.2 [75]"> + SYSTEM ids may not have URI fragments</TEST> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-invalid.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-invalid.xml new file mode 100644 index 0000000..2546405 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-invalid.xml @@ -0,0 +1,359 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + @(#)invalid.xml 1.9 99/01/07 + Copyright 1998 by Sun Microsystems, Inc. + All Rights Reserved. +--> +<TEST URI="invalid/dtd01.xml" ID="inv-dtd01" SECTIONS="3.2.2" TYPE="invalid"> + Tests the No Duplicate Types VC</TEST> + +<TEST URI="invalid/dtd02.xml" ID="inv-dtd02" SECTIONS="4.2.2" TYPE="invalid"> + Tests the "Notation Declared" VC by using an undeclared + notation name.</TEST> + +<TEST URI="invalid/dtd03.xml" ID="inv-dtd03" SECTIONS="3" TYPE="invalid"> + Tests the "Element Valid" VC (clause 2) + by omitting a required element. </TEST> + +<TEST URI="invalid/el01.xml" ID="el01" SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 4) + by including an undeclared child element. </TEST> + +<TEST URI="invalid/el02.xml" ID="el02" SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 1) + by including elements in an EMPTY content model. </TEST> + +<TEST URI="invalid/el03.xml" ID="el03" SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 3) by including a child element + not permitted by a mixed content model. </TEST> + +<TEST URI="invalid/el04.xml" ID="el04" SECTIONS="3.2" TYPE="invalid"> + Tests the Unique Element Type Declaration VC. </TEST> + +<TEST URI="invalid/el05.xml" ID="el05" SECTIONS="3.2.2" TYPE="invalid"> + Tests the No Duplicate Types VC. </TEST> + +<TEST URI="invalid/el06.xml" ID="el06" SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 1), + using one of the predefined internal entities + inside an EMPTY content model.</TEST> + +<TEST URI="invalid/id01.xml" ID="id01" ENTITIES="parameter" SECTIONS="3.3.1" TYPE="invalid"> + Tests the ID (is a Name) VC</TEST> + +<TEST URI="invalid/id02.xml" ID="id02" ENTITIES="parameter" SECTIONS="3.3.1" TYPE="invalid"> + Tests the ID (appears once) VC</TEST> + +<TEST URI="invalid/id03.xml" ID="id03" ENTITIES="parameter" SECTIONS="3.3.1" TYPE="invalid"> + Tests the One ID per Element Type VC</TEST> + +<TEST URI="invalid/id04.xml" ID="id04" SECTIONS="3.3.1" TYPE="invalid"> + Tests the ID Attribute Default VC</TEST> + +<TEST URI="invalid/id05.xml" ID="id05" SECTIONS="3.3.1" TYPE="invalid"> + Tests the ID Attribute Default VC</TEST> + +<TEST URI="invalid/id06.xml" ID="id06" SECTIONS="3.3.1" TYPE="invalid"> + Tests the IDREF (is a Name) VC</TEST> + +<TEST URI="invalid/id07.xml" ID="id07" SECTIONS="3.3.1" TYPE="invalid"> + Tests the IDREFS (is a Names) VC</TEST> + +<TEST URI="invalid/id08.xml" ID="id08" SECTIONS="3.3.1" TYPE="invalid"> + Tests the IDREF (matches an ID) VC</TEST> + +<TEST URI="invalid/id09.xml" ID="id09" SECTIONS="3.3.1" TYPE="invalid"> + Tests the IDREF (IDREFS matches an ID) VC</TEST> + +<TEST URI="invalid/not-sa01.xml" ID="inv-not-sa01" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + optional whitespace causes a validity error.</TEST> + +<TEST URI="invalid/not-sa02.xml" ID="inv-not-sa02" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + attributes needing normalization cause a validity error.</TEST> + +<TEST URI="invalid/not-sa04.xml" ID="inv-not-sa04" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + attributes needing defaulting cause a validity error.</TEST> + +<TEST URI="invalid/not-sa05.xml" ID="inv-not-sa05" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + a token attribute that needs normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa06.xml" ID="inv-not-sa06" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + a NOTATION attribute that needs normalization + causes a validity error.</TEST> + +<TEST URI="invalid/not-sa07.xml" ID="inv-not-sa07" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an NMTOKEN attribute needing normalization + causes a validity error.</TEST> + +<TEST URI="invalid/not-sa08.xml" ID="inv-not-sa08" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an NMTOKENS attribute needing normalization + causes a validity error.</TEST> + +<TEST URI="invalid/not-sa09.xml" ID="inv-not-sa09" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an ID attribute needing normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa10.xml" ID="inv-not-sa10" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an IDREF attribute needing normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa11.xml" ID="inv-not-sa11" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an IDREFS attribute needing normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa12.xml" ID="inv-not-sa12" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an ENTITY attribute needing normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa13.xml" ID="inv-not-sa13" ENTITIES="parameter" + SECTIONS="2.9" TYPE="invalid"> + Tests the Standalone Document Declaration VC, ensuring that + an ENTITIES attribute needing normalization causes a validity error.</TEST> + +<TEST URI="invalid/not-sa14.xml" ID="inv-not-sa14" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + CDATA sections containing only whitespace do not match the nonterminal S, and cannot + appear in these positions.</TEST> + +<TEST URI="invalid/optional01.xml" ID="optional01" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing no children where + one is required.</TEST> + +<TEST URI="invalid/optional02.xml" ID="optional02" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + two children where one is required.</TEST> + +<TEST URI="invalid/optional03.xml" ID="optional03" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where two are required.</TEST> + +<TEST URI="invalid/optional04.xml" ID="optional04" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where two are required.</TEST> + +<TEST URI="invalid/optional05.xml" ID="optional05" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or two are + required (one construction of that model).</TEST> + +<TEST URI="invalid/optional06.xml" ID="optional06" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or two are + required (a second construction of that model).</TEST> + +<TEST URI="invalid/optional07.xml" ID="optional07" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or two are + required (a third construction of that model).</TEST> + +<TEST URI="invalid/optional08.xml" ID="optional08" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or two are + required (a fourth construction of that model).</TEST> + +<TEST URI="invalid/optional09.xml" ID="optional09" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or two are + required (a fifth construction of that model).</TEST> + +<TEST URI="invalid/optional10.xml" ID="optional10" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where one or two are + required (a basic construction of that model).</TEST> + +<TEST URI="invalid/optional11.xml" ID="optional11" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where one or two are + required (a second construction of that model).</TEST> + +<TEST URI="invalid/optional12.xml" ID="optional12" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where one or two are + required (a third construction of that model).</TEST> + +<TEST URI="invalid/optional13.xml" ID="optional13" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where one or two are + required (a fourth construction of that model).</TEST> + +<TEST URI="invalid/optional14.xml" ID="optional14" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + three children where one or two are + required (a fifth construction of that model).</TEST> + +<TEST URI="invalid/optional20.xml" ID="optional20" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or more are + required (a sixth construction of that model).</TEST> + +<TEST URI="invalid/optional21.xml" ID="optional21" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or more are + required (a seventh construction of that model).</TEST> + +<TEST URI="invalid/optional22.xml" ID="optional22" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or more are + required (an eigth construction of that model).</TEST> + +<TEST URI="invalid/optional23.xml" ID="optional23" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or more are + required (a ninth construction of that model).</TEST> + +<TEST URI="invalid/optional24.xml" ID="optional24" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + no children where one or more are + required (a tenth construction of that model).</TEST> + +<TEST URI="invalid/optional25.xml" ID="optional25" ENTITIES="parameter" + SECTIONS="3" TYPE="invalid"> + Tests the Element Valid VC (clause 2) for one + instance of "children" content model, providing + text content where one or more elements are + required.</TEST> + +<TEST URI="invalid/required00.xml" ID="inv-required00" + SECTIONS="3.3.2" TYPE="invalid"> + Tests the Required Attribute VC.</TEST> + +<TEST URI="invalid/required01.xml" ID="inv-required01" + SECTIONS="3.1 2.10" TYPE="invalid"> + Tests the Attribute Value Type (declared) + VC for the xml:space attribute</TEST> + +<TEST URI="invalid/required02.xml" ID="inv-required02" + SECTIONS="3.1 2.12" TYPE="invalid"> + Tests the Attribute Value Type (declared) + VC for the xml:lang attribute</TEST> + +<TEST URI="invalid/root.xml" ID="root" ENTITIES="parameter" SECTIONS="2.8" TYPE="invalid"> + Tests the Root Element Type VC</TEST> + +<TEST TYPE="invalid" URI="invalid/attr01.xml" ID="attr01" SECTIONS="3.3.1"> + Tests the "Entity Name" VC for the ENTITY attribute type.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr02.xml" ID="attr02" SECTIONS="3.3.1"> + Tests the "Entity Name" VC for the ENTITIES attribute type.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr03.xml" ID="attr03" SECTIONS="3.3.1"> + Tests the "Notation Attributes" VC for the + NOTATION attribute type, first clause: value must be one + of the ones that's declared.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr04.xml" ID="attr04" SECTIONS="3.3.1"> + Tests the "Notation Attributes" VC for the + NOTATION attribute type, second clause: the names in the + declaration must all be declared.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr05.xml" ID="attr05" SECTIONS="3.3.1"> + Tests the "Name Token" VC for the NMTOKEN attribute type.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr06.xml" ID="attr06" SECTIONS="3.3.1"> + Tests the "Name Token" VC for the NMTOKENS attribute type.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr07.xml" ID="attr07" SECTIONS="3.3.1"> + Tests the "Enumeration" VC by providing + a value which wasn't one of the choices.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr08.xml" ID="attr08" SECTIONS="3.3.2"> + Tests the "Fixed Attribute Default" VC by + providing the wrong value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr09.xml" ID="attr09" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal IDREF value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr10.xml" ID="attr10" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal IDREFS value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr11.xml" ID="attr11" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal ENTITY value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr12.xml" ID="attr12" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal ENTITIES value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr13.xml" ID="attr13" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal NMTOKEN value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr14.xml" ID="attr14" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal NMTOKENS value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr15.xml" ID="attr15" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal NOTATIONS value.</TEST> + +<TEST TYPE="invalid" URI="invalid/attr16.xml" ID="attr16" SECTIONS="3.3.2"> + Tests the "Attribute Default Legal" VC by + providing an illegal enumeration value.</TEST> + +<TEST URI="invalid/utf16b.xml" ID="utf16b" SECTIONS="4.3.3 2.8" TYPE="invalid"> + Tests reading an invalid "big endian" UTF-16 document</TEST> + +<TEST URI="invalid/utf16l.xml" ID="utf16l" SECTIONS="4.3.3 2.8" TYPE="invalid"> + Tests reading an invalid "little endian" UTF-16 document</TEST> + +<TEST URI="invalid/empty.xml" ID="empty" TYPE="invalid" SECTIONS="2.4 2.7 [18] 3"> + CDATA section containing only white space does not match the nonterminal S, and cannot + appear in these positions. </TEST> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-not-wf.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-not-wf.xml new file mode 100644 index 0000000..1203bc0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-not-wf.xml @@ -0,0 +1,179 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + @(#)not-wf.xml 1.6 98/12/29 + Copyright 1998 by Sun Microsystems, Inc. + All Rights Reserved. +--> +<TEST URI="not-wf/not-sa03.xml" ID="not-wf-sa03" ENTITIES="parameter" + SECTIONS="2.9" TYPE="not-wf"> + Tests the Entity Declared WFC, ensuring that + a reference to externally defined entity causes a well-formedness error.</TEST> +<TEST ID="attlist01" URI="not-wf/attlist01.xml" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NUTOKEN is not allowed.</TEST> + +<TEST ID="attlist02" URI="not-wf/attlist02.xml" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NUTOKENS attribute type is not allowed.</TEST> + +<TEST ID="attlist03" URI="not-wf/attlist03.xml" TYPE="not-wf" SECTIONS="3.3.1 [59]"> + Comma doesn't separate enumerations, unlike in SGML.</TEST> + +<TEST ID="attlist04" URI="not-wf/attlist04.xml" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NUMBER attribute type is not allowed.</TEST> + +<TEST ID="attlist05" URI="not-wf/attlist05.xml" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NUMBERS attribute type is not allowed.</TEST> + +<TEST ID="attlist06" URI="not-wf/attlist06.xml" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NAME attribute type is not allowed.</TEST> + +<TEST URI="not-wf/attlist07.xml" ID="attlist07" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's NAMES attribute type is not allowed.</TEST> + +<TEST URI="not-wf/attlist08.xml" ID="attlist08" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's #CURRENT is not allowed.</TEST> + +<TEST URI="not-wf/attlist09.xml" ID="attlist09" TYPE="not-wf" SECTIONS="3.3.1 [56]"> + SGML's #CONREF is not allowed.</TEST> + +<TEST URI="not-wf/attlist10.xml" ID="attlist10" TYPE="not-wf" SECTIONS="3.1 [40]"> + Whitespace required between attributes</TEST> + +<TEST URI="not-wf/attlist11.xml" ID="attlist11" TYPE="not-wf" SECTIONS="3.1 [44]"> + Whitespace required between attributes</TEST> + +<TEST URI="not-wf/cond01.xml" ID="cond01" TYPE="not-wf" SECTIONS="3.4 [61]" ENTITIES="parameter"> + Only INCLUDE and IGNORE are conditional section keywords</TEST> + +<TEST URI="not-wf/cond02.xml" ID="cond02" TYPE="not-wf" SECTIONS="3.4 [61]" ENTITIES="parameter"> + Must have keyword in conditional sections</TEST> + +<TEST URI="not-wf/content01.xml" ID="content01" TYPE="not-wf" SECTIONS="3.2.1 [48]"> + No whitespace before "?" in content model</TEST> + +<TEST URI="not-wf/content02.xml" ID="content02" TYPE="not-wf" SECTIONS="3.2.1 [48]"> + No whitespace before "*" in content model</TEST> + +<TEST URI="not-wf/content03.xml" ID="content03" TYPE="not-wf" SECTIONS="3.2.1 [48]"> + No whitespace before "+" in content model</TEST> + +<TEST URI="not-wf/decl01.xml" ID="decl01" TYPE="not-wf" SECTIONS="4.3.1 [77]" + ENTITIES="parameter"> + External entities may not have standalone decls. </TEST> + +<TEST URI="not-wf/dtd00.xml" ID="nwf-dtd00" TYPE="not-wf" SECTIONS="3.2.1 [55]"> + Comma mandatory in content model</TEST> + +<TEST URI="not-wf/dtd01.xml" ID="nwf-dtd01" TYPE="not-wf" SECTIONS="3.2.1 [55]"> + Can't mix comma and vertical bar in content models</TEST> + +<TEST URI="not-wf/dtd02.xml" ID="dtd02" TYPE="not-wf" SECTIONS="4.1 [69]"> + PE name immediately after "%"</TEST> + +<TEST URI="not-wf/dtd03.xml" ID="dtd03" TYPE="not-wf" SECTIONS="4.1 [69]"> + PE name immediately followed by ";"</TEST> + +<TEST URI="not-wf/dtd04.xml" ID="dtd04" TYPE="not-wf" SECTIONS="4.2.2 [75]"> + PUBLIC literal must be quoted</TEST> + +<TEST URI="not-wf/dtd05.xml" ID="dtd05" TYPE="not-wf" SECTIONS="4.2.2 [75]"> + SYSTEM identifier must be quoted</TEST> + +<TEST URI="not-wf/dtd07.xml" ID="dtd07" TYPE="not-wf" SECTIONS="4.3.1 [77]" ENTITIES="parameter"> + Text declarations (which optionally begin any external entity) + are required to have "encoding=...". </TEST> + + +<TEST URI="not-wf/element00.xml" ID="element00" TYPE="not-wf" SECTIONS="3.1 [42]"> + EOF in middle of incomplete ETAG</TEST> + +<TEST URI="not-wf/element01.xml" ID="element01" TYPE="not-wf" SECTIONS="3.1 [42]"> + EOF in middle of incomplete ETAG</TEST> + +<TEST URI="not-wf/element02.xml" ID="element02" TYPE="not-wf" SECTIONS="3.1 [43]"> + Illegal markup (<%@ ... %>)</TEST> + +<TEST URI="not-wf/element03.xml" ID="element03" TYPE="not-wf" SECTIONS="3.1 [43]"> + Illegal markup (<% ... %>)</TEST> + +<TEST URI="not-wf/element04.xml" ID="element04" TYPE="not-wf" SECTIONS="3.1 [43]"> + Illegal markup (<!ELEMENT ... >)</TEST> + +<TEST URI="not-wf/encoding01.xml" ID="encoding01" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character " " in encoding name</TEST> + +<TEST URI="not-wf/encoding02.xml" ID="encoding02" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character "/" in encoding name</TEST> + +<TEST URI="not-wf/encoding03.xml" ID="encoding03" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character reference in encoding name</TEST> + +<TEST URI="not-wf/encoding04.xml" ID="encoding04" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character ":" in encoding name</TEST> + +<TEST URI="not-wf/encoding05.xml" ID="encoding05" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character "@" in encoding name</TEST> + +<TEST URI="not-wf/encoding06.xml" ID="encoding06" TYPE="not-wf" SECTIONS="4.3.3 [81]"> + Illegal character "+" in encoding name</TEST> + +<TEST URI="not-wf/encoding07.xml" ID="encoding07" TYPE="not-wf" SECTIONS="4.3.1 [77]" ENTITIES="parameter"> + Text declarations (which optionally begin any external entity) + are required to have "encoding=...". </TEST> + +<TEST URI="not-wf/pi.xml" ID="pi" TYPE="not-wf" SECTIONS="2.6 [16]"> + No space between PI target name and data</TEST> + +<TEST URI="not-wf/pubid01.xml" ID="pubid01" TYPE="not-wf" SECTIONS="2.3 [12]"> + Illegal entity ref in public ID</TEST> + +<TEST URI="not-wf/pubid02.xml" ID="pubid02" TYPE="not-wf" SECTIONS="2.3 [12]"> + Illegal characters in public ID</TEST> + +<TEST URI="not-wf/pubid03.xml" ID="pubid03" TYPE="not-wf" SECTIONS="2.3 [12]"> + Illegal characters in public ID</TEST> + +<TEST URI="not-wf/pubid04.xml" ID="pubid04" TYPE="not-wf" SECTIONS="2.3 [12]"> + Illegal characters in public ID</TEST> + +<TEST URI="not-wf/pubid05.xml" ID="pubid05" TYPE="not-wf" SECTIONS="2.3 [12]"> + SGML-ism: public ID without system ID</TEST> + +<TEST URI="not-wf/sgml01.xml" ID="sgml01" TYPE="not-wf" SECTIONS="3 [39]"> + SGML-ism: omitted end tag for EMPTY content</TEST> + +<TEST URI="not-wf/sgml02.xml" ID="sgml02" TYPE="not-wf" SECTIONS="2.8 "> + XML declaration must be at the very beginning of a document; + it"s not a processing instruction</TEST> + +<TEST URI="not-wf/sgml03.xml" ID="sgml03" TYPE="not-wf" SECTIONS="2.5 [15]"> + Comments may not contain "--"</TEST> + +<TEST URI="not-wf/sgml04.xml" ID="sgml04" TYPE="not-wf" SECTIONS="3.3 [52]"> + ATTLIST declarations apply to only one element, unlike SGML</TEST> + +<TEST URI="not-wf/sgml05.xml" ID="sgml05" TYPE="not-wf" SECTIONS="3.2 [45]"> + ELEMENT declarations apply to only one element, unlike SGML</TEST> + +<TEST URI="not-wf/sgml06.xml" ID="sgml06" TYPE="not-wf" SECTIONS="3.3 [52]"> + ATTLIST declarations are never global, unlike in SGML</TEST> + +<TEST URI="not-wf/sgml07.xml" ID="sgml07" TYPE="not-wf" SECTIONS="3.2 [45]"> + SGML Tag minimization specifications are not allowed</TEST> + +<TEST URI="not-wf/sgml08.xml" ID="sgml08" TYPE="not-wf" SECTIONS="3.2 [45]"> + SGML Tag minimization specifications are not allowed</TEST> + +<TEST URI="not-wf/sgml09.xml" ID="sgml09" TYPE="not-wf" SECTIONS="3.2 [45]"> + SGML Content model exception specifications are not allowed</TEST> + +<TEST URI="not-wf/sgml10.xml" ID="sgml10" TYPE="not-wf" SECTIONS="3.2 [45]"> + SGML Content model exception specifications are not allowed</TEST> + +<TEST URI="not-wf/sgml11.xml" ID="sgml11" TYPE="not-wf" SECTIONS="3.2 [46]"> + CDATA is not a valid content model spec</TEST> + +<TEST URI="not-wf/sgml12.xml" ID="sgml12" TYPE="not-wf" SECTIONS="3.2 [46]"> + RCDATA is not a valid content model spec</TEST> + +<TEST URI="not-wf/sgml13.xml" ID="sgml13" TYPE="not-wf" SECTIONS="3.2.1 [47]"> + SGML Unordered content models not allowed</TEST> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-valid.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-valid.xml new file mode 100644 index 0000000..dceefe1 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/sun-valid.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + @(#)valid.xml 1.6 99/01/21 + Copyright 1998 by Sun Microsystems, Inc. + All Rights Reserved. +--> +<TEST URI="valid/pe01.xml" ID="pe01" ENTITIES="parameter" SECTIONS="2.8" TYPE="valid"> + Parameter entities references are NOT RECOGNIZED in default attribute + values.</TEST> + +<TEST URI="valid/dtd00.xml" ID="dtd00" SECTIONS="3.2.2 [51]" TYPE="valid" + OUTPUT="valid/out/dtd00.xml"> + Tests parsing of alternative forms of text-only mixed + content declaration.</TEST> + +<TEST URI="valid/dtd01.xml" ID="dtd01" TYPE="valid" SECTIONS="2.5 [15]" + OUTPUT="valid/out/dtd01.xml"> + Comments don't get parameter entity expansion</TEST> + +<TEST URI="valid/element.xml" ID="element" TYPE="valid" SECTIONS="3" + OUTPUT="valid/out/element.xml"> + Tests clauses 1, 3, and 4 of the Element Valid + validity constraint.</TEST> + +<TEST URI="valid/ext01.xml" ID="ext01" ENTITIES="general" + OUTPUT="valid/out/ext01.xml" + SECTIONS="4.3.1 4.3.2 [77] [78]" TYPE="valid"> + Tests use of external parsed entities with and without content.</TEST> + +<TEST URI="valid/ext02.xml" ID="ext02" ENTITIES="general" SECTIONS="4.3.2 [78]" TYPE="valid" + OUTPUT="valid/out/ext02.xml"> + Tests use of external parsed entities with different + encodings than the base document.</TEST> + +<TEST URI="valid/not-sa01.xml" ENTITIES="parameter" ID="not-sa01" TYPE="valid" SECTIONS="2.9" + OUTPUT="valid/out/not-sa01.xml"> + A non-standalone document is valid if declared as such.</TEST> + +<TEST URI="valid/not-sa02.xml" ENTITIES="parameter" ID="not-sa02" TYPE="valid" SECTIONS="2.9" + OUTPUT="valid/out/not-sa02.xml"> + A non-standalone document is valid if declared as such.</TEST> + +<TEST URI="valid/not-sa03.xml" ENTITIES="parameter" ID="not-sa03" TYPE="valid" SECTIONS="2.9" + OUTPUT="valid/out/not-sa03.xml"> + A non-standalone document is valid if declared as such.</TEST> + +<TEST URI="valid/not-sa04.xml" ENTITIES="parameter" ID="not-sa04" TYPE="valid" SECTIONS="2.9" + OUTPUT="valid/out/not-sa04.xml"> + A non-standalone document is valid if declared as such. </TEST> + +<TEST URI="valid/notation01.xml" ENTITIES="parameter" ID="notation01" TYPE="valid" + OUTPUT="valid/out/notation01.xml" + SECTIONS="4.7 [82]"> + NOTATION declarations don't need SYSTEM IDs; and + externally declared notations may be used to declare + unparsed entities in the internal DTD subset. + The notation must be reported to the application. + </TEST> + +<TEST URI="valid/optional.xml" ENTITIES="parameter" ID="optional" TYPE="valid" + OUTPUT="valid/out/optional.xml" + SECTIONS="3 3.2.1 [47]"> + Tests declarations of "children" content models, and + the validity constraints associated with them.</TEST> + +<TEST URI="valid/required00.xml" ID="required00" TYPE="valid" + OUTPUT="valid/out/required00.xml" + SECTIONS="3.3.2 [60]"> + Tests the #REQUIRED attribute declaration syntax, and + the associated validity constraint. </TEST> + +<TEST URI="valid/sa01.xml" ID="sa01" TYPE="valid" SECTIONS="2.9 [32]" + OUTPUT="valid/out/sa01.xml"> + A document may be marked 'standalone' if any optional + whitespace is defined within the internal DTD subset.</TEST> + +<TEST URI="valid/sa02.xml" ID="sa02" TYPE="valid" SECTIONS="2.9 [32]" + OUTPUT="valid/out/sa02.xml"> + A document may be marked 'standalone' if any + attributes that need normalization are + defined within the internal DTD subset.</TEST> + +<TEST URI="valid/sa03.xml" ENTITIES="parameter" ID="sa03" TYPE="valid" SECTIONS="2.9 [32]" + OUTPUT="valid/out/sa03.xml"> + A document may be marked 'standalone' if any + the defined entities need expanding are internal, + and no attributes need defaulting or normalization. + On output, requires notations to be correctly reported. + </TEST> + +<TEST URI="valid/sa04.xml" ID="sa04" ENTITIES="parameter" TYPE="valid" SECTIONS="2.9 [32]" + OUTPUT="valid/out/sa04.xml"> + Like sa03 but relies on attribute + defaulting defined in the internal subset. + On output, requires notations to be correctly reported. + </TEST> + +<TEST URI="valid/sa05.xml" ID="sa05" ENTITIES="parameter" TYPE="valid" SECTIONS="2.9 [32]" + OUTPUT="valid/out/sa05.xml"> + Like sa01 but this document is standalone + since it has no optional whitespace. + On output, requires notations to be correctly reported. + </TEST> + +<TEST URI="valid/sgml01.xml" ID="v-sgml01" SECTIONS="3.3.1 [59]" TYPE="valid" + OUTPUT="valid/out/sgml01.xml"> + XML permits token reuse, while SGML does not.</TEST> + +<TEST URI="valid/v-lang01.xml" + OUTPUT="valid/out/v-lang01.xml" + ID="v-lang01" SECTIONS="2.12 [35]" TYPE="valid"> + Tests a lowercase ISO language code.</TEST> + +<TEST URI="valid/v-lang02.xml" ID="v-lang02" SECTIONS="2.12 [35]" TYPE="valid" + OUTPUT="valid/out/v-lang02.xml"> + Tests a ISO language code with a subcode.</TEST> + +<TEST URI="valid/v-lang03.xml" ID="v-lang03" SECTIONS="2.12 [36]" TYPE="valid" + OUTPUT="valid/out/v-lang03.xml"> + Tests a IANA language code with a subcode.</TEST> + +<TEST URI="valid/v-lang04.xml" ID="v-lang04" SECTIONS="2.12 [37]" TYPE="valid" + OUTPUT="valid/out/v-lang04.xml"> + Tests a user language code with a subcode.</TEST> + +<TEST URI="valid/v-lang05.xml" ID="v-lang05" SECTIONS="2.12 [35]" TYPE="valid" + OUTPUT="valid/out/v-lang05.xml"> + Tests an uppercase ISO language code.</TEST> + +<TEST URI="valid/v-lang06.xml" ID="v-lang06" SECTIONS="2.12 [37]" TYPE="valid" + OUTPUT="valid/out/v-lang06.xml"> + Tests a user language code.</TEST> + +<TEST URI="valid/pe00.xml" ENTITIES="parameter" ID="v-pe00" SECTIONS="4.5" TYPE="valid" + OUTPUT="valid/out/pe00.xml"> + Tests construction of internal entity replacement text, using + an example in the XML specification. </TEST> + +<TEST URI="valid/pe03.xml" ID="v-pe03" SECTIONS="4.5" TYPE="valid" + OUTPUT="valid/out/pe03.xml"> + Tests construction of internal entity replacement text, using + an example in the XML specification. </TEST> + +<TEST URI="valid/pe02.xml" ENTITIES="parameter" ID="v-pe02" SECTIONS="4.5" TYPE="valid" + OUTPUT="valid/out/pe02.xml"> + Tests construction of internal entity replacement text, using + a complex example in the XML specification. </TEST> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries new file mode 100644 index 0000000..cecb2c4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries @@ -0,0 +1,37 @@ +/dtd00.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtd01.xml/1.2/Thu Feb 7 19:44:41 2002// +/dtdtest.dtd/1.3/Wed May 1 17:59:08 2002// +/element.xml/1.2/Thu Feb 7 19:44:41 2002// +/ext01.ent/1.2/Thu Feb 7 19:44:41 2002// +/ext01.xml/1.2/Thu Feb 7 19:44:41 2002// +/ext02.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa01.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa02.xml/1.3/Mon Apr 22 13:16:53 2002// +/not-sa03.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa04.xml/1.2/Thu Feb 7 19:44:41 2002// +/notation01.dtd/1.2/Thu Feb 7 19:44:41 2002// +/notation01.xml/1.2/Thu Feb 7 19:44:41 2002// +/null.ent/1.1/Mon Feb 11 18:38:34 2002// +/optional.xml/1.3/Wed May 1 18:06:13 2002// +/pe00.dtd/1.2/Thu Feb 7 19:44:41 2002// +/pe00.xml/1.2/Thu Feb 7 19:44:41 2002// +/pe01.dtd/1.1/Fri Feb 22 16:47:37 2002// +/pe01.ent/1.1/Fri Feb 22 16:47:37 2002// +/pe01.xml/1.4/Fri Feb 22 16:47:37 2002// +/pe02.xml/1.2/Thu Feb 7 19:44:41 2002// +/pe03.xml/1.1/Thu Feb 21 18:51:30 2002// +/required00.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa.dtd/1.2/Thu Feb 7 19:44:41 2002// +/sa01.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa02.xml/1.3/Mon Apr 22 13:12:39 2002// +/sa03.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa04.xml/1.3/Thu Apr 3 14:58:00 2003// +/sa05.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml01.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang01.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang02.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang03.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang04.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang05.xml/1.2/Thu Feb 7 19:44:41 2002// +/v-lang06.xml/1.2/Thu Feb 7 19:44:41 2002// +D/out//// diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository new file mode 100644 index 0000000..c0debaf --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/sun/valid diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml new file mode 100644 index 0000000..d92c44b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml @@ -0,0 +1,7 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!ELEMENT x (#PCDATA)> + <!ELEMENT y (#PCDATA)*> +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml new file mode 100644 index 0000000..b0d6ae4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!ENTITY % PE "this is a PE"> + <!-- %these; %are; %not; %PEs; --> +]> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd new file mode 100644 index 0000000..56539d0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!ELEMENT root ANY> + +<!ELEMENT e EMPTY> + +<!ELEMENT once (e)> +<!ELEMENT twice (e,e)> + +<!ENTITY % once-or-twice-a "(e,(e)?)"> +<!ENTITY % once-or-twice-b "((e),e?)"> +<!ENTITY % once-or-twice-c "((e),(e)?)"> +<!ENTITY % once-or-twice-d "(((e)),e?)"> +<!ENTITY % once-or-twice-e "(e,(((e)))?)"> + +<!-- disallowed by spec; a document error, parser needn't report --> +<!-- (e?,e) --> + +<!ELEMENT once-or-twice-a %once-or-twice-a;> +<!ELEMENT once-or-twice-b %once-or-twice-b;> +<!ELEMENT once-or-twice-c %once-or-twice-c;> +<!ELEMENT once-or-twice-d %once-or-twice-d;> +<!ELEMENT once-or-twice-e %once-or-twice-e;> + +<!-- disallowed by spec; a document error, parser needn't report --> +<!-- + <!ELEMENT once-or-twice-X (Xonce;|Xtwice)> + ... above, 'X' should be a percent sign but this comment + is being nice to those parsers that try to parse comments + (they shouldn't) +--> + +<!ENTITY % once-or-more-a "(e+)"> +<!ENTITY % once-or-more-b "(e,e*)"> +<!ENTITY % once-or-more-c "((e)+)"> +<!ENTITY % once-or-more-d "((e),e*)"> +<!ENTITY % once-or-more-e "(e,(e)*)"> + +<!ELEMENT once-or-more-a %once-or-more-a;> +<!ELEMENT once-or-more-b %once-or-more-b;> +<!ELEMENT once-or-more-c %once-or-more-c;> +<!ELEMENT once-or-more-d %once-or-more-d;> +<!ELEMENT once-or-more-e %once-or-more-e;> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml new file mode 100644 index 0000000..9f02030 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml @@ -0,0 +1,38 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +<!ELEMENT empty EMPTY> +<!ELEMENT mixed1 (#PCDATA)> +<!ELEMENT mixed2 (#PCDATA)*> +<!ELEMENT mixed3 (#PCDATA|empty)*> +]> + +<root> + <empty/> + + <mixed1/> + <mixed1></mixed1> + + <mixed2/> + <mixed2></mixed2> + + <mixed3/> + <mixed3></mixed3> + + <mixed1>allowed</mixed1> + <mixed1><![CDATA[<allowed>]]></mixed1> + + <mixed2>also</mixed2> + <mixed2><![CDATA[<% illegal otherwise %>]]></mixed2> + + <mixed3>moreover</mixed3> + + <mixed1>allowed & stuff</mixed1> + + <mixed2>also</mixed2> + + <mixed3>moreover <empty></empty> </mixed3> + <mixed3>moreover <empty/> </mixed3> + <mixed3><empty/> </mixed3> + <mixed3><empty/> too</mixed3> + +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent new file mode 100644 index 0000000..c75c629 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent @@ -0,0 +1,7 @@ +<?xml encoding="UTF-8"?> +<!-- this is really ascii ... ;- --> +<foo/> + +<bar/> + +<is> "dumber than a bag full of hammers" </is> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml new file mode 100644 index 0000000..d826da9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml @@ -0,0 +1,9 @@ +<!DOCTYPE root [ +<!ELEMENT root ANY> +<!ELEMENT foo ANY> +<!ELEMENT bar ANY> +<!ELEMENT is ANY> +<!ENTITY root SYSTEM "ext01.ent"> +<!ENTITY null SYSTEM "null.ent"> +]> +<root> &root; &root; &null; &null; </root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml new file mode 100644 index 0000000..af5440b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml @@ -0,0 +1,8 @@ +<!DOCTYPE foo [ +<!ELEMENT foo (root*)> +<!ELEMENT root EMPTY> +<!ENTITY utf16b SYSTEM "../invalid/utf16b.xml"> +<!ENTITY utf16l SYSTEM "../invalid/utf16l.xml"> +]> + +<foo> &utf16b; &utf16l; </foo> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml new file mode 100644 index 0000000..536cb4b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml @@ -0,0 +1,10 @@ +<?xml version='1.0' standalone='no'?> + +<!DOCTYPE root SYSTEM "sa.dtd"> + +<root> + <child> + The whitespace before and after this element keeps + this from being standalone. + </child> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml new file mode 100644 index 0000000..bd938b0 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml @@ -0,0 +1,30 @@ +<?xml version='1.0' standalone='no'?> + +<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ + <!ENTITY internal " number99"> +]> + + <!-- sync with ../invalid/not-sa02.xml --> + + <!-- + lots of normalized/defaulted attributes + keep this from being standalone + + XXX not the best basis for negative tests!! + --> + +<attributes + notation = " nonce " + nmtoken = " this-gets-normalized " + nmtokens = " this + also gets normalized " + id = " &internal; " + idref = " &internal; + " + idrefs = " &internal; &internal; &internal;" + entity = " unparsed-1 " + entities = "unparsed-1 + unparsed-2 +" + cdata = "nothing happens to this one!" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml new file mode 100644 index 0000000..2a13a00 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml @@ -0,0 +1,25 @@ +<?xml version='1.0' standalone='no'?> + +<!DOCTYPE attributes SYSTEM "sa.dtd" [ + <!-- + This one is almost standalone since the values + are pre-normalized in this document, and the + defaulted attribute is explicit. + + BUT the entity refs are both external and need + normalization. + --> +]> + +<attributes + token = "b" + notation = "foo" + nmtoken = "this-gets-normalized" + nmtokens = "this also gets normalized" + id = "&internal;" + idref = "&internal;" + idrefs = "&internal; &internal; &internal;" + entity = "unparsed-1" + entities = "unparsed-1 unparsed-2" + cdata = "nothing happens to this one!" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml new file mode 100644 index 0000000..d4e12aa --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml @@ -0,0 +1,30 @@ +<?xml version='1.0' standalone='no'?> + +<!DOCTYPE attributes SYSTEM "sa.dtd" [ + <!-- + This one isn't standalone since it's got a defaulted + attribute (token) and one needing normalization + (notation). + --> + + <!ATTLIST attributes + token (a|b|c) "a" + notation (nonce|foo|bar) #IMPLIED + > + <!ENTITY internal "internal&number;"> + <!ENTITY number "42"> +]> + +<attributes + notation = " nonce " + nmtoken = "this-gets-normalized" + nmtokens = "this also gets normalized" + id = "&internal;" + idref = "&internal;" + idrefs = "&internal; &internal; &internal;" + entity = "unparsed-1" + entities = "unparsed-1 unparsed-2" + cdata = "nothing happens to this one!" + /> + +<?pi equals three?> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd new file mode 100644 index 0000000..2372685 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!NOTATION GIF PUBLIC + "+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION + CompuServe Graphic Interchange Format//EN"> + +<!ELEMENT test (#PCDATA) > + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml new file mode 100644 index 0000000..4b8bc10 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE test SYSTEM "notation01.dtd" [ + <!ENTITY applydsssl SYSTEM "applydsssl.gif" NDATA GIF> +]> +<test>test</test> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml new file mode 100644 index 0000000..fe8d482 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml @@ -0,0 +1,50 @@ +<!DOCTYPE root SYSTEM "dtdtest.dtd"> +<root> + <!-- + This primarily bangs on different ways of expressing + optionality in content models. + --> + <once><e/></once> + + <twice><e/><e/></twice> + + + <once-or-twice-a><e/></once-or-twice-a> + <once-or-twice-b><e/></once-or-twice-b> + <once-or-twice-c><e/></once-or-twice-c> + <once-or-twice-d><e/></once-or-twice-d> + <once-or-twice-e><e/></once-or-twice-e> + + <once-or-twice-a><e/><e/></once-or-twice-a> + <once-or-twice-b><e/><e/></once-or-twice-b> + <once-or-twice-c><e/><e/></once-or-twice-c> + <once-or-twice-d><e/><e/></once-or-twice-d> + <once-or-twice-e><e/><e/></once-or-twice-e> + + + <once-or-more-a><e/></once-or-more-a> + <once-or-more-b><e/></once-or-more-b> + <once-or-more-c><e/></once-or-more-c> + <once-or-more-d><e/></once-or-more-d> + <once-or-more-e><e/></once-or-more-e> + + <once-or-more-a><e/><e/></once-or-more-a> + <once-or-more-b><e/><e/></once-or-more-b> + <once-or-more-c><e/><e/></once-or-more-c> + <once-or-more-d><e/><e/></once-or-more-d> + <once-or-more-e><e/><e/></once-or-more-e> + + <once-or-more-a><e/><e/><e/></once-or-more-a> + <once-or-more-b><e/><e/><e/></once-or-more-b> + <once-or-more-c><e/><e/><e/></once-or-more-c> + <once-or-more-d><e/><e/><e/></once-or-more-d> + <once-or-more-e><e/><e/><e/></once-or-more-e> + + <once-or-more-a><e/><e/><e/><e/></once-or-more-a> + <once-or-more-b><e/><e/><e/><e/></once-or-more-b> + <once-or-more-c><e/><e/><e/><e/></once-or-more-c> + <once-or-more-d><e/><e/><e/><e/></once-or-more-d> + <once-or-more-e><e/><e/><e/><e/></once-or-more-e> + + +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries new file mode 100644 index 0000000..469e0ed --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries @@ -0,0 +1,28 @@ +/dtd00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/dtd01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/element.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/ext01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/ext02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/not-sa01.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa02.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa03.xml/1.2/Thu Feb 7 19:44:41 2002// +/not-sa04.xml/1.2/Thu Feb 7 19:44:41 2002// +/notation01.xml/1.2/Thu Feb 7 19:44:41 2002// +/optional.xml/1.4/Mon May 20 15:33:35 2002// +/pe00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/pe02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/pe03.xml/1.1/Thu Feb 21 18:47:07 2002// +/required00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/sa01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/sa02.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa03.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa04.xml/1.2/Thu Feb 7 19:44:41 2002// +/sa05.xml/1.2/Thu Feb 7 19:44:41 2002// +/sgml01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang03.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang04.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang05.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +/v-lang06.xml/1.1.1.1/Wed Oct 17 09:52:58 2001// +D diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository new file mode 100644 index 0000000..b244dd5 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository @@ -0,0 +1 @@ +2001/XML-Test-Suite/xmlconf/sun/valid/out diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml new file mode 100644 index 0000000..ef2fc53 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml @@ -0,0 +1 @@ +<root></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml new file mode 100644 index 0000000..ef2fc53 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml @@ -0,0 +1 @@ +<root></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml new file mode 100644 index 0000000..f1aa64d --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml @@ -0,0 +1 @@ +<root> <empty></empty> <mixed1></mixed1> <mixed1></mixed1> <mixed2></mixed2> <mixed2></mixed2> <mixed3></mixed3> <mixed3></mixed3> <mixed1>allowed</mixed1> <mixed1><allowed></mixed1> <mixed2>also</mixed2> <mixed2><% illegal otherwise %></mixed2> <mixed3>moreover</mixed3> <mixed1>allowed & stuff</mixed1> <mixed2>also</mixed2> <mixed3>moreover <empty></empty> </mixed3> <mixed3>moreover <empty></empty> </mixed3> <mixed3><empty></empty> </mixed3> <mixed3><empty></empty> too</mixed3> </root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml new file mode 100644 index 0000000..a8d2134 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml @@ -0,0 +1 @@ +<root> <foo></foo> <bar></bar> <is> "dumber than a bag full of hammers" </is> <foo></foo> <bar></bar> <is> "dumber than a bag full of hammers" </is> </root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml new file mode 100644 index 0000000..90718f8 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml @@ -0,0 +1 @@ +<foo> <root></root> <root></root> </foo>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml new file mode 100644 index 0000000..12ce349 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<root> <child> The whitespace before and after this element keeps this from being standalone. </child> </root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml new file mode 100644 index 0000000..0f31afb --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="number99" idref="number99" idrefs="number99 number99 number99" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml new file mode 100644 index 0000000..4eba2aa --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="foo" token="b"></attributes>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml new file mode 100644 index 0000000..70e09f6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes><?pi equals three?>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml new file mode 100644 index 0000000..cbb7634 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml @@ -0,0 +1,4 @@ +<!DOCTYPE test [ +<!NOTATION GIF PUBLIC '+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION CompuServe Graphic Interchange Format//EN'> +]> +<test>test</test>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml new file mode 100644 index 0000000..d131489 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml @@ -0,0 +1 @@ +<root> <once><e></e></once> <twice><e></e><e></e></twice> <once-or-twice-a><e></e></once-or-twice-a> <once-or-twice-b><e></e></once-or-twice-b> <once-or-twice-c><e></e></once-or-twice-c> <once-or-twice-d><e></e></once-or-twice-d> <once-or-twice-e><e></e></once-or-twice-e> <once-or-twice-a><e></e><e></e></once-or-twice-a> <once-or-twice-b><e></e><e></e></once-or-twice-b> <once-or-twice-c><e></e><e></e></once-or-twice-c> <once-or-twice-d><e></e><e></e></once-or-twice-d> <once-or-twice-e><e></e><e></e></once-or-twice-e> <once-or-more-a><e></e></once-or-more-a> <once-or-more-b><e></e></once-or-more-b> <once-or-more-c><e></e></once-or-more-c> <once-or-more-d><e></e></once-or-more-d> <once-or-more-e><e></e></once-or-more-e> <once-or-more-a><e></e><e></e></once-or-more-a> <once-or-more-b><e></e><e></e></once-or-more-b> <once-or-more-c><e></e><e></e></once-or-more-c> <once-or-more-d><e></e><e></e></once-or-more-d> <once-or-more-e><e></e><e></e></once-or-more-e> <once-or-more-a><e></e><e></e><e></e></once-or-more-a> <once-or-more-b><e></e><e></e><e></e></once-or-more-b> <once-or-more-c><e></e><e></e><e></e></once-or-more-c> <once-or-more-d><e></e><e></e><e></e></once-or-more-d> <once-or-more-e><e></e><e></e><e></e></once-or-more-e> <once-or-more-a><e></e><e></e><e></e><e></e></once-or-more-a> <once-or-more-b><e></e><e></e><e></e><e></e></once-or-more-b> <once-or-more-c><e></e><e></e><e></e><e></e></once-or-more-c> <once-or-more-d><e></e><e></e><e></e><e></e></once-or-more-d> <once-or-more-e><e></e><e></e><e></e><e></e></once-or-more-e> </root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml new file mode 100644 index 0000000..7d48bbe --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml @@ -0,0 +1 @@ +<root>La Peste: Albert Camus, © 1947 Éditions Gallimard. All rights reserved</root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml new file mode 100644 index 0000000..6bc0660 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml @@ -0,0 +1 @@ +<test>This sample shows a error-prone method.</test>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml new file mode 100644 index 0000000..eed428a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml @@ -0,0 +1 @@ +<root><p>An ampersand (&) may be escaped numerically (&#38) or with a general entity (&amp;).</p></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml new file mode 100644 index 0000000..f06dcb9 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml @@ -0,0 +1 @@ +<root req="foo"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml new file mode 100644 index 0000000..188f8ef --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml @@ -0,0 +1 @@ +<root> <child> The whitespace around this element would be invalid as standalone were the DTD external. </child> </root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml new file mode 100644 index 0000000..10e4c64 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml new file mode 100644 index 0000000..4eba2aa --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="foo" token="b"></attributes>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml new file mode 100644 index 0000000..70e09f6 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml @@ -0,0 +1,6 @@ +<!DOCTYPE attributes [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes><?pi equals three?>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml new file mode 100644 index 0000000..931120d --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!NOTATION bar SYSTEM 'file:/dev/tty'> +<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'> +<!NOTATION nonce SYSTEM 'file:/dev/null'> +]> +<root><child> No whitespace before or after this standalone element. </child></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml new file mode 100644 index 0000000..8c31029 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml @@ -0,0 +1 @@ +<root position="first" status="initial-draft"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml new file mode 100644 index 0000000..9752885 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml @@ -0,0 +1 @@ +<root xml:lang="en"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml new file mode 100644 index 0000000..cdf492e --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml @@ -0,0 +1 @@ +<root xml:lang="en-IN"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml new file mode 100644 index 0000000..d9d68a4 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml @@ -0,0 +1 @@ +<root xml:lang="i-klingon-whorf"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml new file mode 100644 index 0000000..cda324b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml @@ -0,0 +1 @@ +<root xml:lang="x-dialect-valleygirl"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml new file mode 100644 index 0000000..fa3d57a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml @@ -0,0 +1 @@ +<root xml:lang="DE"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml new file mode 100644 index 0000000..451e36b --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml @@ -0,0 +1 @@ +<root xml:lang="X-Java"></root>
\ No newline at end of file diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd new file mode 100644 index 0000000..547457c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd @@ -0,0 +1,6 @@ +<!ELEMENT root (#PCDATA)> +<!-- Example from XML spec 1.0 section 4.5 --> +<!ENTITY % pub "Éditions Gallimard"> +<!ENTITY rights "All rights reserved"> +<!ENTITY book "La Peste: Albert Camus, +© 1947 %pub;. &rights;"> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml new file mode 100644 index 0000000..af70664 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml @@ -0,0 +1,2 @@ +<!DOCTYPE root SYSTEM "pe00.dtd"> +<root>&book;</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd new file mode 100644 index 0000000..59997b7 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd @@ -0,0 +1,6 @@ +<!ENTITY % bad-pe SYSTEM "pe01.ent"> +<!ELEMENT root EMPTY> +<!ATTLIST root + something CDATA "%not-pe;" + evil (doctor | scott) "doctor" + > diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent new file mode 100644 index 0000000..3f30827 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent @@ -0,0 +1,2 @@ +This is not a legal parameter entity, because +it does not match the "markupdecl" production. diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml new file mode 100644 index 0000000..8003bbf --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml @@ -0,0 +1,2 @@ +<!DOCTYPE root SYSTEM "pe01.dtd"> +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml new file mode 100644 index 0000000..44edb62 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml @@ -0,0 +1,9 @@ +<?xml version='1.0'?> +<!DOCTYPE test [ +<!ELEMENT test (#PCDATA) > +<!ENTITY % xx '%zz;'> +<!ENTITY % zz '<!ENTITY tricky "error-prone" >' > +%xx; +]> +<test>This sample shows a &tricky; method.</test> +<!-- Example 2 from XML spec 1.0 Appendix D --> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml new file mode 100644 index 0000000..407bd1c --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ +<!ELEMENT root (p)> +<!ELEMENT p (#PCDATA)> +<!-- Example 1 from XML spec 1.0 Appendix D --> +<!ENTITY example "<p>An ampersand (&#38;) may be escaped +numerically (&#38;#38) or with a general entity (&amp;).</p>" > +]> +<root>&example;</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml new file mode 100644 index 0000000..4c63d36 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml @@ -0,0 +1,8 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!ATTLIST root + req CDATA #REQUIRED + > +]> + +<root req="foo"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd new file mode 100644 index 0000000..a0733eb --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + + <!ELEMENT root (child|attributes)*> + <!ELEMENT child (#PCDATA)> + <!ELEMENT attributes EMPTY> + + <!-- + 2.9 gives validity constraints applying to attributes + in standalone docs: no external defaults or decls + causing normalization. + + 3.3.3 describes the normalization rules + --> + + <!ATTLIST attributes + token (a|b|c) "a" + notation (nonce|foo|bar) #IMPLIED + nmtoken NMTOKEN #IMPLIED + nmtokens NMTOKENS #IMPLIED + id ID #IMPLIED + idref IDREF #IMPLIED + idrefs IDREFS #IMPLIED + entity ENTITY #IMPLIED + entities ENTITIES #IMPLIED + cdata CDATA #IMPLIED + > + + <!-- this needs normalization when used as an ID --> + <!ENTITY internal " internal&number; "> + <!ENTITY number "42"> + + <!NOTATION nonce SYSTEM "file:/dev/null"> + <!NOTATION foo PUBLIC "-//public id//foo" "file:/dev/null"> + <!NOTATION bar SYSTEM "file:/dev/tty"> + + <!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console" + NDATA nonce> + <!ENTITY unparsed-2 SYSTEM "scheme://host/data" + NDATA foo> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml new file mode 100644 index 0000000..15ed495 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml @@ -0,0 +1,13 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE root [ + <!ELEMENT root (child)*> + <!ELEMENT child (#PCDATA)> +]> + +<root> + <child> + The whitespace around this element would be + invalid as standalone were the DTD external. + </child> +</root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml new file mode 100644 index 0000000..7a41660 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml @@ -0,0 +1,52 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes [ + <!ELEMENT attributes EMPTY> + + <!-- + 2.9 gives validity constraints applying to attributes + in standalone docs: no external defaults or decls + causing normalization. + + 3.3.3 describes the normalization rules + --> + + <!ATTLIST attributes + token (a|b|c) "a" + notation (nonce|foo|bar) #IMPLIED + nmtoken NMTOKEN #IMPLIED + nmtokens NMTOKENS #IMPLIED + id ID #IMPLIED + idref IDREF #IMPLIED + idrefs IDREFS #IMPLIED + entity ENTITY #IMPLIED + entities ENTITIES #IMPLIED + cdata CDATA #IMPLIED + > + + <!ENTITY internal " internal&number; "> + <!ENTITY number "42"> + + <!NOTATION nonce SYSTEM "file:/dev/null"> + <!NOTATION foo PUBLIC "-//public id//foo" "file:/dev/null"> + <!NOTATION bar SYSTEM "file:/dev/tty"> + + <!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console" + NDATA nonce> + <!ENTITY unparsed-2 SYSTEM "scheme://host/data" + NDATA foo> +]> + +<attributes + notation = " nonce " + nmtoken = " this-gets-normalized " + nmtokens = " this + also gets normalized " + id = " &internal; " + idref = " &internal; + " + idrefs = " &internal; &internal; &internal;" + entity = " unparsed-1 " + entities = "unparsed-1 unparsed-2" + cdata = "nothing happens to this one!" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml new file mode 100644 index 0000000..194cb82 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml @@ -0,0 +1,28 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "sa.dtd" [ + <!-- + This one is standalone since the values are + pre-normalized in this document, and the + defaulted attribute is explicit. + + Similarly the entity refs are internal and + don't need normalization ... the unparsed + entities (and entities) aren't "references" + --> + <!ENTITY internal "internal&number;"> + <!ENTITY number "42"> +]> + +<attributes + token = "b" + notation = "foo" + nmtoken = "this-gets-normalized" + nmtokens = "this also gets normalized" + id = "&internal;" + idref = "&internal;" + idrefs = "&internal; &internal; &internal;" + entity = "unparsed-1" + entities = "unparsed-1 unparsed-2" + cdata = "nothing happens to this one!" + /> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml new file mode 100644 index 0000000..79df352 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml @@ -0,0 +1,38 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE attributes SYSTEM "sa.dtd" [ + <!-- + This one is standalone since the values are + pre-normalized in this document, except that + one defaulted attribute is (re)defined internally + and so is one normalized one. + + Similarly the entity refs are internal. Unparsed + entities and notations are not listed among the + items that must not be externally declared in + standalone documents, even though processors must + in theory report their identifiers. + + --> + + <!ATTLIST attributes + token (a|b|c) "a" + notation (nonce|foo|bar) #IMPLIED + > + <!ENTITY internal "internal&number;"> + <!ENTITY number "42"> +]> + +<attributes + notation = " nonce " + nmtoken = "this-gets-normalized" + nmtokens = "this also gets normalized" + id = "&internal;" + idref = "&internal;" + idrefs = "&internal; &internal; &internal;" + entity = "unparsed-1" + entities = "unparsed-1 unparsed-2" + cdata = "nothing happens to this one!" + /> + +<?pi equals three?> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml new file mode 100644 index 0000000..45180bc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml @@ -0,0 +1,7 @@ +<?xml version='1.0' standalone='yes'?> + +<!DOCTYPE root SYSTEM "sa.dtd"> + +<root><child> + No whitespace before or after this standalone element. +</child></root> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml new file mode 100644 index 0000000..6cfdfee --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml @@ -0,0 +1,14 @@ +<!DOCTYPE root [ + <!ELEMENT root EMPTY> + <!-- + SGML dislikes token reuse. It's legal XML, so any + XML parser must accept it, though it's discouraged + in documents "for interoperability" + --> + <!ATTLIST root + status (initial-draft|revision|final) "initial-draft" + position (first|intermediate|final) "first" + > +]> + +<root/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml new file mode 100644 index 0000000..4490f77 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml @@ -0,0 +1,5 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="en"/> diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml new file mode 100644 index 0000000..7d2b538 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="en-IN"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml new file mode 100644 index 0000000..678f3cc --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="i-klingon-whorf"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml new file mode 100644 index 0000000..6f7cb4a --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="x-dialect-valleygirl"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml new file mode 100644 index 0000000..135b9c8 --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="DE"/> + diff --git a/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml new file mode 100644 index 0000000..dc64fae --- /dev/null +++ b/tests/auto/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml @@ -0,0 +1,6 @@ +<!DOCTYPE root [ +<!ELEMENT root EMPTY> +<!ATTLIST root xml:lang CDATA #IMPLIED> +]> +<root xml:lang="X-Java"/> + |