After trying for several hours to modify the epub/docbook.xsl style sheets found in DocBook XSL 1.74.0 and in DocBook XSL-NS 1.74.0 to make them work with Saxon 6.5.5, we have decided to rewrite these style sheets from scratch.
* The new style sheets, called epub/epub.xsl, work fine with both Saxon 6.5.5 and xsltproc 1.1.17.
They should work fine with any XSLT engine implementing the exsl:node-set and set:distinct EXSLT extension functions.
* The .epub files created by the epub shell script (see below; created for test purposes; not meant for production use) have been tested against Adobe Digital Editions (http://www.adobe.com/products/digitaleditions/) and epubcheck (http://code.google.com/p/epubcheck/).
* Unless the DocBook document contains an isbn element, the UID of the ebook must be specified using the epub.identifier parameter.
However, when the XSLT engine is Saxon and the epub.identifier parameter has not been specified by the user, an automatically generated UUID is used.
* The epub/epub.xsl style sheets use the lang (or xml:lang) attribute and the author, corpauthor and publishername elements to automatically generate some Epub metadata.
* The epub/epub.xsl style sheets should support the rootid parameter (not sure for the DocBook 5, -ns, version).
* There is no profiling versions of the epub/epub.xsl style sheets yet, mainly because we didn't take the time to understand how works xsl2profile.xsl.
* In order to work, the epub/epub.xsl style sheets require the xhtml-1_1 style sheets to be slightly modified. These modifications are described below.
More information in the README file found in the attachment.
If you need anything from us (mailto:firstname.lastname@example.org) related to these style sheets (patches in a different format, enhancements, bug fixes, documentation, etc), just ask.