Hi,

The attached t.tex file produces the attached t.xhtml file. I have looked at the following documents:
It seems that the macros in t.tex are being written out as XML elements, verbatim. It is my understanding that these XML elements, however, do not conform to the minimal content models associated with XHTML 1.1.

What needs to happen to take a minimal ConTeXt file (such as the attached) to produce a minimum viable EPUB that:
Ideally, I would like to do something such as:
  • context t.tex
  • mtxrun --script epub --make t.specification
to generate an EPUB that passes validation of epubcheck, with an output XHTML file that more closely matches the XHTML specification.

How can I help?

Kind regards.