We'll start by learning our last bit of XSLT: named templates, parameters, and modes using an example I created to transform this source document.
Next, we'll do some exploration with EPUBs. You will need Calibre and eCanCrusher on your computer.
Here's an EPUB transformation that we can walk through in order to transform this TEI document. You will also need to download the DTD and put it in the same place as the TEI document. The final product is a functional EPUB.