We’ll mostly work with "export.xml" that contains all your content (check that, you’ll miss everything that was not properly tagged).
== Fix export.xml ==
'''This error is fixed in ConTeXt of 27 August 2014.'''
If you run the epub script on a single file, you’ll get a well-formed and usable export.xml. If you use a project structure, the root node {{code|<document>}} is missing. Just put it in manually (after the comment lines). You can also move the {{code|<metadata>}} block out of the first structure, but that’s merely a cosmetical error.
A proper {{code|export.xml}} starts like this:
<xmlcode>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- input filename : solo -->
<!-- processing date : Wed Aug 27 13:47:46 2014 -->
<!-- context version : 2014.08.21 09:56 -->
<!-- exporter version : 0.31 -->
<document language="en" file="solo" date="Wed Aug 27 13:47:46 2014" context="2014.08.21 09:56" version="0.31" xmlns:m="http://www.w3.org/1998/Math/MathML">
<metadata>
<metavariable name="author">Hraban</metavariable>
</metadata>
<section detail="chapter" location="aut:1">
...
</xmlcode>
You don’t need the attributes of the document node, even if we could use the language setting.
== ePub structure ==
│ ├── Images
│ │ ├── ...
│ │ ├── c_wjnterc_farewell-1.png│ │ ├── c_wjnterc_farewell-2.png│ │ ├── c_wjnter-3c_farewell.png│ │ ├── c_wjnter-4.png│ │ ├── c_wjnter.png.
│ │ └── cover.jpg
│ ├── Styles
│ │ └── style.css
│ ├── contentText│ │ ├── _intro.html│ │ ├── aut_1.html│ │ ├── ...│ │ └── aut_99.xhtmlhtml│ ├── cover.xhtmlhtml
│ ├── songbook.opf
│ └── toc.ncx