If you want a quick way to convert various types of XML files to epub (or a wide range of other formats) visit
http://www.tei-c.org/oxgarage/#. I converted E A Abbott's Shakespearean Grammar (downloaded from
http://www.perseus.tufts.edu/) with a couple of clicks after selecting "TEI P4 XML Document" as the input format. Cheers Neil.