Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 15c6062d04 | |||
| 464ad513b6 | |||
| 336286c7cf | |||
| 1e5227f60c | |||
| 489590bdac | |||
| 963f44dbeb | |||
| 43d0638fd8 | |||
| 8e0e6f988a | |||
| 0ea34f11f3 | |||
| 1c6e76bace | |||
| 616173c5c0 | |||
| b6e36923b3 | |||
| d87b582056 | |||
| 26499833c0 | |||
| 25fe8c7264 |
@@ -4,9 +4,9 @@ version = "1.0.0"
|
||||
# Fill out these fields if you intend to generate HTML documentation or publish
|
||||
# your project to the Hex package manager.
|
||||
#
|
||||
# description = ""
|
||||
# licences = ["Apache-2.0"]
|
||||
# repository = { type = "github", user = "", repo = "" }
|
||||
description = "Gleam XML parser"
|
||||
licences = ["Apache-2.0"]
|
||||
repository = { type = "gitea", host = "git.pendleton.ie", user = "pendletong", repo = "glxml" }
|
||||
# links = [{ title = "Website", href = "" }]
|
||||
#
|
||||
# For a full reference of all the available options, you can have a look at
|
||||
|
||||
1174
src/glxml.gleam
1174
src/glxml.gleam
File diff suppressed because it is too large
Load Diff
5
test/oasis/e2.xml
Executable file
5
test/oasis/e2.xml
Executable 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
1637
test/oasis/oasis.xml
Executable file
File diff suppressed because it is too large
Load Diff
11
test/oasis/p01fail1.xml
Executable file
11
test/oasis/p01fail1.xml
Executable 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
10
test/oasis/p01fail2.xml
Executable 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
7
test/oasis/p01fail3.xml
Executable 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
1
test/oasis/p01fail4.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc>
|
||||
3
test/oasis/p01pass1.xml
Executable file
3
test/oasis/p01pass1.xml
Executable file
@@ -0,0 +1,3 @@
|
||||
<doc>
|
||||
<a><b><c/></b></a>
|
||||
</doc>
|
||||
23
test/oasis/p01pass2.xml
Executable file
23
test/oasis/p01pass2.xml
Executable 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
9
test/oasis/p01pass3.xml
Executable 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
BIN
test/oasis/p02fail1.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail10.xml
Executable file
BIN
test/oasis/p02fail10.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail11.xml
Executable file
BIN
test/oasis/p02fail11.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail12.xml
Executable file
BIN
test/oasis/p02fail12.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail13.xml
Executable file
BIN
test/oasis/p02fail13.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail14.xml
Executable file
BIN
test/oasis/p02fail14.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail15.xml
Executable file
BIN
test/oasis/p02fail15.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail16.xml
Executable file
BIN
test/oasis/p02fail16.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail17.xml
Executable file
BIN
test/oasis/p02fail17.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail18.xml
Executable file
BIN
test/oasis/p02fail18.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail19.xml
Executable file
BIN
test/oasis/p02fail19.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail2.xml
Executable file
BIN
test/oasis/p02fail2.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail20.xml
Executable file
BIN
test/oasis/p02fail20.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail21.xml
Executable file
BIN
test/oasis/p02fail21.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail22.xml
Executable file
BIN
test/oasis/p02fail22.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail23.xml
Executable file
BIN
test/oasis/p02fail23.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail24.xml
Executable file
BIN
test/oasis/p02fail24.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail25.xml
Executable file
BIN
test/oasis/p02fail25.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail26.xml
Executable file
BIN
test/oasis/p02fail26.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail27.xml
Executable file
BIN
test/oasis/p02fail27.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail28.xml
Executable file
BIN
test/oasis/p02fail28.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail29.xml
Executable file
BIN
test/oasis/p02fail29.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail3.xml
Executable file
BIN
test/oasis/p02fail3.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail30.xml
Executable file
BIN
test/oasis/p02fail30.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail31.xml
Executable file
BIN
test/oasis/p02fail31.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail4.xml
Executable file
BIN
test/oasis/p02fail4.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail5.xml
Executable file
BIN
test/oasis/p02fail5.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail6.xml
Executable file
BIN
test/oasis/p02fail6.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail7.xml
Executable file
BIN
test/oasis/p02fail7.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail8.xml
Executable file
BIN
test/oasis/p02fail8.xml
Executable file
Binary file not shown.
BIN
test/oasis/p02fail9.xml
Executable file
BIN
test/oasis/p02fail9.xml
Executable file
Binary file not shown.
BIN
test/oasis/p03fail1.xml
Executable file
BIN
test/oasis/p03fail1.xml
Executable file
Binary file not shown.
1
test/oasis/p03fail10.xml
Executable file
1
test/oasis/p03fail10.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail11.xml
Executable file
1
test/oasis/p03fail11.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail12.xml
Executable file
1
test/oasis/p03fail12.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail13.xml
Executable file
1
test/oasis/p03fail13.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail14.xml
Executable file
1
test/oasis/p03fail14.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail15.xml
Executable file
1
test/oasis/p03fail15.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail16.xml
Executable file
1
test/oasis/p03fail16.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail17.xml
Executable file
1
test/oasis/p03fail17.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail18.xml
Executable file
1
test/oasis/p03fail18.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail19.xml
Executable file
1
test/oasis/p03fail19.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail2.xml
Executable file
1
test/oasis/p03fail2.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail20.xml
Executable file
1
test/oasis/p03fail20.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail21.xml
Executable file
1
test/oasis/p03fail21.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail22.xml
Executable file
1
test/oasis/p03fail22.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail23.xml
Executable file
1
test/oasis/p03fail23.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail24.xml
Executable file
1
test/oasis/p03fail24.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail25.xml
Executable file
1
test/oasis/p03fail25.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail26.xml
Executable file
1
test/oasis/p03fail26.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail27.xml
Executable file
1
test/oasis/p03fail27.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail28.xml
Executable file
1
test/oasis/p03fail28.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail29.xml
Executable file
1
test/oasis/p03fail29.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail3.xml
Executable file
1
test/oasis/p03fail3.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail4.xml
Executable file
1
test/oasis/p03fail4.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail5.xml
Executable file
1
test/oasis/p03fail5.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail7.xml
Executable file
1
test/oasis/p03fail7.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail8.xml
Executable file
1
test/oasis/p03fail8.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
1
test/oasis/p03fail9.xml
Executable file
1
test/oasis/p03fail9.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
2
test/oasis/p03pass1.xml
Executable file
2
test/oasis/p03pass1.xml
Executable file
@@ -0,0 +1,2 @@
|
||||
|
||||
<doc/>
|
||||
1
test/oasis/p04fail1.xml
Executable file
1
test/oasis/p04fail1.xml
Executable file
@@ -0,0 +1 @@
|
||||
<A@/>
|
||||
1
test/oasis/p04fail2.xml
Executable file
1
test/oasis/p04fail2.xml
Executable file
@@ -0,0 +1 @@
|
||||
<A#/>
|
||||
1
test/oasis/p04fail3.xml
Executable file
1
test/oasis/p04fail3.xml
Executable file
@@ -0,0 +1 @@
|
||||
<A$/>
|
||||
6
test/oasis/p04pass1.xml
Executable file
6
test/oasis/p04pass1.xml
Executable file
@@ -0,0 +1,6 @@
|
||||
<doc>
|
||||
<abcdefghijklmnopqrstuvwxyz/>
|
||||
<ABCDEFGHIJKLMNOPQRSTUVWXYZ/>
|
||||
<A01234567890/>
|
||||
<A.-:̀·/>
|
||||
</doc>
|
||||
1
test/oasis/p05fail1.xml
Executable file
1
test/oasis/p05fail1.xml
Executable file
@@ -0,0 +1 @@
|
||||
<0A/>
|
||||
1
test/oasis/p05fail2.xml
Executable file
1
test/oasis/p05fail2.xml
Executable file
@@ -0,0 +1 @@
|
||||
<.A/>
|
||||
1
test/oasis/p05fail3.xml
Executable file
1
test/oasis/p05fail3.xml
Executable file
@@ -0,0 +1 @@
|
||||
<-A/>
|
||||
1
test/oasis/p05fail4.xml
Executable file
1
test/oasis/p05fail4.xml
Executable file
@@ -0,0 +1 @@
|
||||
<̀A/>
|
||||
1
test/oasis/p05fail5.xml
Executable file
1
test/oasis/p05fail5.xml
Executable file
@@ -0,0 +1 @@
|
||||
<·A/>
|
||||
8
test/oasis/p05pass1.xml
Executable file
8
test/oasis/p05pass1.xml
Executable file
@@ -0,0 +1,8 @@
|
||||
<doc>
|
||||
<A:._-0/>
|
||||
<::._-0/>
|
||||
<_:._-0/>
|
||||
<A/>
|
||||
<_/>
|
||||
<:/>
|
||||
</doc>
|
||||
13
test/oasis/p06fail1.xml
Executable file
13
test/oasis/p06fail1.xml
Executable 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
15
test/oasis/p06pass1.xml
Executable 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
6
test/oasis/p07pass1.xml
Executable 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
10
test/oasis/p08fail1.xml
Executable 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
10
test/oasis/p08fail2.xml
Executable 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
12
test/oasis/p08pass1.xml
Executable 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
2
test/oasis/p09fail1.dtd
Executable file
@@ -0,0 +1,2 @@
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 "asdf%">
|
||||
2
test/oasis/p09fail1.xml
Executable file
2
test/oasis/p09fail1.xml
Executable file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE doc SYSTEM "p09fail1.dtd">
|
||||
<doc/>
|
||||
2
test/oasis/p09fail2.dtd
Executable file
2
test/oasis/p09fail2.dtd
Executable file
@@ -0,0 +1,2 @@
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 "asdf&">
|
||||
2
test/oasis/p09fail2.xml
Executable file
2
test/oasis/p09fail2.xml
Executable file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE doc SYSTEM "p09fail2.dtd">
|
||||
<doc/>
|
||||
6
test/oasis/p09fail3.xml
Executable file
6
test/oasis/p09fail3.xml
Executable file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE doc
|
||||
[
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 "asdfA">
|
||||
]>
|
||||
<doc/>
|
||||
6
test/oasis/p09fail4.xml
Executable file
6
test/oasis/p09fail4.xml
Executable file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE doc
|
||||
[
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 'a">
|
||||
]>
|
||||
<doc/>
|
||||
6
test/oasis/p09fail5.xml
Executable file
6
test/oasis/p09fail5.xml
Executable file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE doc
|
||||
[
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 "a'>
|
||||
]>
|
||||
<doc/>
|
||||
5
test/oasis/p09pass1.dtd
Executable file
5
test/oasis/p09pass1.dtd
Executable file
@@ -0,0 +1,5 @@
|
||||
<!ELEMENT doc EMPTY>
|
||||
<!ENTITY % ent1 "">
|
||||
<!ENTITY ent2 "text2">
|
||||
<!ENTITY % ent3 "<!-- <!DOCTYPE <!ELEMENT <? '''"&ent2; %ent1;">
|
||||
<!ENTITY % ent4 '""''"'>
|
||||
2
test/oasis/p09pass1.xml
Executable file
2
test/oasis/p09pass1.xml
Executable file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE doc SYSTEM "p09pass1.dtd">
|
||||
<doc/>
|
||||
1
test/oasis/p10fail1.xml
Executable file
1
test/oasis/p10fail1.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc a="1 < 2"/>
|
||||
1
test/oasis/p10fail2.xml
Executable file
1
test/oasis/p10fail2.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc a="1 &"/>
|
||||
1
test/oasis/p10fail3.xml
Executable file
1
test/oasis/p10fail3.xml
Executable file
@@ -0,0 +1 @@
|
||||
<doc a='asd"/>
|
||||
6
test/oasis/p10pass1.xml
Executable file
6
test/oasis/p10pass1.xml
Executable file
@@ -0,0 +1,6 @@
|
||||
<doc>
|
||||
<A a="asdf>'">
|
||||
asdf
|
||||
?>%"/>
|
||||
<A a='"">'"'/>
|
||||
</doc>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user