qt 6.5.1 original

This commit is contained in:
kleuter
2023-10-29 23:33:08 +01:00
parent 71d22ab6b0
commit 85d238dfda
21202 changed files with 5499099 additions and 0 deletions

View File

@ -0,0 +1,2 @@
/matrix.html/1.1/Thu Feb 7 20:06:35 2002//
D/xmlconf////

View File

@ -0,0 +1 @@
2001/XML-Test-Suite

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
/changes.html/1.1/Wed Oct 17 09:38:35 2001//
/readme.html/1.1/Wed Oct 17 09:38:35 2001//
/testcases.dtd/1.4/Tue Dec 9 12:52:04 2003//
/xmlconf-20010315.htm/1.1/Wed Oct 17 09:38:35 2001//
/xmlconf-20010315.xml/1.1/Wed Oct 17 09:16:24 2001//
/xmlconf-20020521.htm/1.1/Wed May 22 18:12:23 2002//
/xmlconf-20031030.htm/1.1/Thu Nov 6 12:43:18 2003//
/xmlconf.xml/1.8/Thu Jun 1 12:55:35 2006//
/xmlconformance.msxsl/1.1/Wed Oct 17 09:38:36 2001//
/xmlconformance.xsl/1.6/Thu Nov 6 12:37:13 2003//
D/eduni////
D/files////
D/ibm////
D/japanese////
D/oasis////
D/sun////
D/xmltest////

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1,384 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>NIST XML Conformance Testing</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="XML Conformance" name=keyword>
<META content=NIST,OASIS,XML,Conformance name=keywords><LINK
href="files/committee.css"
rel=Stylesheet type=text/css>
<META content="MSHTML 5.00.2014.210" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<p>
<center>
<table border="4" width="90%">
<tr >
<td>
<table>
<tr >
<td width="40%"><img src="files/a_oasis-logo.gif" width="350" height="125"/></td>
<td width="30%"/>
<td width="40%" align="right"><img src="files/top3.jpe" width="400" height="125"/></td>
</tr>
</table>
<center>
<table>
<tr>
<td ><b><font size="+2">A Joint Development Effort</font></b></td>
</tr>
</table>
</center>
</td>
</tr>
</table>
</center>
<p/>
<h4>OASIS XML Conformance Subcommittee<br/>Second Edition (Working Draft)<br/>15 March 2001</h4>
<table border=2 width=100% cellpadding=5>
<tr BGCOLOR=#0000FF>
<th width=20%><font color=yellow size=+1>Filename</font>
<th width=15%><font color=yellow size=+1>Collection</font>
<th width=15%><font color=yellow size=+1>Action</font>
<th width=50%><font color=yellow size=+1>Rationale</font>
<th width=10%><font color=yellow size=+1>Status</font>
</tr>
<tr>
<td>/ibm directory</td>
<td>IBM</td>
<td>add</td>
<td>Additional 1000 tests contributed by IBM</td>
<td>Closed</td>
</tr>
<tr>
<td>p02pass1.xml</td>
<td>OASIS</td>
<td>delete</td>
<td>Test was in error - was inadvertently included in the test suite</td>
<td>Closed</td>
</tr>
<tr>
<td>o-p12fail7</td>
<td>OASIS</td>
<td>modify</td>
<td>Changed test description to "The public ID has a tab character, which is disallowed"</td>
<td>Closed</td>
</tr>
<tr>
<td>o-p39fail4</td>
<td>OASIS</td>
<td>modify</td>
<td>Changed test description to "The XML declaration is improperly terminated"</td>
<td>Closed</td>
</tr>
<tr>
<td>sa02.xml</td>
<td>SUN</td>
<td>modify</td>
<td>Canonical output file changed -- characters coming from character references are not normalized.</td>
<td>Closed</td>
</tr>
<tr>
<td>not-sa02.xml</td>
<td>SUN</td>
<td>modify</td>
<td>Canonical output file changed -- characters coming from character references are not normalized.</td>
<td>Closed</td>
</tr>
<tr>
<td>valid-sa-111.xml</td>
<td>James Clark</td>
<td>no change</td>
<td>Question regarding canonical output - W3C WG clarification confirms that the canonical output was okay.</td>
<td>Closed</td>
</tr>
<tr>
<td>valid-sa-068.xml</td>
<td>James Clark</td>
<td>modify</td>
<td>Changed canonical output. Line break normalization only happens when parsing
external parsed entities, including the document entity. See 2.11 XML 1.0 Second Edition. </td>
<td>Closed</td>
</tr>
<tr>
<td>valid-sa-094</td>
<td>James Clark</td>
<td>no change</td>
<td>Test description indicates that it is not well-formed. W3C WG indicates that PE refs in attribute
values are simply not recognized. See 4.4.1 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P33-ibm33n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P33-ibm33n02.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P34-ibm34n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P35-ibm35n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P35-ibm35n02.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P35-ibm35n03.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P35-ibm35n04.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P35-ibm35n05.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P36-ibm36n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P36-ibm36n02.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P37-ibm37n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P37-ibm37n02.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P37-ibm37n03.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P37-ibm37n04.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P37-ibm37n05.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P38-ibm38n01.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P38-ibm38n02.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P38-ibm38n03.xml</td>
<td>IBM</td>
<td>remove</td>
<td>No longer relevant. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P41-ibm41n11.xml</td>
<td>IBM</td>
<td>modify</td>
<td>Typo -- changed almage to aImage</td>
<td>Closed</td>
</tr>
<tr>
<td>ibm-not-wf-P41-ibm41n12.xml</td>
<td>IBM</td>
<td>modify</td>
<td>Typo -- changed aIndrect to aIndirect</td>
<td>Closed</td>
</tr>
<tr>
<td>lang01-lang06</td>
<td>SUN</td>
<td>remove</td>
<td>Constraints tested are no longer valid. See 2.12 XML 1.0 Second Edition</td>
<td>Closed</td>
</tr>
<tr>
<td>valid-sa-012, o-p04pass1, o-p05pass1, p-08pass1</td>
<td>James Clark, OASIS/NIST</td>
<td>Modify</td>
<td>Conform to XML but not to XML Namespaces spec. In testcases.dtd, added a NAMESPACE attribute on
the TEST element to indicate whether or not the test conforms to the XML Namespaces spec.</td>
<td>Closed</td>
</tr>
<tr>
<td>valid-sa-065, valid-sa-100, o-p73pass1, cond01.xml, cond02.xml, decl01.xml, dtd07.dtd, encoding07.xml</td>
<td>SUN, OASIS/NIST, James Clark</td>
<td>no change</td>
<td>Tests define general entities which are not used, and which are either malformed or missing.
W3C Core WG confirms that entities only need to be expanded if they are used. If they are not used,
it doesn't matter whether or not they are well-formed. See Section 2.1.
</td>
<td>Closed</td>
</tr>
<tr>
<td>empty, <br>inv-not-sa14</td>
<td>SUN</td>
<td>reclassify</td>
<td>CDATA section containing only whitespace does not match the nonterminal S. See Section 3 Logical
Structure, VC: Element Valid, item 2</td>
<td>Closed</td>
</tr>
<tr>
<td>sa04.xml</td>
<td>SUN</td>
<td>Modify</td>
<td>Literals are quoted with double quotes but appear in the output file with single quotes.
Modified Second Canonical Form to surround literals with single quotes.</td>
<td>Closed</td>
</tr>
<tr>
<td>pr-xml-*</td>
<td>Fuji Xerox</td>
<td>replace</td>
<td>These files refer to spec.dtd which is missing. Include right version with the test suite.</td>
<td>Closed</td>
</tr>
<tr>
<td>Four of James Clark's tests</td>
<td>James Clark</td>
<td>modify</td>
<td>These tests have NOTATIONS and need a DOCTYPE in canonical form 2. Output files were modified.</td>
<td>Closed</td>
</tr>
<tr>
<td>sa03-sa05</td>
<td>SUN</td>
<td>No change</td>
<td>Tests are standalone, but need to read the external subset to produce the
right canonical XML. XML processors need not read the external subset if the file is standalone. If
your processor produces Second Canonical Form, then it must read the external subset to match the
supplied output file.
</td>
<td>Closed</td>
</tr>
<tr>
<td>invalid--003 - invalid--006</td>
<td>James Clark</td>
<td>modify</td>
<td>Changed test description from entity declaration to element declaration.</td>
<td>Closed</td>
</tr>
<tr>
<td>inv-not-sa02, inv-not-sa08</td>
<td>SUN</td>
<td>no change</td>
<td>Have character references to whitespace characters in a tokenized attribute. W3C Core WG confirms
that files are invalid.
</td>
<td>Closed</td>
</tr>
<tr>
<td>p74pass1.xml</td>
<td>OASIS</td>
<td>no change</td>
<td>Comment indicated that the file was classified as Invalid, but seems to be valid. The root element 'doc'
is not declared, so the file is invalid.</td>
<td>Closed</td>
</tr>
<tr>
<td>p16fail3.xml</td>
<td>OASIS</td>
<td>modify</td>
<td>Description is erroneous. File is well-formed but not valid. Updated test description to indicate
that a document must conform to the constraints expressed in a dtd to be valid.</td>
<td>Closed</td>
</tr>
<tr>
<td>001.xml, 001.ent</td>
<td>James Clark</td>
<td>no change</td>
<td>Section 4.3.2 applies, not the validity constraint. Comment indicates that test should change to not-wf
instead of invalid. W3C Core WG confirms that file is invalid -- spec is confusing and will be clarified.</td>
<td>Closed</td>
</tr>
<tr>
<td>e2.xml</td>
<td>OASIS</td>
<td>add</td>
<td>Errata [E2] imposes a VC on productions [58] and [59]. No duplicate tokens are permitted.
</td>
<td>Closed</td>
</tr>
<tr>
<td>attr11.xml, attr12.xml</td>
<td>SUN</td>
<td>modify</td>
<td>Files marked invalid, but are actually valid. The tests refer to "Attribute Default Legal" VC but this VC
is only about lexical constraints. The two tests pass the lexical test, and since the default attributes in
error are not effectively used, because the instance documents specify a value for these attributes, the fact
that they refer to an undeclared entity does not matter. Changed tests to effectively make them invalid with
respect to the VC that they claim to test.
</td>
<td>Closed</td>
</tr>
</table>
</center>
<p>
Please forward all comments/suggestions/bugs to <a href="mailto:mbrady@nist.gov">&lt;mbrady@nist.gov&gt;</a>
<br>
<hr noShade>
<div class=bottom><a href="http://www.itl.nist.gov">NIST / Information Technology Lab</a><br>
<a href="http://www.oasis-open.org/">OASIS Home</a> / <a href="http://www.oasis-open.org/committees/">OASIS Committee Pages</a>
</div>
</body>
</html>

