Element | Subelements | Attributes | Attribute Values | Opt/Oblig | Default Value | Comment |
---|
RULES | LEX*, RULE+ | name | name of ruleset | optional | | |
| | apply | name of rule(s) to apply | obligatory | | |
| | type | SGML | PLAIN | optional | PLAIN | |
RULE | REL+ | name | name of rule | obligatory | | |
| | type | SEQ | DISJ | DISJF | PHRASE | optional | SEQ | PHRASE only used for lexical lookup rules |
| | targ | rewrite of the string | optional | | |
| | targ_sg | XML element to wrap round string | optional | | |
| | arg | $1, $2 etc | optional | | used in lexical lookup rules |
REL | (CONSTR | REL | ARG)* | type | DIRECT | REF | GROUP | optional | DIRECT | GROUP used to nest subsequences of RELs |
| | var | A, B, C etc | optional | | |
| | match | string to be matched | obligatory | | value is a regular expression when type="DIRECT", a rulename
when type="REF" and DISJF | DISJ | SEQ when type="GROUP" |
| | m_mod | PLAIN | STAR | QUEST | PLUS | TEST | TEST-NO | optional | PLAIN | |
| | rewrite | rewrite of string | optional | | |
CONSTR | | check_in | alias for lexicon (defined in a LEX element) | obligatory | | |
| | check_tags | tag(s) associated with string in lexicon | optional | | |
| | check_mod | NO | LOWERCASE | FIRST-LOWERCASE | UPPERCASE | FIRST-UPPERCASE | optional | NO | |
ARG | | bind | $1, $2 etc | obligatory | | used to fix value for variable in a RULE arg attribute |
LEX | | type | WRD | PHRASE | optional | WRD | PHRASE to be used if lexical entries might be multi-word entries |
| | file_name | location of lexicon file | obligatory | | |
| | alias | alias used to refer to lexicon in a CONSTR check_in attribute | obligatory | | |