iXML Community Group Test Suite

21 Jun 2022 (28 Jun 2022)

Top-level catalog for tests in the iXML Community Group Test Suite.

Tests have been contributed from several sources, but the core of the test collection are the tests contributed by Steven Pemberton in December 2021.

Ambiguous inputs

01 Jun 2022

Tests provided by Steven Pemberton in December 2021, with corrections of 21 December. Reorganized by Norm Tovey-Walsh, February 2022.

ambig5

Created 16 Dec 2021 by SP

Invisible XML Grammar

data: number+.
number: digit+.
digit: ["0"-"9"].

Test case: ambig5

Repository URI: …/tests/ambiguous/test-catalog.xml

Created 16 Dec 2021 by SP

Updated 30 Dec 2021 by MSM

remove trailing whitespace from input

Updated 01 Jan 2022 by MSM

remove nonsignificant whitespace from expected result

Updated 01 Jan 2022 by MSM

added second parse as expected result

Input string (2 characters)

12

Expected results (one of)

<!-- AMBIGUOUS
     The input from line.pos 1.1 to 1.3 can be interpreted as 'number+' in 2 different ways:
     1: number+[1.1:]:  number[:1.2] number+[:1.3] 
     2: number+[1.1:]:  number[:1.3] 
--><data xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
   <number>
      <digit>1</digit>
   </number>
   <number>
      <digit>2</digit>
   </number>
</data>
<!-- AMBIGUOUS
     The input from line.pos 1.1 to 1.3 can be interpreted as 'number+' in 2 different ways:
     1: number+[1.1:]:  number[:1.2] number+[:1.3] 
     2: number+[1.1:]:  number[:1.3] 
--><data xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
   <number>
      <digit>1</digit>
      <digit>2</digit>
   </number>
</data>