View File

@ -0,0 +1,4 @@
D/errata-2e////
D/errata-3e////
D/namespaces////
D/xml-1.1////

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1,46 @@
/E14.dtd/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E14.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15a.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15b.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15c.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15d.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15e.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15f.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15g.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15h.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15i.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15j.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15k.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E15l.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E18-ent/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E18.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E19.dtd/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E19.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E20.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E22.xml/1.2/Thu Nov 6 17:19:30 2003//
/E24.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E27.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E29.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E2a.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E2b.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E34.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E36.dtd/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E36.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E38.ent/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E38.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E41.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E48.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E50.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E55.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E57.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E60.ent/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E60.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E61.xml/1.2/Thu Nov 6 17:20:48 2003//
/E9a.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E9b.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/errata2e.xml/1.2/Wed May 18 12:52:53 2005//
/testcases.dtd/1.1.1.1/Tue Aug 26 11:52:07 2003//
/xmlconf.xml/1.3/Thu Nov 6 17:30:18 2003//
D/out////
D/subdir1////
D/subdir2////

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni/errata-2e

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1,3 @@
<!ELEMENT foo ANY>
<!ENTITY % e "bar CDATA #IMPLIED>">
<!ATTLIST foo %e;

View File

@ -0,0 +1,2 @@
<!DOCTYPE foo SYSTEM "E14.dtd">
<foo/>

