xrust 2.0.3

Support for XPath and XSLT
Documentation
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
/*

IBM test cases

*/

#[cfg(all(test, feature = "test-conformance-xml"))]
use std::fs;
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::item::Node;
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::parser::{ParseError, xml};
#[cfg(all(test, feature = "test-conformance-xml"))]
use xrust::trees::smite::RNode;

#[cfg(all(test, feature = "test-conformance-xml"))]
fn test_ibm_invalid(xmldoc: &str) {
    let testxml = RNode::new_document();
    let parseresult = xml::parse(
        testxml,
        xmldoc,
        Some(|_: &_| Err(ParseError::MissingNameSpace)),
    );

    assert!(parseresult.is_err());
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p28ibm28i01xml() {
    /*
        Test ID:ibm-invalid-P28-ibm28i01.xml
        Test URI:invalid/P28/ibm28i01.xml
        Spec Sections:2.8
        Description:The test violates VC:Root Element Type in P28. The Name in the document type declaration does not match the element type of the root element.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P28/ibm28i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p32ibm32i01xml() {
    /*
        Test ID:ibm-invalid-P32-ibm32i01.xml
        Test URI:invalid/P32/ibm32i01.xml
        Spec Sections:2.9
        Description:This test violates VC: Standalone Document Declaration in P32. The standalone document declaration has the value yes, BUT there is an external markup declaration of attributes with default values, and the associated element appears in the document with specified values for those attributes.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P32/ibm32i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p32ibm32i03xml() {
    /*
        Test ID:ibm-invalid-P32-ibm32i03.xml
        Test URI:invalid/P32/ibm32i03.xml
        Spec Sections:2.9
        Description:This test violates VC: Standalone Document Declaration in P32. The standalone document declaration has the value yes, BUT there is an external markup declaration of attributes with values that will change if normalized.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P32/ibm32i03.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p32ibm32i04xml() {
    /*
        Test ID:ibm-invalid-P32-ibm32i04.xml
        Test URI:invalid/P32/ibm32i04.xml
        Spec Sections:2.9
        Description:This test violates VC: Standalone Document Declaration in P32. The standalone document declaration has the value yes, BUT there is an external markup declaration of element with element content, and white space occurs directly within the mixed content.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P32/ibm32i04.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p39ibm39i01xml() {
    /*
        Test ID:ibm-invalid-P39-ibm39i01.xml
        Test URI:invalid/P39/ibm39i01.xml
        Spec Sections:3
        Description:This test violates VC: Element Valid in P39. Element a is declared empty in DTD, but has content in the document.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P39/ibm39i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p39ibm39i02xml() {
    /*
        Test ID:ibm-invalid-P39-ibm39i02.xml
        Test URI:invalid/P39/ibm39i02.xml
        Spec Sections:3
        Description:This test violates VC: Element Valid in P39. root is declared only having element children in DTD, but have text content in the document.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P39/ibm39i02.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p39ibm39i03xml() {
    /*
        Test ID:ibm-invalid-P39-ibm39i03.xml
        Test URI:invalid/P39/ibm39i03.xml
        Spec Sections:3
        Description:This test violates VC: Element Valid in P39. Illegal elements are inserted in b's content of Mixed type.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P39/ibm39i03.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p39ibm39i04xml() {
    /*
        Test ID:ibm-invalid-P39-ibm39i04.xml
        Test URI:invalid/P39/ibm39i04.xml
        Spec Sections:3
        Description:This test violates VC: Element Valid in P39. Element c has undeclared element as its content of ANY type
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P39/ibm39i04.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p41ibm41i01xml() {
    /*
        Test ID:ibm-invalid-P41-ibm41i01.xml
        Test URI:invalid/P41/ibm41i01.xml
        Spec Sections:3.1
        Description:This test violates VC: Attribute Value Type in P41. attr1 for Element b is not declared.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P41/ibm41i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p41ibm41i02xml() {
    /*
        Test ID:ibm-invalid-P41-ibm41i02.xml
        Test URI:invalid/P41/ibm41i02.xml
        Spec Sections:3.1
        Description:This test violates VC: Attribute Value Type in P41. attr3 for Element b is given a value that does not match the declaration in the DTD.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P41/ibm41i02.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p45ibm45i01xml() {
    /*
        Test ID:ibm-invalid-P45-ibm45i01.xml
        Test URI:invalid/P45/ibm45i01.xml
        Spec Sections:3.2
        Description:This test violates VC: Unique Element Type Declaration. Element not_unique has been declared 3 time in the DTD.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P45/ibm45i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p49ibm49i01xml() {
    /*
        Test ID:ibm-invalid-P49-ibm49i01.xml
        Test URI:invalid/P49/ibm49i01.xml
        Spec Sections:3.2.1
        Description:Violates VC:Proper Group/PE Nesting in P49. Open and close parenthesis for a choice content model are in different PE replace Texts.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P49/ibm49i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p50ibm50i01xml() {
    /*
        Test ID:ibm-invalid-P50-ibm50i01.xml
        Test URI:invalid/P50/ibm50i01.xml
        Spec Sections:3.2.1
        Description:Violates VC:Proper Group/PE Nesting in P50. Open and close parenthesis for a seq content model are in different PE replace Texts.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P50/ibm50i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p51ibm51i01xml() {
    /*
        Test ID:ibm-invalid-P51-ibm51i01.xml
        Test URI:invalid/P51/ibm51i01.xml
        Spec Sections:3.2.2
        Description:Violates VC:Proper Group/PE Nesting in P51. Open and close parenthesis for a Mixed content model are in different PE replace Texts.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P51/ibm51i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p51ibm51i03xml() {
    /*
        Test ID:ibm-invalid-P51-ibm51i03.xml
        Test URI:invalid/P51/ibm51i03.xml
        Spec Sections:3.2.2
        Description:Violates VC:No Duplicate Types in P51. Element a appears twice in the Mixed content model of Element e.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P51/ibm51i03.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i01xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i01.xml
        Test URI:invalid/P56/ibm56i01.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ID. The value of the ID attribute "UniqueName" is "@999" which does not meet the Name production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i02xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i02.xml
        Test URI:invalid/P56/ibm56i02.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ID. The two ID attributes "attr" and "UniqueName" have the same value "Ac999" for the element "b" and the element "tokenizer".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i02.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i03xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i03.xml
        Test URI:invalid/P56/ibm56i03.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ID Attribute Default. The "#FIXED" occurs in the DefaultDecl for the ID attribute "UniqueName".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i03.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i05xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i05.xml
        Test URI:invalid/P56/ibm56i05.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ID Attribute Default. The constant string "BOGUS" occurs in the DefaultDecl for the ID attribute "UniqueName".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i05.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i06xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i06.xml
        Test URI:invalid/P56/ibm56i06.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: One ID per Element Type. The element "a" has two ID attributes "first" and "second".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i06.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i07xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i07.xml
        Test URI:invalid/P56/ibm56i07.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: IDREF. The value of the IDREF attribute "reference" is "@456" which does not meet the Name production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i07.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i08xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i08.xml
        Test URI:invalid/P56/ibm56i08.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: IDREF. The value of the IDREF attribute "reference" is "BC456" which does not match the value assigned to any ID attributes.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i08.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i09xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i09.xml
        Test URI:invalid/P56/ibm56i09.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: IDREFS. The value of the IDREFS attribute "reference" is "AC456 #567" which does not meet the Names production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i09.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i10xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i10.xml
        Test URI:invalid/P56/ibm56i10.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: IDREFS. The value of the IDREFS attribute "reference" is "EF456 DE355" which does not match the values assigned to two ID attributes.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i10.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i11xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i11.xml
        Test URI:invalid/P56/ibm56i11.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Entity Name. The value of the ENTITY attribute "sun" is "ima ge" which does not meet the Name production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i11.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i12xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i12.xml
        Test URI:invalid/P56/ibm56i12.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Entity Name. The value of the ENTITY attribute "sun" is "notimage" which does not match the name of any unparsed entity declared.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i12.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i13xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i13.xml
        Test URI:invalid/P56/ibm56i13.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Entity Name. The value of the ENTITY attribute "sun" is "parsedentity" which matches the name of a parsed entity instead of an unparsed entity declared.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i13.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i14xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i14.xml
        Test URI:invalid/P56/ibm56i14.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Entity Name. The value of the ENTITIES attribute "sun" is "#image1 @image" which does not meet the Names production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i14.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i15xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i15.xml
        Test URI:invalid/P56/ibm56i15.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ENTITIES. The value of the ENTITIES attribute "sun" is "image3 image4" which does not match the names of two unparsed entities declared.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i15.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i16xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i16.xml
        Test URI:invalid/P56/ibm56i16.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: ENTITIES. The value of the ENTITIES attribute "sun" is "parsedentity1 parsedentity2" which matches the names of two parsed entities instead of two unparsed entities declared.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i16.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i17xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i17.xml
        Test URI:invalid/P56/ibm56i17.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Name Token. The value of the NMTOKEN attribute "thistoken" is "x : image" which does not meet the Nmtoken production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i17.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p56ibm56i18xml() {
    /*
        Test ID:ibm-invalid-P56-ibm56i18.xml
        Test URI:invalid/P56/ibm56i18.xml
        Spec Sections:3.3.1
        Description:Tests invalid TokenizedType which is against P56 VC: Name Token. The value of the NMTOKENS attribute "thistoken" is "@lang y: #country" which does not meet the Nmtokens production.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P56/ibm56i18.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p58ibm58i01xml() {
    /*
        Test ID:ibm-invalid-P58-ibm58i01.xml
        Test URI:invalid/P58/ibm58i01.xml
        Spec Sections:3.3.1
        Description:Tests invalid NotationType which is against P58 VC: Notation Attributes. The attribute "content-encoding" with value "raw" is not a value from the list "(base64|uuencode)".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P58/ibm58i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p58ibm58i02xml() {
    /*
        Test ID:ibm-invalid-P58-ibm58i02.xml
        Test URI:invalid/P58/ibm58i02.xml
        Spec Sections:3.3.1
        Description:Tests invalid NotationType which is against P58 VC: Notation Attributes. The attribute "content-encoding" with value "raw" is a value from the list "(base64|uuencode|raw|ascii)", but "raw" is not a declared notation.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P58/ibm58i02.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p59ibm59i01xml() {
    /*
        Test ID:ibm-invalid-P59-ibm59i01.xml
        Test URI:invalid/P59/ibm59i01.xml
        Spec Sections:3.3.1
        Description:Tests invalid Enumeration which is against P59 VC: Enumeration. The value of the attribute is "ONE" which matches neither "one" nor "two" as declared in the Enumeration in the AttDef in the AttlistDecl.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P59/ibm59i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p60ibm60i01xml() {
    /*
        Test ID:ibm-invalid-P60-ibm60i01.xml
        Test URI:invalid/P60/ibm60i01.xml
        Spec Sections:3.3.2
        Description:Tests invalid DefaultDecl which is against P60 VC: Required Attribute. The attribute "chapter" for the element "two" is declared as #REQUIRED in the DefaultDecl in the AttlistDecl, but the value of this attribute is not given.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P60/ibm60i01.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p60ibm60i02xml() {
    /*
        Test ID:ibm-invalid-P60-ibm60i02.xml
        Test URI:invalid/P60/ibm60i02.xml
        Spec Sections:3.3.2
        Description:Tests invalid DefaultDecl which is against P60 VC: Fixed Attribute Default.. The attribute "chapter" for the element "one" is declared as #FIXED with the given value "Introduction" in the DefaultDecl in the AttlistDecl, but the value of a instance of this attribute is assigned to "JavaBeans".
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P60/ibm60i02.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p60ibm60i03xml() {
    /*
        Test ID:ibm-invalid-P60-ibm60i03.xml
        Test URI:invalid/P60/ibm60i03.xml
        Spec Sections:3.3.2
        Description:Tests invalid DefaultDecl which is against P60 VC: Attribute Default Legal. The declared default value "c" is not legal for the type (a|b) in the AttDef in the AttlistDecl.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P60/ibm60i03.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[ignore]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p60ibm60i04xml() {
    /*
        Test ID:ibm-invalid-P60-ibm60i04.xml
        Test URI:invalid/P60/ibm60i04.xml
        Spec Sections:3.3.2
        Description:Tests invalid DefaultDecl which is against P60 VC: Attribute Default Legal. The declared default value "@#$" is not legal for the type NMTOKEN the AttDef in the AttlistDecl.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P60/ibm60i04.xml")
            .unwrap()
            .as_str(),
    );
}

#[test]
#[cfg(all(test, feature = "test-conformance-xml"))]
fn ibminvalid_p76ibm76i01xml() {
    /*
        Test ID:ibm-invalid-P76-ibm76i01.xml
        Test URI:invalid/P76/ibm76i01.xml
        Spec Sections:4.2.2
        Description:Tests invalid NDataDecl which is against P76 VC: Notation declared. The Name "JPGformat" in the NDataDecl in the EntityDecl for "ge2" does not match the Name of any declared notation.
    */

    test_ibm_invalid(
        fs::read_to_string("tests/conformance/xml/xmlconf/ibm/invalid/P76/ibm76i01.xml")
            .unwrap()
            .as_str(),
    );
}