Page 1 of 1

Saving epub files to current directory

Posted: Mon Jan 14, 2013 3:50 pm
by burbles
I'm using Docbook 5 customized stylesheets to transform to EPUB 3. I'm not using oXygen's DocBook ANT transformation - in fact I have the 1.77.1 stylesheets in another directory and am importing them into my customization layer. I don't have anything in my customization that specifies the location of the output folders (OEBPS, META-INF and mimetype) - it uses the standard settings for base.dir and all other epub output files. I have the customized transformation under Global options in the Transformation scenarios window and don't have any parameters set. Yet when I transform, all the files are created in the oXygen root directory (C:\Program Files\Oxygen XML Editor 14-1). I would expect that the files should be created in the current working directory (by default), where all my xml files are. Would you please suggest what I need to change or look for to get output files created in the working directory?

Re: Saving epub files to current directory

Posted: Mon Jan 14, 2013 4:07 pm
by adrian
Hi,

The problem is that you don't have any parameters set. This is a frequent problem with the EPUB stylesheets from DocBook XSL.Specifically you need to set the outputFile parameter.
e.g.

Code: Select all

${cfd}/out/epub/${cfn}.epub
It's a lot easier to just duplicate the default DocBook to EPUB transformation scenario from Oxygen and edit it to point to the build file from your DocBook XSL (docbook/xsl/epub/bin/build.xml). Then, if necessary, you can adjust some of the parameters.

Regards,
Adrian

Re: Saving epub files to current directory

Posted: Mon Jan 14, 2013 4:47 pm
by adrian
Hi again,

One of my colleagues, Radu, pointed out to me that for EPUB3 there is no ANT build file. So you'll have to stick with your own XSLT transformation.

In that case, for docbook/xsl/epub3/docbook.xsl you have to set the parameter base.dir:

Code: Select all

${cfd}/out/${cfn}/OEBPS/
You'll also have to manually pack into an epub file the content of the output folder ("out/${cfn}", where ${cfn} will be replaced with the filename of the input XML file). e.g. out/book for book.xml
Regards,
Adrian