iXML Community Group Test Suite

23 Oct 2023 (22 Nov 2023)

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.

Misc tests

13 Jun 2022

Grammars 1-20.

Tests compiled manually in 2018 and 2019, re-packaged in 2022.

Moved to ixml test collection, June 2022.

sample.grammar.03

Created 08 Feb 2022 by cmsmcq

A toy fragment of CSS from one of Steven Pemberton's talks.

Invisible XML Grammar

{ Sample grammar 3

from https://homepages.cwi.nl/~steven/Talks/2013/08-07-invisible-xml/invisible-xml-3.html
}
{ Revisions:
2018-04-08 : CMSMcQ : made this from sample.grammar.03.xml
}

css: rules.
rules: rule; rules, rule.
rule: selector, block.
block: "{", properties, "}".
properties:  property; property, ";", properties.
property:  name, ":", value; empty.
selector: name.
name: ["a"-"z";"A"-"Z"], ["a"-"z";"A"-"Z";"0"-"9";"-";"_"]*.
value: ["x"-"z"].

{ An earlier form of grammar 3 didn't actually define
the nonterminal 'empty'.  That might be related to the
exponential problem. }
empty: .

Test case: g03.c02

Repository URI: …/tests/misc/misc-001-020-catalog.xml

Input string (6 characters)

p{a:x}

Expected result

<css>
   <rules>
      <rule>
         <selector>
            <name>p</name>
         </selector>
         <block>{<properties>
               <property>
                  <name>a</name>:<value>x</value>
               </property>
            </properties>}</block>
      </rule>
   </rules>
</css>