View File

@ -0,0 +1,6 @@
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ENTITY empty "">
]>
<foo>&empty;</foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
]>
<foo><!-- comment --></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
]>
<foo><?pi xxx?></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
]>
<foo> </foo>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
<!ENTITY space " ">
]>
<foo><foo/>&space;<foo/></foo>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
<!ENTITY space "&#32;">
]>
<foo><foo/>&space;<foo/></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
]>
<foo><foo/>&#32;<foo/></foo>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
<!ENTITY space "&#38;#32;">
]>
<foo><foo/>&space;<foo/></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
]>
<foo><foo/><!-- comment --><foo/></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo (foo*)>
]>
<foo><foo/><?pi xxx?><foo/></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo (PCDATA|foo)*>
]>
<foo><foo/><!-- comment --><foo/></foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo (PCDATA|foo)*>
]>
<foo><foo/><?pi xxx?><foo/></foo>

View File

@ -0,0 +1 @@
entity from main dir, right!

View File

@ -0,0 +1,7 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY % pe SYSTEM "subdir1/E18-pe">
%pe;
%intpe;
]>
<foo>&ent;</foo>

View File

@ -0,0 +1,6 @@
<!ELEMENT foo ANY>
<!ENTITY % pe "hello">
<!-- If forward were expanded when ent was declared, we were get an error,
but it is bypassed and not expanded until ent is used in the instance -->
<!ENTITY ent "%pe; &#33; &forward;">
<!ENTITY forward "goodbye">

View File

@ -0,0 +1,2 @@
<!DOCTYPE foo SYSTEM "E19.dtd">
<foo>&ent;</foo>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo bar NMTOKENS #IMPLIED>
]>
<foo bar="abc&#9;xyz"/>

View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ELEMENT foo ANY>
]>
<foo/>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY gt ">">
]>
<foo>You can use ]]&gt; or ]]&#62;</foo>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
]>
<foo><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></foo>

View File

@ -0,0 +1,7 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xml:lang NMTOKEN #IMPLIED>
]>
<foo xml:lang="nds">
<foo xml:lang="art-lojban"/>
</foo>

View File

@ -0,0 +1,6 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo bar (one|one) #IMPLIED>
]>
<foo/>

View File

@ -0,0 +1,6 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!NOTATION one SYSTEM "file:///usr/bin/awk">
<!ATTLIST foo bar NOTATION (one|one) #IMPLIED>
]>
<foo/>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ELEMENT bar (foo|foo)>
]>
<foo/>

View File

@ -0,0 +1,2 @@
<!ELEMENT foo ANY>
<!ATTLIST foo bar NMTOKENS #IMPLIED>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE foo SYSTEM "E36.dtd">
<foo bar="123
456"/>

View File

@ -0,0 +1,2 @@
<?xml version="1.1" encoding="utf-8"?>
<foo/>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY e SYSTEM "E38.ent">
]>
<foo>&e;</foo>

View File

@ -0,0 +1,5 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xml:lang CDATA #IMPLIED>
]>
<foo xml:lang=""/>

View File

@ -0,0 +1,4 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
]>
<foo>hello</foo>

View File

@ -0,0 +1,6 @@
<?xml version="1.1" encoding="iso-8859-1"?>
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo bar CDATA #IMPLIED>
]>
<foo<EFBFBD>bar="hello"/>

View File

@ -0,0 +1,7 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY e "an &unparsed; entity">
<!NOTATION gif SYSTEM "file:///usr/X11R6/bin/xv">
<!ENTITY unparsed SYSTEM "xyzzy" NDATA gif>
]>
<foo/>

View File

@ -0,0 +1 @@
<foo xml:space="discard-all-but-the-first-three-spaces"/>

View File

