test: Add xml tests
Some checks failed
test / test (push) Has been cancelled

This commit is contained in:
2025-10-10 21:28:18 +01:00
parent 336286c7cf
commit 464ad513b6
371 changed files with 3262 additions and 0 deletions

5
test/oasis/e2.xml Executable file
View File

@@ -0,0 +1,5 @@
<!DOCTYPE el [
<!ELEMENT el EMPTY>
<!ATTLIST el at (one|two|two) #IMPLIED>
]>
<e1 at="two"/>

1637
test/oasis/oasis.xml Executable file

File diff suppressed because it is too large Load Diff

11
test/oasis/p01fail1.xml Executable file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<doc>
<a><b><c/></b></a>
</doc>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>

10
test/oasis/p01fail2.xml Executable file
View File

@@ -0,0 +1,10 @@
<!--bad comment--><?xml version="1.0"?>
<doc>
<a><b><c/></b></a>
</doc>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>

7
test/oasis/p01fail3.xml Executable file
View File

@@ -0,0 +1,7 @@
<doc/><bad/>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>

1
test/oasis/p01fail4.xml Executable file
View File

@@ -0,0 +1 @@
<doc>

3
test/oasis/p01pass1.xml Executable file
View File

@@ -0,0 +1,3 @@
<doc>
<a><b><c/></b></a>
</doc>

23
test/oasis/p01pass2.xml Executable file
View File

@@ -0,0 +1,23 @@
<?PI before document element?>
<!-- comment after document element-->
<?PI before document element?>
<!-- comment after document element-->
<?PI before document element?>
<!-- comment after document element-->
<?PI before document element?>
<!DOCTYPE doc
[
<!ELEMENT doc ANY>
<!ELEMENT a ANY>
<!ELEMENT b ANY>
<!ELEMENT c ANY>
]>
<doc>
<a><b><c/></b></a>
</doc>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>

9
test/oasis/p01pass3.xml Executable file
View File

@@ -0,0 +1,9 @@
<doc>
<a><b><c/></b></a>
</doc>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>
<!-- comment after document element-->
<?PI after document element?>

BIN
test/oasis/p02fail1.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail10.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail11.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail12.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail13.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail14.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail15.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail16.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail17.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail18.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail19.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail2.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail20.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail21.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail22.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail23.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail24.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail25.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail26.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail27.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail28.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail29.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail3.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail30.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail31.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail4.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail5.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail6.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail7.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail8.xml Executable file

Binary file not shown.

BIN
test/oasis/p02fail9.xml Executable file

Binary file not shown.

BIN
test/oasis/p03fail1.xml Executable file

Binary file not shown.

1
test/oasis/p03fail10.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail11.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail12.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail13.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail14.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail15.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail16.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail17.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail18.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail19.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail2.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail20.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail21.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail22.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail23.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail24.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail25.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail26.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail27.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail28.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail29.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail3.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail4.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail5.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail7.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail8.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

1
test/oasis/p03fail9.xml Executable file
View File

@@ -0,0 +1 @@
<doc/>

2
test/oasis/p03pass1.xml Executable file
View File

@@ -0,0 +1,2 @@
<doc/>

1
test/oasis/p04fail1.xml Executable file
View File

@@ -0,0 +1 @@
<A@/>

1
test/oasis/p04fail2.xml Executable file
View File

@@ -0,0 +1 @@
<A#/>

1
test/oasis/p04fail3.xml Executable file
View File

@@ -0,0 +1 @@
<A$/>

6
test/oasis/p04pass1.xml Executable file
View File

@@ -0,0 +1,6 @@
<doc>
<abcdefghijklmnopqrstuvwxyz/>
<ABCDEFGHIJKLMNOPQRSTUVWXYZ/>
<A01234567890/>
<A.-:̀·/>
</doc>

1
test/oasis/p05fail1.xml Executable file
View File

@@ -0,0 +1 @@
<0A/>

1
test/oasis/p05fail2.xml Executable file
View File

@@ -0,0 +1 @@
<.A/>

1
test/oasis/p05fail3.xml Executable file
View File

@@ -0,0 +1 @@
<-A/>

1
test/oasis/p05fail4.xml Executable file
View File

@@ -0,0 +1 @@
<̀A/>

1
test/oasis/p05fail5.xml Executable file
View File

@@ -0,0 +1 @@
<·A/>

8
test/oasis/p05pass1.xml Executable file
View File

@@ -0,0 +1,8 @@
<doc>
<A:._-0/>
<::._-0/>
<_:._-0/>
<A/>
<_/>
<:/>
</doc>

13
test/oasis/p06fail1.xml Executable file
View File

