On 13.12.2011 12:03, Hussein Shafie wrote: > After rewriting the EPUB stylesheets from scratch, we have contributed > them to the DocBook XSL Stylesheets open source project. However, this > open source project has preferred to keep the original stylesheets > (which are maintained by Keith Fahlgren -- > http://www.oreillynet.com/pub/au/2878 -- who seems deeply involved in EPUB).
Hi, that's pitty, I wasn't aware of this. Anyway to make it even more complicated there is now third possibility. New EPUB3 stylesheets has been recently contributed by Bob Stayton, see: http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl/epub3/ They are definitively much better then previous one, but they target EPUB3. But in my experience is that files are very compatible with existing readers. > We actually have no problem with the standard DocBook XSL Stylesheets. It's > just > that we are not familiar with generating EPUB formats and the DocBook way to > do > it in the DocBook XSL version we use is a ruby script. Our application is > made > in Java so using this ruby script is not convenient at all for us. That's why > we > thought we might use XXE capabilities to perform the work. Checking the > document > XXE_install_dir/addon/config/docbook/xsl/CHANGES_MADE_BY_XMLMIND.txt, it > looked > like the XSL coming with XXE fixed some issues from the standard one. In Java world you can use ant build resulting EPUB file, using something like: <target name="epub"> <xslt in="${in}" out="dummy.html" style=".../docbook-xsl/epub3/chunk.xsl" force="true"> <factory name="com.icl.saxon.TransformerFactoryImpl"/> <classpath> <pathelement location="${saxon.jar}"/> <pathelement location="${saxon.extensions.jar}"/> <pathelement location="${xslthl.jar}"/> <pathelement location="${xml-apis.jar}"/> </classpath> <xmlcatalog> <catalogpath location="catalog.xml"/> </xmlcatalog> </xslt> <zip destfile="${out}.epub" basedir="ebook" includes="mimetype" compress="false" /> <zip destfile="${out}.epub" basedir="ebook" excludes="mimetype" update="true" compress="true" keepcompression="true" /> </target> But of course XXE convert command can provide much more, like copying resources, handling image conversion, ... Sorry if this too off-topic for this list. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: [email protected] http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
-- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