@ -0,0 +1,2 @@
<![INCLUDE[<!ATTLIST foo bar CDATA #IMPLIED>]]>
<![IGNORE[some junk]]>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY % e SYSTEM "E60.ent">
%e;
]>
<foo/>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-16"?>
<root/>

View File

@ -0,0 +1,7 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!NOTATION gif SYSTEM "file:///usr/X11R6/bin/xv">
<!ENTITY declared SYSTEM "xyzzy" NDATA gif>
<!ATTLIST foo bar ENTITY "undeclared">
]>
<foo bar="declared"/>

View File

@ -0,0 +1,7 @@
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!NOTATION gif SYSTEM "file:///usr/X11R6/bin/xv">
<!ENTITY declared SYSTEM "xyzzy" NDATA gif>
<!ATTLIST foo bar ENTITY "7">
]>
<foo bar="declared"/>

View File

@ -0,0 +1,222 @@
<TESTCASES PROFILE="Richard Tobin's XML 1.0 2nd edition errata test suite 21 Jul 2003">
<!-- E1 is an editorial change that does not need a test -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E2" URI="E2a.xml" ID="rmt-e2e-2a" TYPE="invalid">
Duplicate token in enumerated attribute declaration
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E2" URI="E2b.xml" ID="rmt-e2e-2b" TYPE="invalid">
Duplicate token in NOTATION attribute declaration
</TEST>
<!-- E3 concerns URI redirection (eg by catalog or HTTP), and can't be
reasonably tested in a standalone test suite such as this -->
<!-- E4 concerns escaping of characters in URIs by the parser, and can't be
reasonably tested in a standalone test suite such as this -->
<!-- E5-E8 are editorial changes that do not need tests -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E9" URI="E9a.xml" ID="rmt-e2e-9a" TYPE="valid">
An unused attribute default need only be syntactically correct
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E9" URI="E9b.xml" ID="rmt-e2e-9b" TYPE="invalid">
An attribute default must be syntactically correct even if unused
</TEST>
<!-- E10 is obsoleted by E45 -->
<!-- E11 updates the reference to RFC 1766 (Language Identification Tags)
to refer to RFC 3066 instead, and this does not affect the behaviour
of XML processors -->
<!-- E12 updates the reference to RFC 2376 (XML Media Types) to refer to
RFC 3023 instead; I don't think anything can be tested here -->
<!-- E13 corrects a spelling mistake -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E14" URI="E14.xml" ID="rmt-e2e-14" ENTITIES="parameter" TYPE="invalid">
Declarations mis-nested wrt parameter entities are just validity
errors (but note that some parsers treat some such errors as fatal)
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15a.xml" ID="rmt-e2e-15a" TYPE="invalid">
Empty content can't contain an entity reference
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15b.xml" ID="rmt-e2e-15b" TYPE="invalid">
Empty content can't contain a comment
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15c.xml" ID="rmt-e2e-15c" TYPE="invalid">
Empty content can't contain a PI
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15d.xml" ID="rmt-e2e-15d" TYPE="invalid">
Empty content can't contain whitespace
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15e.xml" ID="rmt-e2e-15e" TYPE="valid">
Element content can contain entity reference if replacement text is whitespace
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15f.xml" ID="rmt-e2e-15f" TYPE="valid">
Element content can contain entity reference if replacement text is whitespace,
even if it came from a character reference in the literal entity value
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15g.xml" ID="rmt-e2e-15g" TYPE="invalid">
Element content can't contain character reference to whitespace
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15h.xml" ID="rmt-e2e-15h" TYPE="invalid">
Element content can't contain entity reference if replacement text is
character reference to whitespace
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15i.xml" ID="rmt-e2e-15i" TYPE="valid">
Element content can contain a comment
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15j.xml" ID="rmt-e2e-15j" TYPE="valid">
Element content can contain a PI
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15k.xml" ID="rmt-e2e-15k" TYPE="valid">
Mixed content can contain a comment
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E15" URI="E15l.xml" ID="rmt-e2e-15l" TYPE="valid">
Mixed content can contain a PI
</TEST>
<!-- E16 is a change to the references -->
<!-- E17 is a change to the Notation section -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E18" URI="E18.xml" ID="rmt-e2e-18" ENTITIES="both" OUTPUT="out/E18.xml" TYPE="valid">
External entity containing start of entity declaration is base URI
for system identifier
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E19" URI="E19.xml" ID="rmt-e2e-19" ENTITIES="parameter" OUTPUT="out/E19.xml" TYPE="valid">
Parameter entities and character references are included-in-literal, but
general entities are bypassed.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E20" URI="E20.xml" ID="rmt-e2e-20" TYPE="invalid">
Tokens, after normalization, must be separated by space, not other
whitespace characters
</TEST>
<!-- E21 defines "internal subset" to not include the square brackets,
but I don't see any way to test this in a document -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E22" URI="E22.xml" ID="rmt-e2e-22" TYPE="valid">
UTF-8 entities may start with a BOM
</TEST>
<!-- E23 cannot be tested in a standalone test suite -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E24" URI="E24.xml" ID="rmt-e2e-24" TYPE="valid">
Either the built-in entity or a character reference can be used to
represent greater-than after two close-square-brackets
</TEST>
<!-- E25 and E26 cannot be tested in a standalone test suite -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E27" URI="E27.xml" ID="rmt-e2e-27" TYPE="not-wf">
Contains an irregular UTF-8 sequence (i.e. a surrogate pair)
</TEST>
<!-- E28 is a change to the references -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E29" URI="E29.xml" ID="rmt-e2e-29" TYPE="valid">
Three-letter language codes are allowed
</TEST>
<!-- E30-E33 are editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E34" URI="E34.xml" ID="rmt-e2e-34" TYPE="error">
A non-deterministic content model is an error even if the element type
is not used.
</TEST>
<!-- E35 is editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E36" URI="E36.xml" ID="rmt-e2e-36" ENTITIES="parameter" TYPE="valid">
An external ATTLIST declaration does not make a document non-standalone
if the normalization would have been the same without the declaration
</TEST>
<!-- E37 is a clarification that doesn't affect parsing -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E38" URI="E38.xml" ID="rmt-e2e-38" ENTITIES="general" TYPE="not-wf">
XML 1.0 document refers to 1.1 entity
</TEST>
<!-- E39 does not affect parsing -->
<!-- E40 is editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E41" URI="E41.xml" ID="rmt-e2e-41" TYPE="valid">
An xml:lang attribute may be empty
</TEST>
<!-- E42 cannot be tested without an application -->
<!-- E43 is just a consolidation of other errata -->
<!-- E44 is editorial -->
<!-- E45 can only reasonably be tested by putting the parser into a mode
where it doesn't read external entities, and we can't force that -->
<!-- E46 is editorial -->
<!-- E47 has the same problem as E45 -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E48" URI="E48.xml" ID="rmt-e2e-48" TYPE="valid">
ANY content allows character data
</TEST>
<!-- E49 is editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E50" URI="E50.xml" ID="rmt-e2e-50" VERSION="1.1" TYPE="valid">
All line-ends are normalized, even those not passed to the application.
NB this can only be tested effectively in XML 1.1, since CR is in the
S production; in 1.1 we can use NEL which isn't.
</TEST>
<!-- E51-E54 are editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E55" URI="E55.xml" ID="rmt-e2e-55" TYPE="error">
A reference to an unparsed entity in an entity value is an error rather
than forbidden (unless the entity is referenced, of course)
</TEST>
<!-- E56 is editorial -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E57" URI="E57.xml" ID="rmt-e2e-57" TYPE="error">
A value other than preserve or default for xml:space is an error
</TEST>
<!-- E58 clarifies that certain things are undefined, so there is
nothing that can usefully be tested -->
<!-- E59 is an explanatory note -->
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E60" URI="E60.xml" ID="rmt-e2e-60" ENTITIES="parameter" TYPE="valid">
Conditional sections are allowed in external parameter entities referred
to from the internal subset.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata2e" SECTIONS="E61" URI="E61.xml" ID="rmt-e2e-61" TYPE="not-wf">
(From John Cowan) An encoding declaration in ASCII specifying an encoding
that is not compatible with ASCII (so the document is not in its declared
encoding). It should generate a fatal error.
</TEST>
</TESTCASES>

