-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-catalog.xml
202 lines (192 loc) · 7.59 KB
/
sample-catalog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?xml version="1.0" encoding="UTF-8"?>
<sample-catalog xmlns="https://github.com/invisibleXML/ixml/test-catalog" release-date="2022-06-01"
name="iXML CG Sample Grammars" baseURI="https://raw.githubusercontent.com/invisibleXML/ixml/master/samples/">
<description>
<p>Top-level catalog for sample grammars in the iXML Community Group Sample set.</p>
</description>
<sample name="ABNF">
<ixml-grammar-ref href="ABNF/ABNF.ixml"/>
</sample>
<sample name="bcp47">
<ixml-grammar-ref href="bcp47/bcp47.ixml"/>
<test-case name="English">
<test-string>en</test-string>
</test-case>
<test-case name="Latin Sebian">
<test-string>sr-Latn-RS</test-string>
</test-case>
</sample>
<sample name="ISBN">
<ixml-grammar-ref href="ISBN/ISBN.ixml"/>
<test-case name="DocBook 5: The Definitive Guide">
<test-string>978-0-596-80502-9</test-string>
</test-case>
<test-case name="Kernighan & Ritchie 1st Edition">
<test-string>0-13-110163-3</test-string>
</test-case>
<test-case name="Kernighan & Ritchie 2nd Edition">
<test-string>978-0131103627</test-string>
</test-case>
<test-case name="XSLT 2.0 and XPath 2.0">
<test-string>978-0-470-19274-0</test-string>
</test-case>
</sample>
<sample name="ISO date-times - lists">
<ixml-grammar-ref href="ISO-8601-2004/iso8601-list.ixml"/>
<test-case name="ISO strings">
<test-string-ref href="ISO-8601-2004/test-data.txt"/>
</test-case>
</sample>
<sample name="ISO date-times - single">
<ixml-grammar-ref href="ISO-8601-2004/iso8601.ixml"/>
<test-case name="+ve timezone">
<test-string>2022-04-17T13:55:24+01:00</test-string>
</test-case>
<test-case name="-ve timezone">
<test-string>2022-04-17T13:55:24-03:00</test-string>
</test-case>
<test-case name="ambiguous">
<test-string>20</test-string>
</test-case>
</sample>
<sample name="Oberon">
<ixml-grammar-ref href="Oberon/Grammars/Oberon.ixml"/>
<test-case name="ORB">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORB.Mod.txt"/>
</test-case>
<test-case name="ORG">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORG.Mod.txt"/>
</test-case>
<test-case name="ORP">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORP.Mod.txt"/>
</test-case>
<test-case name="ORS">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORS.Mod.txt"/>
</test-case>
<test-case name="ORTool">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORTool.Mod.txt"/>
</test-case>
</sample>
<sample name="Oberon.1">
<ixml-grammar-ref href="Oberon/Grammars/Oberon.1.ixml"/>
<test-case name="ORB">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORB.Mod.txt"/>
</test-case>
<test-case name="ORG">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORG.Mod.txt"/>
</test-case>
<test-case name="ORP">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORP.Mod.txt"/>
</test-case>
<test-case name="ORS">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORS.Mod.txt"/>
</test-case>
<test-case name="ORTool">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORTool.Mod.txt"/>
</test-case>
</sample>
<sample name="Oberon-Test">
<ixml-grammar-ref href="Oberon/Grammars/Oberon.test.ixml"/>
<test-case name="ORB">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORB.Mod.txt"/>
</test-case>
<test-case name="ORG">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORG.Mod.txt"/>
</test-case>
<test-case name="ORP">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORP.Mod.txt"/>
</test-case>
<test-case name="ORS">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORS.Mod.txt"/>
</test-case>
<test-case name="ORTool">
<test-string-ref href="Oberon/Project-Oberon-2013-materials/ORTool.Mod.txt"/>
</test-case>
</sample>
<sample name="URI">
<ixml-grammar-ref href="URI/rfc-3986.ixml"/>
<test-case name="Invisible XML">
<test-string>https://invisiblexml.org/</test-string>
</test-case>
<test-case name="foo:">
<test-string>foo://example.com:8042/over/there?name=ferret#nose</test-string>
</test-case>
<test-case name="ftp:">
<test-string>ftp://cnn.example.com&[email protected]/top_story.htm</test-string>
</test-case>
<test-case name="tel:">
<test-string>tel:+1-816-555-1212</test-string>
</test-case>
<test-case name="urn:">
<test-string>urn:oasis:names:specification:docbook:dtd:xml:4.1.2</test-string>
</test-case>
<test-case name="http:#WARNING">
<test-string>http://www.ics.uci.edu/pub/ietf/uri/historical.html#WARNING</test-string>
</test-case>
</sample>
<sample name="IRI">
<ixml-grammar-ref href="URI/rfc-3987.ixml"/>
</sample>
<sample name="XPath - minimised tree">
<ixml-grammar-ref local="xpath/XPath.reducedTree.ixml"/>
<test-case name="simple arith">
<test-string>1 + 2</test-string>
</test-case>
<test-case name="simple expression">
<test-string>a/b/c!(1 + 3 * @value)</test-string>
</test-case>
<test-case name="mixed sequence">
<test-string>map{'a':1, b:(2,9)}, 123 + de:ab(890,de:fg) treat as BOO? * $fred[true()] - a/b/c</test-string>
</test-case>
<test-case name="function">
<test-string>let $f := function($a) as xs:integer {$a+$a}
return $f(23)</test-string>
</test-case>
<test-case name="lets and if">
<test-string>let $y := 23,
$z:='the quick brown fox',
$f := function($a) as xs:integer {$a+$a},
$m := map{'a':1,'b':2 + 6}
return
if(some $foo in a/../b[bar]/if/then/following satisfies true())
then
(45, $m?b)
else
(for $x in 1 to 20 return
$f($x))</test-string>
</test-case>
<!--<QT3 href="http://localhost/QT3/prod/InlineFunctionExpr.xml"/>
<QT3 href="http://localhost/QT3/prod/CurlyArrayConstructor.xml"/>-->
<ZQT3 href="http://localhost/QT3/catalog.xml"/>
</sample>
<sample name="XPath - full tree">
<ixml-grammar-ref local="xpath/XPath.ixml"/>
<test-case name="simple arith">
<test-string>1 + 2</test-string>
</test-case>
<test-case name="simple expression">
<test-string>a/b/c!(1 + 3 * @value)</test-string>
</test-case>
<test-case name="mixed sequence">
<test-string>map{'a':1, b:(2,9)}, 123 + de:ab(890,de:fg) treat as BOO? * $fred[true()] - a/b/c</test-string>
</test-case>
<test-case name="function">
<test-string>let $f := function($a) as xs:integer {$a+$a}
return $f(23)</test-string>
</test-case>
<test-case name="lets and if">
<test-string>let $y := 23,
$z:='the quick brown fox',
$f := function($a) as xs:integer {$a+$a},
$m := map{'a':1,'b':2 + 6}
return
if(some $foo in a/../b[bar]/if/then/following satisfies true())
then
(45, $m?b)
else
(for $x in 1 to 20 return
$f($x))</test-string>
</test-case>
<ZQT3 href="http://localhost/QT3/catalog.xml"/>
</sample>
</sample-catalog>