I have on the fly editing and fixup of configure.opf and toc.ncx.
Now to generate titlepage.xhtml and the mimetype entry.
Then, the stream to create a zip file.
I will then convert a flat set of Amazon kindle sources to a ePub via a simple command.
Then, I will watch epubcheck puke all over it.