From iXML to XSpec

In the autumn of 2024, I attended the XML Summer School and persuaded (it wasn’t difficult) Stephen Pemberton to tack a session on iXML onto the end of his course on XForms. On the bus home, I made a start on my first iXML grammar. Within a week I had encountered a character encoding mystery and whitespace challenges, lost a day naming things and was working on repurposing XSpec for testing iXML grammars. In my opinion, learning to write an Invisible XML grammar is no more difficult that learning any other schema language and is worth the effort if you have a use-case where it would be useful. Although I would recommend that for your first grammar you too seek out a textual input that already has a very clearly defined, simple, stable and small content model. It was a relief to confirm that there are viable options other than eyeballing for testing an iXML grammar during development, not least because the notation for an iXML grammar is quite symbol-heavy which can make typos tricky to spot. Tests are also important in the maintenance of a grammar though, so that developers can fix bugs or extend the content model with greater confidence that their changes haven’t introduced unintended side-effects. Especially if the person making the change wasn’t involved in writing the grammar originally — or even if they were but it’s been a long time since they worked on it. Once the invisible-xml() XPath/XQuery function is more widely supported it will be trivially easy to use XSpec to test an iXML grammar, per the approach proposed by Amanda Galtman. And if you already have the option to do so using XQuery, BaseX and Markup Blitz then you should try it out; it’s not complicated.

Authors

Publication Details

Journal
Balisage series on markup technologies
Published
2025-10-08
DOI
https://doi.org/10.4242/balisagevol30.thomson01
Primary Topic
Advanced Computational Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

From iXML to XSpec

Sheila E. Thomson
Balisage series on markup technologies
Advanced Computational Techniques and Applications
article

From iXML to XSpec

Sheila E. Thomson
article en

Abstract

In the autumn of 2024, I attended the XML Summer School and persuaded (it wasn’t difficult) Stephen Pemberton to tack a session on iXML onto the end of his course on XForms. On the bus home, I made a start on my first iXML grammar. Within a week I had encountered a character encoding mystery and whitespace challenges, lost a day naming things and was working on repurposing XSpec for testing iXML grammars. In my opinion, learning to write an Invisible XML grammar is no more difficult that learning any other schema language and is worth the effort if you have a use-case where it would be useful. Although I would recommend that for your first grammar you too seek out a textual input that already has a very clearly defined, simple, stable and small content model. It was a relief to confirm that there are viable options other than eyeballing for testing an iXML grammar during development, not least because the notation for an iXML grammar is quite symbol-heavy which can make typos tricky to spot. Tests are also important in the maintenance of a grammar though, so that developers can fix bugs or extend the content model with greater confidence that their changes haven’t introduced unintended side-effects. Especially if the person making the change wasn’t involved in writing the grammar originally — or even if they were but it’s been a long time since they worked on it. Once the invisible-xml() XPath/XQuery function is more widely supported it will be trivially easy to use XSpec to test an iXML grammar, per the approach proposed by Amanda Galtman. And if you already have the option to do so using XQuery, BaseX and Markup Blitz then you should try it out; it’s not complicated.

Balisage series on markup technologiesVol. 30
Openalex Percentile: Top 54%
Advanced Computational Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

From iXML to XSpec — Sheila E. Thomson · Balisage series on markup technologies (2025) | TGRS Research Map | TGRS