Am 05.06.24 um 12:00 schrieb Christoph Edenhauser:
My Question is, is it possible to generate a second context file2.tex with the help of this first xml-mapping file1.tex, where all the xml-nodes from the xml file are mapped to contex commands
Hi, I don’t find it hard to understand, but I don’t think it’s possible within ConTeXt (while Hans keeps surprising me).
Maybe try XSLT or pandoc.
The latter can already read DocBook and write ConTeXt; it doesn’t read TEI (yet). There are also XSL style sheets for TEI, e.g. https://github.com/TEIC/Stylesheets
I don’t know if you would loose too much information going TEI-(something else)-ConTeXt. Maybe it makes sense to adapt the LaTeX stylesheets.
Hraban