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.

ambig7

Created 21 Dec 2021 by SP

Invisible XML Grammar

a: b, ()?, c.
b: "b".
c: "c".

Test case: ambig6

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

Created 21 Dec 2021 by SP

Updated 30 Dec 2021 by MSM

Supplied expected outputs

Updated 01 Jan 2022 by MSM

Correct second expected output

The grammar is a: b, ()?, c. b: "b". c: "c". and the input is bc.

As with ambig2, this is or is not ambiguous depending on exactly how we define ambiguity. The parse may interpret the middle term as present or as absent, so there are two derivations, or may be depending on how we define 'derivation'. There is only one parse tree for the EBNF grammar.

So MSM has specified two alternative results which differ only in including or excluding the ambiguity flag.

What the spec should say will require careful discussion.

Input string (2 characters)

bc

Expected results (one of)

<a xmlns:ixml="http://invisiblexml.org/NS" ixml:state="ambiguous">
   <b>b</b>
   <c>c</c>
</a>
<a>
   <b>b</b>
   <c>c</c>
</a>