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,12 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace name test: a perfectly good http URI " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
)
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
EndDocument( )

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,13 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace name test: a syntactically plausible URI with a
fictitious scheme " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" namespaceUri="zarquon://example.org/namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="zarquon://example.org/namespace" )
)
EndElement( name="foo" namespaceUri="zarquon://example.org/namespace" qualifiedName="foo" )
EndDocument( )

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,12 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace name test: a perfectly good http URI with a fragment " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" namespaceUri="http://example.org/namespace#apples" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/namespace#apples" )
)
EndElement( name="foo" namespaceUri="http://example.org/namespace#apples" qualifiedName="foo" )
EndDocument( )

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,12 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace name test: a relative URI (deprecated) " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>]
>" dtdName="foo" )
StartElement( name="foo" namespaceUri="namespaces/zaphod" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="namespaces/zaphod" )
)
EndElement( name="foo" namespaceUri="namespaces/zaphod" qualifiedName="foo" )
EndDocument( )

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,12 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace name test: a same-document relative URI (deprecated) " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" namespaceUri="#beeblebrox" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="#beeblebrox" )
)
EndElement( name="foo" namespaceUri="#beeblebrox" qualifiedName="foo" )
EndDocument( )

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,12 @@
StartDocument( documentVersion="1.0" documentEncoding="iso-8859-1" )
Comment( text=" Namespace name test: an http IRI that is not a URI " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" namespaceUri="http://example.org/rosé" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/rosé" )
)
EndElement( name="foo" namespaceUri="http://example.org/rosé" qualifiedName="foo" )
EndDocument( )

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,36 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace inequality test: different capitalization " )
DTD( text="
<!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>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/wine" )
NamespaceDeclaration( prefix="b" namespaceUri="http://Example.org/wine" )
NamespaceDeclaration( prefix="c" namespaceUri="http://example.org/Wine" )
)
Characters( whitespace text="
" )
StartElement( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/wine" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://Example.org/wine" qualifiedName="b:attr" prefix="b" value="2" )
Attribute( name="attr" namespaceUri="http://example.org/Wine" qualifiedName="c:attr" prefix="c" value="3" )
)
EndElement( name="bar" qualifiedName="bar" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

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,36 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace inequality test: different escaping " )
DTD( text="
<!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>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/%7ewilbur" )
NamespaceDeclaration( prefix="c" namespaceUri="http://example.org/%7Ewilbur" )
)
Characters( whitespace text="
" )
StartElement( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/%7ewilbur" qualifiedName="b:attr" prefix="b" value="2" )
Attribute( name="attr" namespaceUri="http://example.org/%7Ewilbur" qualifiedName="c:attr" prefix="c" value="3" )
)
EndElement( name="bar" qualifiedName="bar" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

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>

View File

@ -0,0 +1,27 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace equality test: plain repetition " )
DTD( text="
<!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>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
)
ERROR: Attribute 'b:attr' redefined.

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- Namespace equality test: plain repetition -->
<!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/~wilbur">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,27 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace equality test: use of character reference " )
DTD( text="
<!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>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
)
ERROR: Attribute 'b:attr' redefined.

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- Namespace equality test: use of character reference -->
<!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/&#x7E;wilbur">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,30 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace equality test: use of entity reference " )
DTD( text="
<!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>
<!ENTITY tilde "~">
]>" dtdName="foo"
EntityDeclaration( name="tilde" value="~" )
)
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
)
ERROR: Attribute 'b:attr' redefined.

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!-- Namespace equality test: use of entity reference -->
<!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>
<!ENTITY tilde "~">
]>
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/&tilde;wilbur">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,27 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Namespace inequality test: equal after attribute value normalization " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns:a CDATA #IMPLIED
xmlns:b NMTOKEN #IMPLIED
xmlns:c CDATA #IMPLIED>
<!ELEMENT bar ANY>
<!ATTLIST bar a:attr CDATA #IMPLIED
b:attr CDATA #IMPLIED
c:attr CDATA #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="urn:xyzzy" )
NamespaceDeclaration( prefix="b" namespaceUri="urn:xyzzy" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="urn:xyzzy" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="urn:xyzzy" qualifiedName="b:attr" prefix="b" value="2" )
)
ERROR: Attribute 'b:attr' redefined.

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- Namespace inequality test: equal after attribute value normalization -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo xmlns:a CDATA #IMPLIED
xmlns:b NMTOKEN #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="urn:xyzzy"
xmlns:b=" urn:xyzzy ">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Bad QName syntax: multiple colons " )
StartElement( name="foo" qualifiedName="foo" )
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar" )
ERROR: Expected '=', but got ':'.

