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.

Tests producing parse trees

17 Jun 2022

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

ixml tests

Created 16 Dec 2021 by SP

Updated 21 Dec 2021 by SP

Corrected input, grammar, or output for 5 tests

Updated 30 Dec 2021 by MSM

Updated catalog, corrected many tests.

Updated 30 May 2022 by MSM

Add whitespace-and-delimiters test sets.

xml1

Created 16 Dec 2021 by SP

Invisible XML Grammar

xml: element.
element: -"<", name, (-" "+, attribute)*, (-">", content, -"</", close, -">"; -"/>").
@name: ["a"-"z"; "A"-"Z"]+.
@close: name.
attribute: name, -"=", value.
@value: -'"', dchar*, -'"'; -"'", schar*, -"'".
content: (cchar; element)*.
-dchar: ~['"'; "<"].
-schar: ~["'"; "<"].
-cchar: ~["<"].

Test case: xml1

Repository URI: …/tests/correct/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

stripped non-significant whitespace from result

Input string (64 characters)

<test lang="en" class="test">
  This <em>is</em> a test.
</test>

Expected result

<xml>
   <element name="test" close="test">
      <attribute name="lang" value="en"/>
      <attribute name="class" value="test"/>
      <content>
  This <element name="em" close="em">
            <content>is</content>
         </element> a test.
</content>
   </element>
</xml>