@@ -0,0 +1,13 @@
<!--non-validating processors may pass this instance because they don't check the IDREFS attribute type-->
<!DOCTYPE doc
[
<!ELEMENT doc (a|refs)*>
<!ELEMENT a EMPTY>
<!ELEMENT refs EMPTY>
<!ATTLIST refs refs IDREFS #REQUIRED>
<!ATTLIST a id ID #REQUIRED>
]>
<doc>
<a id="A1"/><a id="A2"/><a id="A3"/>
<refs refs=""/>
</doc>

15
test/oasis/p06pass1.xml Executable file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE doc
[
<!ELEMENT doc (a|refs)*>
<!ELEMENT a EMPTY>
<!ELEMENT refs EMPTY>
<!ATTLIST refs refs IDREFS #REQUIRED>
<!ATTLIST a id ID #REQUIRED>
]>
<doc>
<a id="A1"/><a id="A2"/><a id="A3"/>
<refs refs="A1 A2 A3"/>
<refs refs="A1
A2 A3"/>
<refs refs="A1"/>
</doc>

6
test/oasis/p07pass1.xml Executable file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!ATTLIST doc att (0|35a|A|-a|:a|a:|.|_a) #IMPLIED>
]>
<doc/>

10
test/oasis/p08fail1.xml Executable file
View File

@@ -0,0 +1,10 @@
<!--note: non-validating parsers may accept this document-->
<!DOCTYPE doc
[
<!ELEMENT doc (A*)>
<!ELEMENT A EMPTY>
<!ATTLIST A att NMTOKENS #IMPLIED>
]>
<doc>
<A att=""/>
</doc>

10
test/oasis/p08fail2.xml Executable file
View File

@@ -0,0 +1,10 @@
<!--note: non-validating parsers may accept this document-->
<!DOCTYPE doc
[
<!ELEMENT doc (A*)>
<!ELEMENT A EMPTY>
<!ATTLIST A att NMTOKENS #IMPLIED>
]>
<doc>
<A att="abc / def"/>
</doc>

12
test/oasis/p08pass1.xml Executable file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE doc
[
<!ELEMENT doc (A*)>
<!ELEMENT A EMPTY>
<!ATTLIST A att NMTOKENS #IMPLIED>
]>
<doc>
<A att="abc"/><A att="abc def . :"/><A att="
abc
def
"/>
</doc>

2
test/oasis/p09fail1.dtd Executable file
View File

@@ -0,0 +1,2 @@
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 "asdf%">

2
test/oasis/p09fail1.xml Executable file
View File

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

2
test/oasis/p09fail2.dtd Executable file
View File

@@ -0,0 +1,2 @@
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 "asdf&">

2
test/oasis/p09fail2.xml Executable file
View File

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

6
test/oasis/p09fail3.xml Executable file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 "asdf&#65">
]>
<doc/>

6
test/oasis/p09fail4.xml Executable file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 'a">
]>
<doc/>

6
test/oasis/p09fail5.xml Executable file
View File

@@ -0,0 +1,6 @@
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 "a'>
]>
<doc/>

5
test/oasis/p09pass1.dtd Executable file
View File

@@ -0,0 +1,5 @@
<!ELEMENT doc EMPTY>
<!ENTITY % ent1 "">
<!ENTITY ent2 "text2">
<!ENTITY % ent3 "<!-- <!DOCTYPE <!ELEMENT <? '''&#34;&ent2; %ent1;">
<!ENTITY % ent4 '""&#x27;&#39;"'>

2
test/oasis/p09pass1.xml Executable file
View File

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

1
test/oasis/p10fail1.xml Executable file
View File

@@ -0,0 +1 @@
<doc a="1 < 2"/>

1
test/oasis/p10fail2.xml Executable file
View File

@@ -0,0 +1 @@
<doc a="1 &"/>

1
test/oasis/p10fail3.xml Executable file
View File

@@ -0,0 +1 @@
<doc a='asd"/>

6
test/oasis/p10pass1.xml Executable file
View File

@@ -0,0 +1,6 @@
<doc>
<A a="asdf>'&#34;>
asdf
?>%"/>
<A a='"">&#39;&#34;'/>
</doc>

7
test/oasis/p11fail1.xml Executable file
View File

@@ -0,0 +1,7 @@
<!--Inability to resolve a notation should not be reported as an error-->
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!NOTATION not1 SYSTEM 'a">
]>
<doc/>

7
test/oasis/p11fail2.xml Executable file
View File

@@ -0,0 +1,7 @@
<!--Inability to resolve a notation should not be reported as an error-->
<!DOCTYPE doc
[
<!ELEMENT doc EMPTY>
<!NOTATION not1 SYSTEM """>
]>
<doc/>

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