View File

@ -0,0 +1,4 @@
/E18.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E19.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E24.xml/1.1.1.1/Tue Aug 26 11:52:07 2003//
D

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni/errata-2e/out

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1 @@
<foo>entity from main dir, right!</foo>

View File

@ -0,0 +1 @@
<foo>hello ! goodbye</foo>

View File

@ -0,0 +1 @@
<foo>You can use ]]&gt; or ]]&gt;</foo>

View File

@ -0,0 +1,3 @@
/E18-ent/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E18-pe/1.1.1.1/Tue Aug 26 11:52:07 2003//
D

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni/errata-2e/subdir1

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1 @@
entity from subdir1, wrong!

View File

@ -0,0 +1,2 @@
<!ENTITY % extpe SYSTEM "../subdir2/E18-extpe">
<!ENTITY % intpe "%extpe;">

View File

@ -0,0 +1,3 @@
/E18-ent/1.1.1.1/Tue Aug 26 11:52:07 2003//
/E18-extpe/1.1.1.1/Tue Aug 26 11:52:07 2003//
D

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni/errata-2e/subdir2

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1 @@
entity from subdir2, wrong!

View File

@ -0,0 +1 @@
<!ENTITY ent SYSTEM 'E18-ent'>

View File

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@(#)testcases.dtd 1.6 99/01/21
Original version copyright 1998 by Sun Microsystems, Inc.
All Rights Reserved.
Modifications copyright 1999 by OASIS.
1999-06-09 00:20
DTD describing a database of XML tests.
NOTE: the OASIS/NIST test effort also has a DTD for its test
environment, but that DTD is not yet suited for automated test
processing. (Among other issues, it doesn't record information
putting any test case into the test matrix.) If that gets fixed,
it may be useful to switch over to that DTD.
-->
<!--
The root element of the whole collection is TESTSUITE. While not
very different from TESTCASES, it must be distinguished due to
improper processing by IE5.
-->
<!ELEMENT TESTSUITE ( TESTCASES+ )>
<!ATTLIST TESTSUITE
PROFILE CDATA #IMPLIED
>
<!--
The root element of a collection should be "TESTCASES". It groups
a set of tests in a particular "PROFILE", which is descriptive. For
example, a "Japanese" profile might group tests with documents
in standard Japanese encodings, using Japanese characters used
inside names and name tokens as well as inside text. Or the
profile might be associated with the test supplier.
-->
<!ELEMENT TESTCASES (TEST|TESTCASES)*>
<!ATTLIST TESTCASES
PROFILE CDATA #IMPLIED
>
<!--
The body of each TEST element is its description, used
to evaluate the diagnostic produced on negative tests.
People will generally read this to evaluate whether the
test failed for the correct reason.
The type of (external) ENTITIES required affect the results
permitted for certain types of nonvalidating parsers. In
some cases, errors (even well-formedness errors) can't be seen
without reading external parameter or general entities.
Each test has a unique ID used in diagnostics.
Tests with an OUTPUT attribute do dual duty: not only must parsers
accept the test, but the data they report must also have "Second
Canonical Form" as found in the specified output file. (This is
what James Clark titled "Canonical XML", with the addition of the
NOTATION declarations that all XML parsers are required to report.)
The OUTPUT3 attribute is like OUTPUT, but when sent through a
validating parser the data reported must have the "Third Canonical
Form" as found in the specified output file. (This is Second
Canonical form, with declarations of unparsed ENTITY values and
with all ignorable whitespace removed.)
Tests apply to one or more particular SECTIONS.
Each test has a TYPE:
* All parsers must accept "valid" testcases.
* Nonvalidating parsers must also accept "invalid" testcases,
but validating ones must reject them.
* No parser should accept a "not-wf" testcase unless it's a
nonvalidating parser and the test contains external entities
that the parser doesn't read.
* Parsers are not required to report "errors".
Each test is in a particular XML document, with a URI. If these
tests are accessed over a network, the path will be relative to
the base URI of the document holding the testcase.
-->
<!ELEMENT TEST (#PCDATA | EM | B)*>
<!ATTLIST TEST
ENTITIES (both|none|parameter|general) "none"
ID ID #REQUIRED
OUTPUT CDATA #IMPLIED
OUTPUT3 CDATA #IMPLIED
SECTIONS CDATA #REQUIRED
TYPE (valid|invalid|not-wf|error) #REQUIRED
URI CDATA #REQUIRED
NAMESPACE (yes|no) "yes"
>
<!--
Really basic HTML font tweaks, to support highlighting
some aspects of test descriptions ...
EM == emphasis (e.g. italics, fun colors)
B == bold
-->
<!ELEMENT EM (#PCDATA | B)*>
<!ELEMENT B (#PCDATA | EM)*>

View File

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- Richard Tobin's XML 1.0 2nd edition errata test suite.
Copyright Richard Tobin, HCRC July 2003.
May be freely redistributed provided copyright notice is retained.
-->
<?xml-stylesheet href="xmlconformance.xsl" type="text/xsl"?>
<!DOCTYPE TESTSUITE SYSTEM "testcases.dtd" [
<!ENTITY eduni-errata2e SYSTEM "errata2e.xml">
]>
<TESTSUITE PROFILE="Richard Tobin's XML 1.0 2nd edition errata test suite 21 Jul 2003">
&eduni-errata2e;
</TESTSUITE>

View File

@ -0,0 +1,17 @@
/E05a.xml/1.1/Thu Jun 1 12:24:56 2006//
/E05b.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06a.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06b.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06c.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06d.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06e.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06f.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06g.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06h.xml/1.1/Thu Jun 1 12:24:57 2006//
/E06i.xml/1.1/Thu Jun 1 12:24:57 2006//
/E12.xml/1.1/Thu Jun 1 12:24:57 2006//
/E13.xml/1.1/Thu Jun 1 12:24:57 2006//
/errata3e.xml/1.3/Thu Jun 1 12:55:35 2006//
/testcases.dtd/1.1/Thu Jun 1 11:45:56 2006//
/xmlconf.xml/1.2/Thu Jun 1 12:55:35 2006//
D

View File

@ -0,0 +1 @@
2001/XML-Test-Suite/xmlconf/eduni/errata-3e

View File

@ -0,0 +1 @@
:pserver:anonymous@dev.w3.org:/sources/public

View File

@ -0,0 +1,5 @@
<!-- CDATA sections may occur in Mixed content. -->
<!DOCTYPE foo [
<!ELEMENT foo (#PCDATA|foo)*>
]>
<foo>a <![CDATA[cdata section]]> in mixed content</foo>

View File

@ -0,0 +1,9 @@
<!-- CDATA sections, comments and PIs may occur in ANY content. -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
]>
<foo>
a <![CDATA[cdata section]]> in mixed content.
a <!-- comment --> in mixed content.
a <?processing instruction?> in mixed content.
</foo>

View File

@ -0,0 +1,7 @@
<!-- Default values for IDREF attributes must match Name. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo id ID #IMPLIED>
<!ATTLIST foo a IDREF "34">
]>
<foo id="g0034" a="g0034"/>

View File

@ -0,0 +1,8 @@
<!-- Default values for ENTITY attributes must match Name. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo a ENTITY "34">
<!ENTITY ent SYSTEM "foo" NDATA not>
<!NOTATION not SYSTEM "not">
]>
<foo a="ent"/>

View File

@ -0,0 +1,7 @@
<!-- Default values for IDREFS attributes must match Names. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo id ID #IMPLIED>
<!ATTLIST foo a IDREFS "34">
]>
<foo id="g0034" a="g0034"/>