View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<!-- Bad QName syntax: multiple colons -->
<foo>
<bar a:b:attr="1"/>
</foo>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Bad QName syntax: colon at end " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Expected '>' or '/', but got ':'.

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Bad QName syntax: colon at end -->
<foo: />

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Bad QName syntax: colon at start " )
Invalid( )
ERROR: Expected '?', '!', or '[a-zA-Z]', but got ':'.

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Bad QName syntax: colon at start -->
<:foo />

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Bad QName syntax: xmlns: " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Expected '=', but got ':'.

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Bad QName syntax: xmlns: -->
<foo xmlns:="http://example.org/namespace" />

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: no namespaces " )
StartElement( name="foo" qualifiedName="foo" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Simple legal case: no namespaces -->
<foo/>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: default namespace " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
)
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Simple legal case: default namespace -->
<foo xmlns="http://example.org/namespace"/>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: prefixed element " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
)
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Simple legal case: prefixed element -->
<a:foo xmlns:a="http://example.org/namespace"/>

View File

@ -0,0 +1,9 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: prefixed attribute " )
StartElement( name="foo" qualifiedName="foo"
Attribute( name="attr" namespaceUri="http://example.org/namespace" qualifiedName="a:attr" prefix="a" value="1" )
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
)
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Simple legal case: prefixed attribute -->
<foo xmlns:a="http://example.org/namespace" a:attr="1"/>

View File

@ -0,0 +1,15 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: default namespace and unbinding " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
)
Characters( whitespace text="
" )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( )
)
EndElement( name="foo" qualifiedName="foo" )
Characters( whitespace text="
" )
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- Simple legal case: default namespace and unbinding -->
<foo xmlns="http://example.org/namespace">
<foo xmlns=""/>
</foo>

View File

@ -0,0 +1,15 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: default namespace and rebinding " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
)
Characters( whitespace text="
" )
StartElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="foo"
NamespaceDeclaration( namespaceUri="http://example.org/other-namespace" )
)
EndElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="foo" )
Characters( whitespace text="
" )
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- Simple legal case: default namespace and rebinding -->
<foo xmlns="http://example.org/namespace">
<foo xmlns="http://example.org/other-namespace"/>
</foo>

View File

@ -0,0 +1,9 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Illegal use of 1.1-style prefix unbinding in 1.0 document " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
)
Characters( whitespace text="
" )
Invalid( name="foo" qualifiedName="a:foo" prefix="a" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- Illegal use of 1.1-style prefix unbinding in 1.0 document -->
<a:foo xmlns:a="http://example.org/namespace">
<a:foo xmlns:a=""/>
</a:foo>

View File

@ -0,0 +1,15 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Simple legal case: prefix rebinding " )
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
)
Characters( whitespace text="
" )
StartElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" prefix="a"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/other-namespace" )
)
EndElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" prefix="a" )
Characters( whitespace text="
" )
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a" )
EndDocument( )

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!-- Simple legal case: prefix rebinding -->
<a:foo xmlns:a="http://example.org/namespace">
<a:foo xmlns:a="http://example.org/other-namespace"/>
</a:foo>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Unbound element prefix " )
Invalid( name="foo" qualifiedName="a:foo" prefix="a" )
ERROR: Namespace prefix 'a' not declared

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Unbound element prefix -->
<a:foo/>

View File

@ -0,0 +1,6 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Unbound attribute prefix " )
Invalid( name="foo" qualifiedName="foo"
Attribute( name="attr" qualifiedName="a:attr" prefix="a" value="1" )
)
ERROR: Namespace prefix 'a' not declared

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Unbound attribute prefix -->
<foo a:attr="1"/>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: using the xml prefix undeclared " )
StartElement( name="foo" qualifiedName="foo"
Attribute( name="lang" namespaceUri="http://www.w3.org/XML/1998/namespace" qualifiedName="xml:lang" prefix="xml" value="en" )
)
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: using the xml prefix undeclared -->
<foo xml:lang="en"/>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: declaring the xml prefix correctly " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="xml" namespaceUri="http://www.w3.org/XML/1998/namespace" )
)
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: declaring the xml prefix correctly -->
<foo xmlns:xml="http://www.w3.org/XML/1998/namespace"/>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: declaring the xml prefix incorrectly " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: declaring the xml prefix incorrectly -->
<foo xmlns:xml="http://example.org/namespace"/>

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: binding another prefix
to the xml namespace " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: binding another prefix
to the xml namespace -->
<foo xmlns:yml="http://www.w3.org/XML/1998/namespace"/>

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: declaring the xmlns prefix
with its correct URI (illegal) " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: declaring the xmlns prefix
with its correct URI (illegal) -->
<foo xmlns:xmlns="http://www.w3.org/2000/xmlns/"/>

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: declaring the xmlns prefix
with an incorrect URI " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: declaring the xmlns prefix
with an incorrect URI -->
<foo xmlns:xmlns="http://example.org/namespace"/>

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: binding another prefix
to the xmlns namespace " )
Invalid( name="foo" qualifiedName="foo" )
ERROR: Illegal namespace declaration.

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: binding another prefix
to the xmlns namespace -->
<foo xmlns:ymlns="http://www.w3.org/2000/xmlns/"/>

