of course we could alternatively export all as <div class="tag-subtag-..."> but i don't like that too much; html itself is not rich enough for our purpose
\setuplist[chapter][xml={\starttag[h1]#1\stoptag}]
<h1>Chapter</h1>
\setuplist[chapter][export={\starttag[div]\startattribute[class]{chapter}#1\stopattribute\stoptag}}]
<div class="chapter">Chapter</div>
* Generates XHTML headers (including <!DOCTYPE and <html...>)not needed as we're 'standalone'
\setupexport[standalone=no,]
* Produces images as img tags, rather than float tags.the css can deal with them (info is written to files for that)
xhtml has no typical tags .. it's xml + css (or xslt) ... unfortunately browsers have
the export of context is in fact just xml, and by tagging it as xhtml we can apply css to it; but if someone has a workflow for producing epub an option if to postprocess that xml file into whatever epub one wants
Everytime we look into epub there's another issue ... it's not a standard but reversed engineered application mess (happen soften with xml: turn some application data structures into xml and call it a standard)
as i have no real use/demand for epub it's not something i look into on a daily basis