View File

@ -0,0 +1,8 @@
<!-- Default values for ENTITIES attributes must match Names. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo a ENTITIES "34">
<!ENTITY ent SYSTEM "foo" NDATA not>
<!NOTATION not SYSTEM "not">
]>
<foo a="ent"/>

View File

@ -0,0 +1,6 @@
<!-- Default values for NMTOKEN attributes must match Nmtoken. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo a NMTOKEN "34+">
]>
<foo a="34"/>

View File

@ -0,0 +1,6 @@
<!-- Default values for NMTOKENS attributes must match Nmtokens. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo a NMTOKENS "34+">
]>
<foo a="34"/>

View File

@ -0,0 +1,8 @@
<!-- Default values for NOTATION attributes must match one of the enumerated values. -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo a NOTATION (not) "not2">
<!NOTATION not SYSTEM "not">
<!NOTATION not2 SYSTEM "not2">
]>
<foo a="not">junk</foo>

View File

@ -0,0 +1,6 @@
<!-- Default values for enumerated attributes must match one of the enumerated values. -->
<!DOCTYPE foo [
<!ELEMENT foo EMPTY>
<!ATTLIST foo a (one|two|three) "four">
]>
<foo a="one"/>

View File

@ -0,0 +1,12 @@
<!-- Non-syntactic validity errors in default attributes only happen if the attribute is in fact defaulted. -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo id ID #IMPLIED>
<!ATTLIST foo ref IDREF "undef">
<!ATTLIST foo ent ENTITY "undef">
<!-- can't test NOTATION attribute, because if it's undeclared then we'll
get an error for one of the enumerated values being undeclared. -->
<!ENTITY ent SYSTEM "foo" NDATA not>
<!NOTATION not SYSTEM "not">
]>
<foo id="g0034" ref="g0034" ent="ent"/>