View File

@ -0,0 +1,7 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Reserved prefixes and namespaces: binding a reserved prefix " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="xml2" namespaceUri="http://example.org/namespace" )
)
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!-- Reserved prefixes and namespaces: binding a reserved prefix -->
<foo xmlns:xml2="http://example.org/namespace"/>

View File

@ -0,0 +1,16 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: repeated identical attribute " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="2" )
)
ERROR: Attribute 'a:attr' redefined.

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: repeated identical attribute -->
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/~wilbur">
<bar a:attr="1" a:attr="2"/>
</foo>

View File

@ -0,0 +1,16 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: repeated attribute with different prefixes " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
Invalid( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
)
ERROR: Attribute 'b:attr' redefined.

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: repeated attribute with different prefixes -->
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/~wilbur">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,21 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: different attributes with same local name " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~kipper" )
)
Characters( whitespace text="
" )
StartElement( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" namespaceUri="http://example.org/~kipper" qualifiedName="b:attr" prefix="b" value="2" )
)
EndElement( name="bar" qualifiedName="bar" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: different attributes with same local name -->
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/~kipper">
<bar a:attr="1" b:attr="2"/>
</foo>

View File

@ -0,0 +1,20 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
local name " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
StartElement( name="bar" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" qualifiedName="attr" value="2" )
)
EndElement( name="bar" qualifiedName="bar" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
local name -->
<foo xmlns:a="http://example.org/~wilbur">
<bar a:attr="1" attr="2"/>
</foo>

View File

@ -0,0 +1,24 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
local name, with default namespace " )
StartElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~kipper" )
NamespaceDeclaration( namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
StartElement( name="bar" namespaceUri="http://example.org/~kipper" qualifiedName="b:bar" prefix="b"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" qualifiedName="attr" value="2" )
)
EndElement( name="bar" namespaceUri="http://example.org/~kipper" qualifiedName="b:bar" prefix="b" )
Characters( whitespace text="
" )
EndElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
local name, with default namespace -->
<foo xmlns:a="http://example.org/~wilbur"
xmlns:b="http://example.org/~kipper"
xmlns="http://example.org/~wilbur">
<b:bar a:attr="1" attr="2"/>
</foo>

View File

@ -0,0 +1,22 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
local name, with default namespace and element in default namespace " )
StartElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
NamespaceDeclaration( namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
StartElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="bar"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" qualifiedName="attr" value="2" )
)
EndElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="bar" )
Characters( whitespace text="
" )
EndElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
local name, with default namespace and element in default namespace -->
<foo xmlns:a="http://example.org/~wilbur"
xmlns="http://example.org/~wilbur">
<bar a:attr="1" attr="2"/>
</foo>

View File

@ -0,0 +1,20 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
local name, element in same namespace as prefixed attribute " )
StartElement( name="foo" qualifiedName="foo"
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
)
Characters( whitespace text="
" )
StartElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="a:bar" prefix="a"
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
Attribute( name="attr" qualifiedName="attr" value="2" )
)
EndElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="a:bar" prefix="a" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
local name, element in same namespace as prefixed attribute -->
<foo xmlns:a="http://example.org/~wilbur">
<a:bar a:attr="1" attr="2"/>
</foo>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Colon in PI name " )
Invalid( )
ERROR: Expected ' ' or '?', but got ':'.

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?>
<!-- Colon in PI name -->
<?a:b bogus?>
<foo/>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Colon in entity name " )
Invalid( )
ERROR: Expected ' ', but got ':'.

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Colon in entity name -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ENTITY a:b "bogus">
]>
<foo/>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Colon in entity name " )
Invalid( )
ERROR: Expected ' ', but got ':'.

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Colon in entity name -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!NOTATION a:b SYSTEM "notation">
]>
<foo/>

View File

@ -0,0 +1,12 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Colon in ID attribute name " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo id ID #REQUIRED>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
Attribute( name="id" qualifiedName="id" value="a:b" )
)
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!-- Colon in ID attribute name -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo id ID #REQUIRED>
]>
<foo id="a:b"/>

View File

@ -0,0 +1,21 @@
StartDocument( documentVersion="1.0" )
Comment( text=" Colon in ID attribute name " )
DTD( text="
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo id ID #IMPLIED
ref IDREF #IMPLIED>
]>" dtdName="foo" )
StartElement( name="foo" qualifiedName="foo"
Attribute( name="ref" qualifiedName="ref" value="a:b" )
)
Characters( whitespace text="
" )
StartElement( name="foo" qualifiedName="foo"
Attribute( name="id" qualifiedName="id" value="a:b" )
)
EndElement( name="foo" qualifiedName="foo" )
Characters( whitespace text="
" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- Colon in ID attribute name -->
<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!ATTLIST foo id ID #IMPLIED
ref IDREF #IMPLIED>
]>
<foo ref="a:b">
<foo id="a:b"/>
</foo>

View File

@ -0,0 +1,5 @@
StartDocument( documentVersion="1.0" documentEncoding="UTF-8" )
StartElement( name="foo" qualifiedName="foo" )
Characters( text="<bar]>" )
EndElement( name="foo" qualifiedName="foo" )
EndDocument( )

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<foo>&lt;bar]></foo>

View File

@ -0,0 +1,4 @@
StartDocument( documentVersion="1.0" documentEncoding="UTF-8" )
StartElement( name="foo" qualifiedName="foo" )
Invalid( )
ERROR: Sequence ']]>' not allowed in content.

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<foo>illegal sequence]]></foo>

View File

@ -0,0 +1,4 @@
StartDocument( )
StartElement( name="เจมส์" qualifiedName="เจมส์" )
EndElement( name="เจมส์" qualifiedName="เจมส์" )
EndDocument( )

View File

@ -0,0 +1,8 @@
StartDocument( )
StartElement( name="doc" namespaceUri="namespaceUri" qualifiedName="ns:doc" prefix="ns"
Attribute( name="space" namespaceUri="http://www.w3.org/XML/1998/namespace" qualifiedName="xml:space" prefix="xml" value="preserve" )
NamespaceDeclaration( prefix="ns" namespaceUri="namespaceUri" )
)
EndElement( name="doc" namespaceUri="namespaceUri" qualifiedName="ns:doc" prefix="ns" )
EndDocument( )

View File

@ -0,0 +1 @@
<ns:doc xmlns:ns="namespaceUri" xml:space="preserve"/>

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