
Not sure if this may be of interest to you: it is also relatively easy to do part of the processing and typesetting in Lua. If you have your environment file environment.tex, just include the line \registerctxluafile{environment}{1.001} and you can define your commands in lua (I wrote a page on the wiki about it). I find some tests and transformations way easier to do in Lua than in TeX, especially if you want to do more than just typeset the xml serially. All best Thomas On 7/3/25 12:45 PM, Duncan Hothersall wrote:
Ah, yes, that makes sense. I'm only slowly shifting my brain to the paradigm of processing XML directly using ConTeXt - for many years I've used other languages to pre-process XML into TeX and then process that using ConTeXt, and the flexibility that that gives is enormous, but it also creates a complexity that I am keen to engineer out. But all of what I've built so far has been based on examples (many of which turn out to be out of date) and snippets I've found, so I guess that's why I ended up with the structure I have.
Many thanks for the additional pointers, much appreciated.
Duncan