Text normalization with Invisible XML round-tripping
Invisible XML enables producing an XML document from a text value according to a grammar, which specifies rules for generating elements and attributes.
In certain use cases, round-tripping is required: unparsing the resulting XML document back into text.
Three steps are proposed for this unparsing:
- Grammar normalization by pruning meaningless rules and symbols.
- Inversion of the normalized grammar
- Parsing of the XML document with the inverted normalized grammar
Grammix is a Javascript implementation for parsing text values and unparsing XML documents according to an Invisible XML grammar. Grammix internally uses an Earley parser.
Presentation, 7 November 2025
Alain Couthures, owner of agenceXML founded in 2006, expert in XML/XSLT/XQuery/XForms/XProc for advanced data processing in heterogeneous environments, implementer of XSLTForms (XForms), Fleur (XQuery) and Grammix (Invisible XML).