moxml-testsuite 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1250 @@
1
+ {
2
+ "schema": 5,
3
+ "generator": "moxml 0.6.4",
4
+ "cases": {
5
+ "builtin_lexical": [
6
+ {
7
+ "type": "xs:token",
8
+ "lexical": "a b",
9
+ "valid": true
10
+ },
11
+ {
12
+ "type": "xs:ID",
13
+ "lexical": " id ",
14
+ "valid": true
15
+ },
16
+ {
17
+ "type": "xs:NMTOKEN",
18
+ "lexical": "\tx ",
19
+ "valid": true
20
+ },
21
+ {
22
+ "type": "xs:ID",
23
+ "lexical": "1d",
24
+ "valid": false
25
+ },
26
+ {
27
+ "type": "xs:integer",
28
+ "lexical": "11111111111111111111111111111",
29
+ "valid": true
30
+ },
31
+ {
32
+ "type": "xs:positiveInteger",
33
+ "lexical": "11111111111111111111111111111",
34
+ "valid": true
35
+ },
36
+ {
37
+ "type": "xs:nonNegativeInteger",
38
+ "lexical": "11111111111111111111111111111",
39
+ "valid": true
40
+ },
41
+ {
42
+ "type": "xs:negativeInteger",
43
+ "lexical": "-100000000000000000000",
44
+ "valid": true
45
+ },
46
+ {
47
+ "type": "xs:nonPositiveInteger",
48
+ "lexical": "0",
49
+ "valid": true
50
+ },
51
+ {
52
+ "type": "xs:nonPositiveInteger",
53
+ "lexical": "-0",
54
+ "valid": true
55
+ },
56
+ {
57
+ "type": "xs:long",
58
+ "lexical": "9223372036854775807",
59
+ "valid": true
60
+ },
61
+ {
62
+ "type": "xs:long",
63
+ "lexical": "9223372036854775808",
64
+ "valid": false
65
+ },
66
+ {
67
+ "type": "xs:unsignedLong",
68
+ "lexical": "18446744073709551615",
69
+ "valid": true
70
+ },
71
+ {
72
+ "type": "xs:unsignedLong",
73
+ "lexical": "18446744073709551616",
74
+ "valid": false
75
+ },
76
+ {
77
+ "type": "xs:byte",
78
+ "lexical": "128",
79
+ "valid": false
80
+ },
81
+ {
82
+ "type": "xs:unsignedByte",
83
+ "lexical": "256",
84
+ "valid": false
85
+ },
86
+ {
87
+ "type": "xs:float",
88
+ "lexical": "+INF",
89
+ "valid": true
90
+ },
91
+ {
92
+ "type": "xs:double",
93
+ "lexical": "-INF",
94
+ "valid": true
95
+ },
96
+ {
97
+ "type": "xs:float",
98
+ "lexical": "NaN",
99
+ "valid": true
100
+ },
101
+ {
102
+ "type": "xs:float",
103
+ "lexical": "1.5E-3",
104
+ "valid": true
105
+ },
106
+ {
107
+ "type": "xs:decimal",
108
+ "lexical": "5.",
109
+ "valid": true
110
+ },
111
+ {
112
+ "type": "xs:decimal",
113
+ "lexical": ".5",
114
+ "valid": true
115
+ },
116
+ {
117
+ "type": "xs:decimal",
118
+ "lexical": "1e3",
119
+ "valid": false
120
+ },
121
+ {
122
+ "type": "xs:date",
123
+ "lexical": "2024-02-29",
124
+ "valid": true
125
+ },
126
+ {
127
+ "type": "xs:date",
128
+ "lexical": "1999-02-29",
129
+ "valid": false
130
+ },
131
+ {
132
+ "type": "xs:date",
133
+ "lexical": "2024-04-31",
134
+ "valid": false
135
+ },
136
+ {
137
+ "type": "xs:date",
138
+ "lexical": "2024-13-01",
139
+ "valid": false
140
+ },
141
+ {
142
+ "type": "xs:date",
143
+ "lexical": "not-a-date",
144
+ "valid": false
145
+ },
146
+ {
147
+ "type": "xs:dateTime",
148
+ "lexical": "2024-02-29T23:59:59Z",
149
+ "valid": true
150
+ },
151
+ {
152
+ "type": "xs:dateTime",
153
+ "lexical": "1999-02-29T00:00:00",
154
+ "valid": false
155
+ },
156
+ {
157
+ "type": "xs:dateTime",
158
+ "lexical": "not-a-date",
159
+ "valid": false
160
+ },
161
+ {
162
+ "type": "xs:dateTimeStamp",
163
+ "lexical": "2024-02-29T00:00:00Z",
164
+ "valid": true
165
+ },
166
+ {
167
+ "type": "xs:dateTimeStamp",
168
+ "lexical": "2024-02-29T00:00:00",
169
+ "valid": false
170
+ },
171
+ {
172
+ "type": "xs:time",
173
+ "lexical": "23:59:59.999+05:30",
174
+ "valid": true
175
+ },
176
+ {
177
+ "type": "xs:time",
178
+ "lexical": "24:00:00",
179
+ "valid": false
180
+ },
181
+ {
182
+ "type": "xs:time",
183
+ "lexical": "25:20:00",
184
+ "valid": false
185
+ },
186
+ {
187
+ "type": "xs:time",
188
+ "lexical": "13:20:60",
189
+ "valid": false
190
+ },
191
+ {
192
+ "type": "xs:gYearMonth",
193
+ "lexical": "2024-02Z",
194
+ "valid": true
195
+ },
196
+ {
197
+ "type": "xs:gYearMonth",
198
+ "lexical": "2024-13",
199
+ "valid": false
200
+ },
201
+ {
202
+ "type": "xs:gMonthDay",
203
+ "lexical": "--02-29",
204
+ "valid": true
205
+ },
206
+ {
207
+ "type": "xs:gMonthDay",
208
+ "lexical": "--02-30",
209
+ "valid": false
210
+ },
211
+ {
212
+ "type": "xs:gDay",
213
+ "lexical": "---31",
214
+ "valid": true
215
+ },
216
+ {
217
+ "type": "xs:gDay",
218
+ "lexical": "---32",
219
+ "valid": false
220
+ },
221
+ {
222
+ "type": "xs:duration",
223
+ "lexical": "P1Y2M3DT4H5M6.5S",
224
+ "valid": true
225
+ },
226
+ {
227
+ "type": "xs:duration",
228
+ "lexical": "PT0S",
229
+ "valid": true
230
+ },
231
+ {
232
+ "type": "xs:duration",
233
+ "lexical": "-P1D",
234
+ "valid": true
235
+ },
236
+ {
237
+ "type": "xs:duration",
238
+ "lexical": "P",
239
+ "valid": false
240
+ },
241
+ {
242
+ "type": "xs:duration",
243
+ "lexical": "PT",
244
+ "valid": false
245
+ },
246
+ {
247
+ "type": "xs:duration",
248
+ "lexical": "P1Y2MT",
249
+ "valid": false
250
+ },
251
+ {
252
+ "type": "xs:duration",
253
+ "lexical": "P200.5Y",
254
+ "valid": false
255
+ },
256
+ {
257
+ "type": "xs:dayTimeDuration",
258
+ "lexical": "P1DT2H",
259
+ "valid": true
260
+ },
261
+ {
262
+ "type": "xs:dayTimeDuration",
263
+ "lexical": "P1Y",
264
+ "valid": false
265
+ },
266
+ {
267
+ "type": "xs:yearMonthDuration",
268
+ "lexical": "P1Y2M",
269
+ "valid": true
270
+ },
271
+ {
272
+ "type": "xs:yearMonthDuration",
273
+ "lexical": "P1D",
274
+ "valid": false
275
+ },
276
+ {
277
+ "type": "xs:yearMonthDuration",
278
+ "lexical": "P1YT1H",
279
+ "valid": false
280
+ },
281
+ {
282
+ "type": "xs:base64Binary",
283
+ "lexical": "aGVsbG8=",
284
+ "valid": true
285
+ },
286
+ {
287
+ "type": "xs:base64Binary",
288
+ "lexical": "abcd",
289
+ "valid": true
290
+ },
291
+ {
292
+ "type": "xs:base64Binary",
293
+ "lexical": "abcde",
294
+ "valid": false
295
+ },
296
+ {
297
+ "type": "xs:base64Binary",
298
+ "lexical": "a b",
299
+ "valid": false
300
+ },
301
+ {
302
+ "type": "xs:hexBinary",
303
+ "lexical": "0A",
304
+ "valid": true
305
+ },
306
+ {
307
+ "type": "xs:hexBinary",
308
+ "lexical": "0AB",
309
+ "valid": false
310
+ },
311
+ {
312
+ "type": "xs:QName",
313
+ "lexical": "foo",
314
+ "valid": true
315
+ },
316
+ {
317
+ "type": "xs:QName",
318
+ "lexical": "ns:foo",
319
+ "valid": true
320
+ },
321
+ {
322
+ "type": "xs:QName",
323
+ "lexical": "xmlns:xsi",
324
+ "valid": false
325
+ },
326
+ {
327
+ "type": "xs:QName",
328
+ "lexical": ":foo",
329
+ "valid": false
330
+ },
331
+ {
332
+ "type": "xs:QName",
333
+ "lexical": "a:b:c",
334
+ "valid": false
335
+ },
336
+ {
337
+ "type": "xs:NOTATION",
338
+ "lexical": "foo",
339
+ "valid": true
340
+ },
341
+ {
342
+ "type": "xs:IDREFS",
343
+ "lexical": "a b",
344
+ "valid": true
345
+ },
346
+ {
347
+ "type": "xs:IDREFS",
348
+ "lexical": "a",
349
+ "valid": true
350
+ },
351
+ {
352
+ "type": "xs:IDREFS",
353
+ "lexical": "",
354
+ "valid": false
355
+ },
356
+ {
357
+ "type": "xs:NMTOKENS",
358
+ "lexical": "a.b-c:d e",
359
+ "valid": true
360
+ },
361
+ {
362
+ "type": "xs:ENTITIES",
363
+ "lexical": "a 1",
364
+ "valid": false
365
+ },
366
+ {
367
+ "type": "xs:string",
368
+ "lexical": "anything <>&",
369
+ "valid": true
370
+ },
371
+ {
372
+ "type": "xs:anyURI",
373
+ "lexical": "http://example.com/a b",
374
+ "valid": true
375
+ },
376
+ {
377
+ "type": "xs:boolean",
378
+ "lexical": "true",
379
+ "valid": true
380
+ },
381
+ {
382
+ "type": "xs:boolean",
383
+ "lexical": "0",
384
+ "valid": true
385
+ },
386
+ {
387
+ "type": "xs:boolean",
388
+ "lexical": "TRUE",
389
+ "valid": false
390
+ },
391
+ {
392
+ "type": "xs:language",
393
+ "lexical": "en-US",
394
+ "valid": true
395
+ },
396
+ {
397
+ "type": "xs:language",
398
+ "lexical": "en_US",
399
+ "valid": false
400
+ },
401
+ {
402
+ "type": "xs:Name",
403
+ "lexical": "a:b",
404
+ "valid": true
405
+ },
406
+ {
407
+ "type": "xs:NCName",
408
+ "lexical": "a:b",
409
+ "valid": false
410
+ }
411
+ ],
412
+ "xsd_regex_translation": [
413
+ {
414
+ "pattern": "\\p{IsBasicLatin}+",
415
+ "value": "abc",
416
+ "matches": true,
417
+ "translatable": true
418
+ },
419
+ {
420
+ "pattern": "\\p{IsBasicLatin}+",
421
+ "value": "€",
422
+ "matches": false,
423
+ "translatable": true
424
+ },
425
+ {
426
+ "pattern": "\\P{IsLatin-1Supplement}",
427
+ "value": "a",
428
+ "matches": true,
429
+ "translatable": true
430
+ },
431
+ {
432
+ "pattern": "\\P{IsLatin-1Supplement}",
433
+ "value": "é",
434
+ "matches": false,
435
+ "translatable": true
436
+ },
437
+ {
438
+ "pattern": "\\p{IsGreek}",
439
+ "value": "α",
440
+ "matches": true,
441
+ "translatable": true
442
+ },
443
+ {
444
+ "pattern": "\\p{IsGreek}",
445
+ "value": "a",
446
+ "matches": false,
447
+ "translatable": true
448
+ },
449
+ {
450
+ "pattern": "\\p{L}",
451
+ "value": "a",
452
+ "matches": true,
453
+ "translatable": true
454
+ },
455
+ {
456
+ "pattern": "\\p{L}",
457
+ "value": "1",
458
+ "matches": false,
459
+ "translatable": true
460
+ },
461
+ {
462
+ "pattern": "\\p{Nd}{1,3}",
463
+ "value": "5",
464
+ "matches": true,
465
+ "translatable": true
466
+ },
467
+ {
468
+ "pattern": "\\p{Nd}{1,3}",
469
+ "value": "abc",
470
+ "matches": false,
471
+ "translatable": true
472
+ },
473
+ {
474
+ "pattern": "\\d{1,3}",
475
+ "value": "5",
476
+ "matches": false,
477
+ "translatable": false
478
+ },
479
+ {
480
+ "pattern": "\\d{1,3}",
481
+ "value": "abc",
482
+ "matches": false,
483
+ "translatable": false
484
+ },
485
+ {
486
+ "pattern": "[0-9]{1,3}",
487
+ "value": "42",
488
+ "matches": true,
489
+ "translatable": true
490
+ },
491
+ {
492
+ "pattern": "[a-z]*",
493
+ "value": "",
494
+ "matches": true,
495
+ "translatable": true
496
+ },
497
+ {
498
+ "pattern": "a|b",
499
+ "value": "b",
500
+ "matches": true,
501
+ "translatable": true
502
+ },
503
+ {
504
+ "pattern": "a|b",
505
+ "value": "c",
506
+ "matches": false,
507
+ "translatable": true
508
+ },
509
+ {
510
+ "pattern": "a.c",
511
+ "value": "abc",
512
+ "matches": true,
513
+ "translatable": true
514
+ },
515
+ {
516
+ "pattern": "a\\.c",
517
+ "value": "a.c",
518
+ "matches": true,
519
+ "translatable": true
520
+ },
521
+ {
522
+ "pattern": "\\i\\c*",
523
+ "value": "x",
524
+ "matches": false,
525
+ "translatable": false
526
+ },
527
+ {
528
+ "pattern": "[\\p{IsBasicLatin}-[abc]]+",
529
+ "value": "a",
530
+ "matches": false,
531
+ "translatable": false
532
+ },
533
+ {
534
+ "pattern": "\\p{IsNoSuchBlock}",
535
+ "value": "a",
536
+ "matches": false,
537
+ "translatable": false
538
+ }
539
+ ],
540
+ "schema_wildcards": [
541
+ {
542
+ "constraint": "##any",
543
+ "process": "strict",
544
+ "not_namespace": null,
545
+ "not_qname": [],
546
+ "item_namespace": "local",
547
+ "item_qname": "{}x",
548
+ "defined": false,
549
+ "sibling_names": [],
550
+ "covers": true,
551
+ "exclusion": null
552
+ },
553
+ {
554
+ "constraint": "##any",
555
+ "process": "strict",
556
+ "not_namespace": null,
557
+ "not_qname": [],
558
+ "item_namespace": "tns",
559
+ "item_qname": "{}x",
560
+ "defined": false,
561
+ "sibling_names": [],
562
+ "covers": true,
563
+ "exclusion": null
564
+ },
565
+ {
566
+ "constraint": "##other",
567
+ "process": "strict",
568
+ "not_namespace": null,
569
+ "not_qname": [],
570
+ "item_namespace": "local",
571
+ "item_qname": "{}x",
572
+ "defined": false,
573
+ "sibling_names": [],
574
+ "covers": false,
575
+ "exclusion": null
576
+ },
577
+ {
578
+ "constraint": "##other",
579
+ "process": "strict",
580
+ "not_namespace": null,
581
+ "not_qname": [],
582
+ "item_namespace": "tns",
583
+ "item_qname": "{}x",
584
+ "defined": false,
585
+ "sibling_names": [],
586
+ "covers": false,
587
+ "exclusion": null
588
+ },
589
+ {
590
+ "constraint": "##other",
591
+ "process": "strict",
592
+ "not_namespace": null,
593
+ "not_qname": [],
594
+ "item_namespace": "urn:other",
595
+ "item_qname": "{}x",
596
+ "defined": false,
597
+ "sibling_names": [],
598
+ "covers": true,
599
+ "exclusion": null
600
+ },
601
+ {
602
+ "constraint": "##local",
603
+ "process": "strict",
604
+ "not_namespace": null,
605
+ "not_qname": [],
606
+ "item_namespace": "local",
607
+ "item_qname": "{}x",
608
+ "defined": false,
609
+ "sibling_names": [],
610
+ "covers": true,
611
+ "exclusion": null
612
+ },
613
+ {
614
+ "constraint": "##local",
615
+ "process": "strict",
616
+ "not_namespace": null,
617
+ "not_qname": [],
618
+ "item_namespace": "urn:b",
619
+ "item_qname": "{}x",
620
+ "defined": false,
621
+ "sibling_names": [],
622
+ "covers": false,
623
+ "exclusion": null
624
+ },
625
+ {
626
+ "constraint": "##targetNamespace urn:b",
627
+ "process": "strict",
628
+ "not_namespace": null,
629
+ "not_qname": [],
630
+ "item_namespace": "tns",
631
+ "item_qname": "{}x",
632
+ "defined": false,
633
+ "sibling_names": [],
634
+ "covers": true,
635
+ "exclusion": null
636
+ },
637
+ {
638
+ "constraint": "##targetNamespace urn:b",
639
+ "process": "strict",
640
+ "not_namespace": null,
641
+ "not_qname": [],
642
+ "item_namespace": "local",
643
+ "item_qname": "{}x",
644
+ "defined": false,
645
+ "sibling_names": [],
646
+ "covers": false,
647
+ "exclusion": null
648
+ },
649
+ {
650
+ "constraint": "urn:a urn:b",
651
+ "process": "strict",
652
+ "not_namespace": null,
653
+ "not_qname": [],
654
+ "item_namespace": "urn:a",
655
+ "item_qname": "{}x",
656
+ "defined": false,
657
+ "sibling_names": [],
658
+ "covers": true,
659
+ "exclusion": null
660
+ },
661
+ {
662
+ "constraint": "urn:a urn:b",
663
+ "process": "strict",
664
+ "not_namespace": null,
665
+ "not_qname": [],
666
+ "item_namespace": "urn:c",
667
+ "item_qname": "{}x",
668
+ "defined": false,
669
+ "sibling_names": [],
670
+ "covers": false,
671
+ "exclusion": null
672
+ },
673
+ {
674
+ "constraint": "urn:a",
675
+ "process": "lax",
676
+ "not_namespace": null,
677
+ "not_qname": [],
678
+ "item_namespace": "urn:a",
679
+ "item_qname": "{}x",
680
+ "defined": false,
681
+ "sibling_names": [],
682
+ "covers": true,
683
+ "exclusion": null
684
+ },
685
+ {
686
+ "constraint": "urn:a",
687
+ "process": "skip",
688
+ "not_namespace": null,
689
+ "not_qname": [],
690
+ "item_namespace": "urn:a",
691
+ "item_qname": "{}x",
692
+ "defined": false,
693
+ "sibling_names": [],
694
+ "covers": true,
695
+ "exclusion": null
696
+ },
697
+ {
698
+ "constraint": "##any",
699
+ "process": "strict",
700
+ "not_namespace": null,
701
+ "not_qname": [
702
+ "x"
703
+ ],
704
+ "item_namespace": "local",
705
+ "item_qname": "{}x",
706
+ "defined": false,
707
+ "sibling_names": [],
708
+ "covers": true,
709
+ "exclusion": "not_qname"
710
+ },
711
+ {
712
+ "constraint": "##any",
713
+ "process": "strict",
714
+ "not_namespace": null,
715
+ "not_qname": [
716
+ "x"
717
+ ],
718
+ "item_namespace": "local",
719
+ "item_qname": "{}y",
720
+ "defined": false,
721
+ "sibling_names": [],
722
+ "covers": true,
723
+ "exclusion": null
724
+ },
725
+ {
726
+ "constraint": "##any",
727
+ "process": "lax",
728
+ "not_namespace": null,
729
+ "not_qname": [
730
+ "x"
731
+ ],
732
+ "item_namespace": "local",
733
+ "item_qname": "{}x",
734
+ "defined": true,
735
+ "sibling_names": [],
736
+ "covers": true,
737
+ "exclusion": "not_qname"
738
+ },
739
+ {
740
+ "constraint": "##any",
741
+ "process": "skip",
742
+ "not_namespace": null,
743
+ "not_qname": [
744
+ "x"
745
+ ],
746
+ "item_namespace": "local",
747
+ "item_qname": "{}x",
748
+ "defined": true,
749
+ "sibling_names": [],
750
+ "covers": true,
751
+ "exclusion": "not_qname"
752
+ },
753
+ {
754
+ "constraint": "##any",
755
+ "process": "strict",
756
+ "not_namespace": null,
757
+ "not_qname": [
758
+ "##defined"
759
+ ],
760
+ "item_namespace": "local",
761
+ "item_qname": "{}x",
762
+ "defined": false,
763
+ "sibling_names": [],
764
+ "covers": true,
765
+ "exclusion": null
766
+ },
767
+ {
768
+ "constraint": "##any",
769
+ "process": "strict",
770
+ "not_namespace": null,
771
+ "not_qname": [
772
+ "##defined"
773
+ ],
774
+ "item_namespace": "local",
775
+ "item_qname": "{}x",
776
+ "defined": true,
777
+ "sibling_names": [],
778
+ "covers": true,
779
+ "exclusion": "not_qname"
780
+ },
781
+ {
782
+ "constraint": "##any",
783
+ "process": "strict",
784
+ "not_namespace": null,
785
+ "not_qname": [
786
+ "##definedSibling"
787
+ ],
788
+ "item_namespace": "local",
789
+ "item_qname": "{}x",
790
+ "defined": false,
791
+ "sibling_names": [
792
+ "{}y"
793
+ ],
794
+ "covers": true,
795
+ "exclusion": null
796
+ },
797
+ {
798
+ "constraint": "##any",
799
+ "process": "strict",
800
+ "not_namespace": null,
801
+ "not_qname": [
802
+ "##definedSibling"
803
+ ],
804
+ "item_namespace": "local",
805
+ "item_qname": "{}x",
806
+ "defined": false,
807
+ "sibling_names": [
808
+ "{}x"
809
+ ],
810
+ "covers": true,
811
+ "exclusion": "not_qname"
812
+ },
813
+ {
814
+ "constraint": "urn:a",
815
+ "process": "strict",
816
+ "not_namespace": "urn:z",
817
+ "not_qname": [],
818
+ "item_namespace": "urn:a",
819
+ "item_qname": "{}x",
820
+ "defined": false,
821
+ "sibling_names": [],
822
+ "covers": true,
823
+ "exclusion": null
824
+ },
825
+ {
826
+ "constraint": "urn:a",
827
+ "process": "strict",
828
+ "not_namespace": "urn:z",
829
+ "not_qname": [],
830
+ "item_namespace": "urn:z",
831
+ "item_qname": "{}x",
832
+ "defined": false,
833
+ "sibling_names": [],
834
+ "covers": false,
835
+ "exclusion": "not_namespace"
836
+ },
837
+ {
838
+ "constraint": "urn:a",
839
+ "process": "lax",
840
+ "not_namespace": "urn:z",
841
+ "not_qname": [],
842
+ "item_namespace": "urn:z",
843
+ "item_qname": "{}x",
844
+ "defined": false,
845
+ "sibling_names": [],
846
+ "covers": false,
847
+ "exclusion": "not_namespace"
848
+ }
849
+ ],
850
+ "entity_registry": [
851
+ {
852
+ "seed": {
853
+ "amp": "&"
854
+ },
855
+ "qname": "amp",
856
+ "qcp": 38,
857
+ "restore_entities": false,
858
+ "mode": "lenient",
859
+ "declared": true,
860
+ "codepoint": 38,
861
+ "names": [
862
+ "amp"
863
+ ],
864
+ "primary": "amp",
865
+ "standard": true,
866
+ "restore": true
867
+ },
868
+ {
869
+ "seed": {
870
+ "NonBreakingSpace": " ",
871
+ "nbsp": " "
872
+ },
873
+ "qname": "nbsp",
874
+ "qcp": 160,
875
+ "restore_entities": true,
876
+ "mode": "lenient",
877
+ "declared": true,
878
+ "codepoint": 160,
879
+ "names": [
880
+ "NonBreakingSpace",
881
+ "nbsp"
882
+ ],
883
+ "primary": "nbsp",
884
+ "standard": false,
885
+ "restore": true
886
+ },
887
+ {
888
+ "seed": {
889
+ "nbsp": " "
890
+ },
891
+ "qname": "nbsp",
892
+ "qcp": 160,
893
+ "restore_entities": false,
894
+ "mode": "lenient",
895
+ "declared": true,
896
+ "codepoint": 160,
897
+ "names": [
898
+ "nbsp"
899
+ ],
900
+ "primary": "nbsp",
901
+ "standard": false,
902
+ "restore": false
903
+ },
904
+ {
905
+ "seed": {
906
+ "nbsp": " "
907
+ },
908
+ "qname": "nbsp",
909
+ "qcp": 160,
910
+ "restore_entities": true,
911
+ "mode": "strict",
912
+ "declared": true,
913
+ "codepoint": 160,
914
+ "names": [
915
+ "nbsp"
916
+ ],
917
+ "primary": "nbsp",
918
+ "standard": false,
919
+ "restore": true
920
+ },
921
+ {
922
+ "seed": {
923
+ "AElig": "Æ"
924
+ },
925
+ "qname": "AElig",
926
+ "qcp": 198,
927
+ "restore_entities": true,
928
+ "mode": "lenient",
929
+ "declared": true,
930
+ "codepoint": 198,
931
+ "names": [
932
+ "AElig"
933
+ ],
934
+ "primary": "AElig",
935
+ "standard": false,
936
+ "restore": true
937
+ },
938
+ {
939
+ "seed": {
940
+ "fjlig": "fj"
941
+ },
942
+ "qname": "fjlig",
943
+ "qcp": 102,
944
+ "restore_entities": true,
945
+ "mode": "lenient",
946
+ "declared": true,
947
+ "codepoint": 102,
948
+ "names": [
949
+ "fjlig"
950
+ ],
951
+ "primary": "fjlig",
952
+ "standard": false,
953
+ "restore": true
954
+ },
955
+ {
956
+ "seed": {
957
+ "DotDot": " ⃜"
958
+ },
959
+ "qname": "DotDot",
960
+ "qcp": 32,
961
+ "restore_entities": true,
962
+ "mode": "lenient",
963
+ "declared": true,
964
+ "codepoint": 32,
965
+ "names": [
966
+ "DotDot"
967
+ ],
968
+ "primary": "DotDot",
969
+ "standard": false,
970
+ "restore": true
971
+ },
972
+ {
973
+ "seed": {
974
+ "NotEqualTilde": "≂̸"
975
+ },
976
+ "qname": "NotEqualTilde",
977
+ "qcp": 8770,
978
+ "restore_entities": true,
979
+ "mode": "lenient",
980
+ "declared": true,
981
+ "codepoint": 8770,
982
+ "names": [
983
+ "NotEqualTilde"
984
+ ],
985
+ "primary": "NotEqualTilde",
986
+ "standard": false,
987
+ "restore": true
988
+ },
989
+ {
990
+ "seed": {
991
+ "esc": "\\u00A0"
992
+ },
993
+ "qname": "esc",
994
+ "qcp": 160,
995
+ "restore_entities": true,
996
+ "mode": "lenient",
997
+ "declared": true,
998
+ "codepoint": 160,
999
+ "names": [
1000
+ "esc"
1001
+ ],
1002
+ "primary": "esc",
1003
+ "standard": false,
1004
+ "restore": true
1005
+ },
1006
+ {
1007
+ "seed": {
1008
+ "bad": ""
1009
+ },
1010
+ "qname": "bad",
1011
+ "qcp": 0,
1012
+ "restore_entities": true,
1013
+ "mode": "lenient",
1014
+ "declared": false,
1015
+ "codepoint": null,
1016
+ "names": [],
1017
+ "primary": null,
1018
+ "standard": false,
1019
+ "restore": false
1020
+ },
1021
+ {
1022
+ "seed": {
1023
+ "nbsp": " "
1024
+ },
1025
+ "qname": "nope",
1026
+ "qcp": 9999,
1027
+ "restore_entities": true,
1028
+ "mode": "lenient",
1029
+ "declared": false,
1030
+ "codepoint": null,
1031
+ "names": [],
1032
+ "primary": null,
1033
+ "standard": false,
1034
+ "restore": false
1035
+ }
1036
+ ],
1037
+ "serialization": [
1038
+ {
1039
+ "id": "empty-root",
1040
+ "input": "<r/>",
1041
+ "output": "<r></r>"
1042
+ },
1043
+ {
1044
+ "id": "simple-text",
1045
+ "input": "<r>x</r>",
1046
+ "output": "<r>x</r>"
1047
+ },
1048
+ {
1049
+ "id": "attr-amp",
1050
+ "input": "<r a=\"x &amp; y\"/>",
1051
+ "output": "<r a=\"x &amp; y\"></r>"
1052
+ },
1053
+ {
1054
+ "id": "attr-lt",
1055
+ "input": "<r a=\"1 &lt; 2\"/>",
1056
+ "output": "<r a=\"1 &lt; 2\"></r>"
1057
+ },
1058
+ {
1059
+ "id": "attr-quote",
1060
+ "input": "<r a='say \"hi\"'/>",
1061
+ "output": "<r a=\"say &quot;hi&quot;\"></r>"
1062
+ },
1063
+ {
1064
+ "id": "text-escape",
1065
+ "input": "<r>1 &lt; 2 &amp; 3</r>",
1066
+ "output": "<r>1 &lt; 2 &amp; 3</r>"
1067
+ },
1068
+ {
1069
+ "id": "text-gt",
1070
+ "input": "<r>1 &gt; 2</r>",
1071
+ "output": "<r>1 &gt; 2</r>"
1072
+ },
1073
+ {
1074
+ "id": "cdata",
1075
+ "input": "<r><![CDATA[a]]><b/></r>",
1076
+ "output": "<r><![CDATA[a]]><b></b></r>"
1077
+ },
1078
+ {
1079
+ "id": "comment",
1080
+ "input": "<r><!--c--></r>",
1081
+ "output": "<r><!--c--></r>"
1082
+ },
1083
+ {
1084
+ "id": "pi",
1085
+ "input": "<r><?pi data?></r>",
1086
+ "output": "<r><?pi data?></r>"
1087
+ },
1088
+ {
1089
+ "id": "namespace-default",
1090
+ "input": "<r xmlns=\"urn:x\"><a/></r>",
1091
+ "output": "<r xmlns=\"urn:x\"><a></a></r>"
1092
+ },
1093
+ {
1094
+ "id": "namespace-prefixed-attr",
1095
+ "input": "<r xmlns:p=\"urn:p\" p:a=\"1\"/>",
1096
+ "output": "<r xmlns:p=\"urn:p\" p:a=\"1\"></r>"
1097
+ },
1098
+ {
1099
+ "id": "mixed-content",
1100
+ "input": "<r>a<b/>c</r>",
1101
+ "output": "<r>a<b></b>c</r>"
1102
+ },
1103
+ {
1104
+ "id": "attr-newline",
1105
+ "input": "<r a=\"x&#10;y\"/>",
1106
+ "output": "<r a=\"x&#10;y\"></r>"
1107
+ },
1108
+ {
1109
+ "id": "crlf-text",
1110
+ "input": "<r>a\r\nb</r>",
1111
+ "output": "<r>a\nb</r>"
1112
+ },
1113
+ {
1114
+ "id": "combo",
1115
+ "input": "<r a='1'>t&amp;t</r>",
1116
+ "output": "<r a=\"1\">t&amp;t</r>"
1117
+ },
1118
+ {
1119
+ "id": "nested-empty",
1120
+ "input": "<r><a><b/></a></r>",
1121
+ "output": "<r><a><b></b></a></r>"
1122
+ },
1123
+ {
1124
+ "id": "text-apos",
1125
+ "input": "<r>it&apos;s</r>",
1126
+ "output": "<r>it's</r>"
1127
+ },
1128
+ {
1129
+ "id": "numeric-ref",
1130
+ "input": "<r>&#65;&#233;</r>",
1131
+ "output": "<r>Aé</r>"
1132
+ },
1133
+ {
1134
+ "id": "high-codepoint-attr",
1135
+ "input": "<r a=\"é\"/>",
1136
+ "output": "<r a=\"é\"></r>"
1137
+ }
1138
+ ],
1139
+ "c14n": [
1140
+ {
1141
+ "id": "attr-order",
1142
+ "input": "<r b=\"2\" a=\"1\"/>",
1143
+ "canonical": "<r a=\"1\" b=\"2\"></r>"
1144
+ },
1145
+ {
1146
+ "id": "ns-rewrite",
1147
+ "input": "<n:r xmlns:n=\"urn:n\" xmlns:m=\"urn:m\"><n:a m:k=\"v\"/></n:r>",
1148
+ "canonical": "<n:r xmlns:m=\"urn:m\" xmlns:n=\"urn:n\"><n:a m:k=\"v\"></n:a></n:r>"
1149
+ },
1150
+ {
1151
+ "id": "ns-hoist",
1152
+ "input": "<r xmlns=\"urn:x\"><a xmlns=\"urn:y\"/></r>",
1153
+ "canonical": "<r xmlns=\"urn:x\"><a xmlns=\"urn:y\"></a></r>"
1154
+ },
1155
+ {
1156
+ "id": "text-escape",
1157
+ "input": "<r>1 &lt; 2 &amp; 3</r>",
1158
+ "canonical": "<r>1 &lt; 2 &amp; 3</r>"
1159
+ },
1160
+ {
1161
+ "id": "cdata-to-text",
1162
+ "input": "<r><![CDATA[raw data]]><b/></r>",
1163
+ "canonical": "<r>raw data<b></b></r>"
1164
+ },
1165
+ {
1166
+ "id": "comment-dropped",
1167
+ "input": "<r><!--gone--><a/></r>",
1168
+ "canonical": "<r><a></a></r>"
1169
+ },
1170
+ {
1171
+ "id": "pi-kept",
1172
+ "input": "<r><?pi data?><a/></r>",
1173
+ "canonical": "<r><?pi data?><a></a></r>"
1174
+ },
1175
+ {
1176
+ "id": "entity-expanded",
1177
+ "input": "<r>a&lt;b&amp;c</r>",
1178
+ "canonical": "<r>a&lt;b&amp;c</r>"
1179
+ },
1180
+ {
1181
+ "id": "empty-elements",
1182
+ "input": "<r><a/><b></b></r>",
1183
+ "canonical": "<r><a></a><b></b></r>"
1184
+ },
1185
+ {
1186
+ "id": "whitespace-preserved",
1187
+ "input": "<r> x <a/> y </r>",
1188
+ "canonical": "<r> x <a></a> y </r>"
1189
+ },
1190
+ {
1191
+ "id": "attr-quote-norm",
1192
+ "input": "<r a='single \"double\"'/>",
1193
+ "canonical": "<r a=\"single &quot;double&quot;\"></r>"
1194
+ },
1195
+ {
1196
+ "id": "utf8-high",
1197
+ "input": "<r>café — naïve</r>",
1198
+ "canonical": "<r>café — naïve</r>"
1199
+ },
1200
+ {
1201
+ "id": "nested-ns-default",
1202
+ "input": "<r xmlns=\"urn:a\"><c:b xmlns:c=\"urn:c\"><d xmlns=\"urn:d\"/></c:b></r>",
1203
+ "canonical": "<r xmlns=\"urn:a\"><c:b xmlns:c=\"urn:c\"><d xmlns=\"urn:d\"></d></c:b></r>"
1204
+ },
1205
+ {
1206
+ "id": "mixed-attrs-ns",
1207
+ "input": "<r xmlns:p=\"urn:p\" p:a=\"1\" b=\"2\" xmlns:q=\"urn:q\" q:c=\"3\"/>",
1208
+ "canonical": "<r xmlns:p=\"urn:p\" xmlns:q=\"urn:q\" b=\"2\" p:a=\"1\" q:c=\"3\"></r>"
1209
+ }
1210
+ ],
1211
+ "xsd_structural": [
1212
+ {
1213
+ "id": "builtin-lexical-valid",
1214
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:t\" xmlns=\"urn:t\"><xs:element name=\"doc\"><xs:complexType><xs:sequence><xs:element name=\"n\" type=\"xs:int\"/><xs:element name=\"flag\" type=\"xs:boolean\"/></xs:sequence><xs:attribute name=\"a\" type=\"xs:string\"/><xs:anyAttribute namespace=\"##any\" processContents=\"strict\"/></xs:complexType></xs:element><xs:attribute name=\"ext\" type=\"xs:string\"/></xs:schema>",
1215
+ "instance": "<d:doc xmlns:d=\"urn:t\" a=\"x\"><n>42</n><flag>true</flag></d:doc>",
1216
+ "valid": true
1217
+ },
1218
+ {
1219
+ "id": "builtin-lexical-invalid",
1220
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:t\" xmlns=\"urn:t\"><xs:element name=\"doc\"><xs:complexType><xs:sequence><xs:element name=\"n\" type=\"xs:int\"/><xs:element name=\"flag\" type=\"xs:boolean\"/></xs:sequence><xs:attribute name=\"a\" type=\"xs:string\"/><xs:anyAttribute namespace=\"##any\" processContents=\"strict\"/></xs:complexType></xs:element><xs:attribute name=\"ext\" type=\"xs:string\"/></xs:schema>",
1221
+ "instance": "<d:doc xmlns:d=\"urn:t\" a=\"x\"><n>not-an-int</n><flag>true</flag></d:doc>",
1222
+ "valid": false
1223
+ },
1224
+ {
1225
+ "id": "strict-admission-declared",
1226
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:t\" xmlns=\"urn:t\"><xs:element name=\"doc\"><xs:complexType><xs:sequence><xs:element name=\"n\" type=\"xs:int\"/><xs:element name=\"flag\" type=\"xs:boolean\"/></xs:sequence><xs:attribute name=\"a\" type=\"xs:string\"/><xs:anyAttribute namespace=\"##any\" processContents=\"strict\"/></xs:complexType></xs:element><xs:attribute name=\"ext\" type=\"xs:string\"/></xs:schema>",
1227
+ "instance": "<d:doc xmlns:d=\"urn:t\" xmlns:t=\"urn:t\" t:ext=\"y\" a=\"x\"><n>1</n><flag>false</flag></d:doc>",
1228
+ "valid": true
1229
+ },
1230
+ {
1231
+ "id": "strict-admission-undeclared",
1232
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:t\" xmlns=\"urn:t\"><xs:element name=\"doc\"><xs:complexType><xs:sequence><xs:element name=\"n\" type=\"xs:int\"/><xs:element name=\"flag\" type=\"xs:boolean\"/></xs:sequence><xs:attribute name=\"a\" type=\"xs:string\"/><xs:anyAttribute namespace=\"##any\" processContents=\"strict\"/></xs:complexType></xs:element><xs:attribute name=\"ext\" type=\"xs:string\"/></xs:schema>",
1233
+ "instance": "<d:doc xmlns:d=\"urn:t\" ghost=\"z\" a=\"x\"><n>1</n><flag>false</flag></d:doc>",
1234
+ "valid": false
1235
+ },
1236
+ {
1237
+ "id": "substitution-member",
1238
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:s\" xmlns=\"urn:s\"><xs:element name=\"shape\" type=\"xs:string\" abstract=\"true\"/><xs:element name=\"circle\" type=\"xs:string\" substitutionGroup=\"shape\"/><xs:element name=\"canvas\"><xs:complexType><xs:sequence><xs:element ref=\"shape\" maxOccurs=\"unbounded\"/></xs:sequence></xs:complexType></xs:element></xs:schema>",
1239
+ "instance": "<s:canvas xmlns:s=\"urn:s\"><s:circle>unit</s:circle></s:canvas>",
1240
+ "valid": true
1241
+ },
1242
+ {
1243
+ "id": "wildcard-lax-other-ns",
1244
+ "schema": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:t\" xmlns=\"urn:t\"><xs:element name=\"doc\"><xs:complexType><xs:sequence><xs:any processContents=\"lax\" namespace=\"##other\"/></xs:sequence></xs:complexType></xs:element></xs:schema>",
1245
+ "instance": "<d:doc xmlns:d=\"urn:t\" xmlns:o=\"urn:o\"><o:kid/></d:doc>",
1246
+ "valid": true
1247
+ }
1248
+ ]
1249
+ }
1250
+ }