Dear Pablo, dear list
That's great, thank you very much for your suggestion.
That seems to me to be a very elegant solution to the next two
problems that were actually still ahead of me.
And now to my initial question, which I didn't specify precisely
enough.
I have the following workflow in mind:
1. I have an XML file (TEI-XML),
2. then, following your brilliant suggestion, I will create an
xml-analyze-template.tex file and customise it.
3. As you suggest, now one would actually use
context --environment xml-analyze-template.tex file.xml
to typeset in a pdf file.
But I would like to convert all the XML nodes into the ConTeXt
typesetting language, and then edit/correct the text and maybe
some structure in this *.tex file.
And here comes my question: Can I use context to convert my
XML-file 'file.xml' into a ConTeXt-file 'file.tex' instead of
typesetting it as a 'file.pdf'.
Best regards, Christoph
Hi Christoph, not clear to me whether you meant an environment (a format file) with the ConTeXt generated file. In that case, this might help: context --extra=xml --analyze --template your-file.xml With that template, you may run: context --environment=xml-analyze-template.tex your-file.xml BTW, there are two typos in xml-analyze-template.tex (lines 8-9): - \startxmlsetup should read \startxmlsetups. - \xmlsetsetups should read \xmlsetsetup. But consider that this only flushes text with no formatting (you will have all text in a single paragraph. If this is not what you need, a more detailed (or simply more verbose) explanation) might help. Just in case it might help, Pablo