View File

@ -0,0 +1,7 @@
<!-- Default values for attributes may not contain references to external entities. -->
<!DOCTYPE foo [
<!ENTITY ent SYSTEM "ent">
<!ELEMENT foo ANY>
<!ATTLIST foo a CDATA "contains &ent; reference">
]>
<foo a="not defaulted"/>

View File

@ -0,0 +1,7 @@
<!-- Even internal parameter entity references are enough to make undeclared entities into mere validity errors rather than well-formedness errors. -->
<!DOCTYPE foo [
<!ENTITY % pe "<!ENTITY ent1 'text'>">
%pe;
<!ELEMENT foo ANY>
]>
<foo>&ent2;</foo>

View File

@ -0,0 +1,67 @@
<TESTCASES PROFILE="Richard Tobin's XML 1.0 3rd edition errata test suite 1 June 2006">
<!-- These tests are for the errata to XML 1.0 3rd edition
(http://www.w3.org/XML/xml-V10-3e-errata).
The errata to XML 1.1 (first edition) are a superset of these
(http://www.w3.org/XML/xml-V11-1e-errata).
The additional XML 1.1 errata are (a) minor fixes to the BNF
and (b) a correction concerning 1.0 compatibility; these do
not seem to me to merit tests. -->
<!-- E01 concerns xml:lang and is not testable at the XML level -->
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E05" URI="E05a.xml" ID="rmt-e3e-05a" TYPE="valid">
CDATA sections may occur in Mixed content.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E05" URI="E05b.xml" ID="rmt-e3e-05b" TYPE="valid">
CDATA sections, comments and PIs may occur in ANY content.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06a.xml" ID="rmt-e3e-06a" TYPE="invalid">
Default values for IDREF attributes must match Name.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06b.xml" ID="rmt-e3e-06b" TYPE="invalid">
Default values for ENTITY attributes must match Name.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06c.xml" ID="rmt-e3e-06c" TYPE="invalid">
Default values for IDREFS attributes must match Names.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06d.xml" ID="rmt-e3e-06d" TYPE="invalid">
Default values for ENTITIES attributes must match Names.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06e.xml" ID="rmt-e3e-06e" TYPE="invalid">
Default values for NMTOKEN attributes must match Nmtoken.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06f.xml" ID="rmt-e3e-06f" TYPE="invalid">
Default values for NMTOKENS attributes must match Nmtokens.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06g.xml" ID="rmt-e3e-06g" TYPE="invalid">
Default values for NOTATION attributes must match one of the enumerated values.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06h.xml" ID="rmt-e3e-06h" TYPE="invalid">
Default values for enumerated attributes must match one of the enumerated values.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E06" URI="E06i.xml" ID="rmt-e3e-06i" TYPE="valid">
Non-syntactic validity errors in default attributes only happen if
the attribute is in fact defaulted.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E12" URI="E12.xml" ID="rmt-e3e-12" TYPE="not-wf">
Default values for attributes may not contain references to external entities.
</TEST>
<TEST RECOMMENDATION="XML1.0-errata3e" SECTIONS="E13" URI="E13.xml" ID="rmt-e3e-13" TYPE="invalid">
Even internal parameter entity references are enough to make undeclared
entities into mere validity errors rather than well-formedness errors.
</TEST>
</TESTCASES>

View File

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
@(#)testcases.dtd 1.6 99/01/21
Original version copyright 1998 by Sun Microsystems, Inc.
All Rights Reserved.
Modifications copyright 1999 by OASIS.
1999-06-09 00:20
DTD describing a database of XML tests.
NOTE: the OASIS/NIST test effort also has a DTD for its test
environment, but that DTD is not yet suited for automated test
processing. (Among other issues, it doesn't record information
putting any test case into the test matrix.) If that gets fixed,
it may be useful to switch over to that DTD.
-->
<!--
The root element of the whole collection is TESTSUITE. While not
very different from TESTCASES, it must be distinguished due to
improper processing by IE5.
-->
<!ELEMENT TESTSUITE ( TESTCASES+ )>
<!ATTLIST TESTSUITE
PROFILE CDATA #IMPLIED
>
<!--
The root element of a collection should be "TESTCASES". It groups
a set of tests in a particular "PROFILE", which is descriptive. For
example, a "Japanese" profile might group tests with documents
in standard Japanese encodings, using Japanese characters used
inside names and name tokens as well as inside text. Or the
profile might be associated with the test supplier.
-->
<!ELEMENT TESTCASES (TEST|TESTCASES)*>
<!ATTLIST TESTCASES
PROFILE CDATA #IMPLIED
>
<!--
The body of each TEST element is its description, used
to evaluate the diagnostic produced on negative tests.
People will generally read this to evaluate whether the
test failed for the correct reason.
The type of (external) ENTITIES required affect the results
permitted for certain types of nonvalidating parsers. In
some cases, errors (even well-formedness errors) can't be seen
without reading external parameter or general entities.
Each test has a unique ID used in diagnostics.
Tests with an OUTPUT attribute do dual duty: not only must parsers
accept the test, but the data they report must also have "Second
Canonical Form" as found in the specified output file. (This is
what James Clark titled "Canonical XML", with the addition of the
NOTATION declarations that all XML parsers are required to report.)
The OUTPUT3 attribute is like OUTPUT, but when sent through a
validating parser the data reported must have the "Third Canonical
Form" as found in the specified output file. (This is Second
Canonical form, with declarations of unparsed ENTITY values and
with all ignorable whitespace removed.)
Tests apply to one or more particular SECTIONS.
Each test has a TYPE:
* All parsers must accept "valid" testcases.
* Nonvalidating parsers must also accept "invalid" testcases,
but validating ones must reject them.
* No parser should accept a "not-wf" testcase unless it's a
nonvalidating parser and the test contains external entities
that the parser doesn't read.
* Parsers are not required to report "errors".
Each test is in a particular XML document, with a URI. If these
tests are accessed over a network, the path will be relative to
the base URI of the document holding the testcase.
-->
<!ELEMENT TEST (#PCDATA | EM | B)*>
<!ATTLIST TEST
ENTITIES (both|none|parameter|general) "none"
ID ID #REQUIRED
OUTPUT CDATA #IMPLIED
OUTPUT3 CDATA #IMPLIED
SECTIONS CDATA #REQUIRED
TYPE (valid|invalid|not-wf|error) #REQUIRED
URI CDATA #REQUIRED
NAMESPACE (yes|no) "yes"
>
<!--
Really basic HTML font tweaks, to support highlighting
some aspects of test descriptions ...
EM == emphasis (e.g. italics, fun colors)
B == bold
-->
<!ELEMENT EM (#PCDATA | B)*>
<!ELEMENT B (#PCDATA | EM)*>

View File

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- Richard Tobin's XML 1.0 3rd edition errata test suite.
Copyright Richard Tobin, HCRC June 2006.
May be freely redistributed provided copyright notice is retained.
-->
<?xml-stylesheet href="xmlconformance.xsl" type="text/xsl"?>
<!DOCTYPE TESTSUITE SYSTEM "testcases.dtd" [
<!ENTITY eduni-errata3e SYSTEM "errata3e.xml">
]>
<TESTSUITE PROFILE="Richard Tobin's XML 1.0 3rd edition errata test suite 1 June 2006">
&eduni-errata3e;
</TESTSUITE>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Namespace name test: a perfectly good http URI -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>
<foo xmlns="http://example.org/namespace"/>

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Namespace name test: a syntactically plausible URI with a
fictitious scheme -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>
<foo xmlns="zarquon://example.org/namespace"/>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Namespace name test: a perfectly good http URI with a fragment -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>
<foo xmlns="http://example.org/namespace#apples"/>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Namespace name test: a relative URI (deprecated) -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>]
>
<foo xmlns="namespaces/zaphod"/>

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Namespace name test: a same-document relative URI (deprecated) -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>
<foo xmlns="#beeblebrox"/>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Namespace name test: an http IRI that is not a URI -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>
<foo xmlns="http://example.org/ros<6F>"/>

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- Namespace inequality test: different capitalization -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns:a CDATA #IMPLIED
xmlns:b CDATA #IMPLIED
xmlns:c CDATA #IMPLIED>
<!ELEMENT bar ANY>
<!ATTLIST bar a:attr CDATA #IMPLIED
b:attr CDATA #IMPLIED
c:attr CDATA #IMPLIED>
]>
<foo xmlns:a="http://example.org/wine"
xmlns:b="http://Example.org/wine"
xmlns:c="http://example.org/Wine">
<bar a:attr="1" b:attr="2" c:attr="3"/>
</foo>

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- Namespace inequality test: different escaping -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns:a CDATA #IMPLIED
xmlns:b CDATA #IMPLIED
xmlns:c CDATA #IMPLIED>
<!ELEMENT bar ANY>
<!ATTLIST bar a:attr CDATA #IMPLIED
b:attr CDATA #IMPLIED
c:attr CDATA #IMPLIED>
]>
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/%7ewilbur"
xmlns:c="http://example.org/%7Ewilbur">
<bar a:attr="1" b:attr="2" c:attr="3"/>
</foo>

Some files were not shown because too many files have changed in this diff Show More