On 30/01/13 17:24, Bob Stayton wrote:
Hi Dave,
This has been fixed since the 1.78.0 release. The snapshot releases work without the trailing slash on base.dir.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net <mailto:b...@sagehill.net>

Thanks Bob.
  Delighted with the resulting epub, read on the iPad, looks really good.

regards


*From:* davep <mailto:da...@dpawson.co.uk>
*Sent:* Wednesday, January 30, 2013 12:47 AM
*To:* docbook-apps@lists.oasis-open.org <mailto:docbook-apps@lists.oasis-open.org>
*Subject:* Re: [docbook-apps] epub3

On 30/01/13 08:25, davep wrote:
Latest stylesheets, db5 source, single file.

The readme says

xsltproc \
--stringparam base.dir ebook1/OEBPS/ \
epub3/chunk.xsl \
mybook.xml

I tried, with a source file tmp.xml, having created ./ebook and ./ebook/OEBPS.

Having run the transform, I see

$ tree ebook
ebook
├── OEBPS
│ ├── bk01-toc.xhtml
│ ├── ch01s02.xhtml
│ ├── ch01.xhtml
│ ├── docbook-epub.css
│ └── index.xhtml
├── OEBPS..
│ ├── META-INF
│ │ └── container.xml
│ └── mimetype
├── OEBPSpackage.opf
└── OEBPStoc.ncx

3 directories, 9 files


I.e. rather than adding files to ./ebook, ?? has created ./ebook/..OEBPS which
may be an attempt to write files to the parent?

I'm on Linux. Is this an oddity? a feature of xsltproc? Something else?
suggestions please


DaveP

Resolved.

http://docbook.sourceforge.net/release/xsl/current/doc/html/base.dir.html
Quote Starting with version 1.77 of the stylesheets, the param's value will have a trailing slash added if it does not already have one.

I don't think that is happening?


I changed to use saxon.

Setting the param within a stylesheet, adding a trailing slaxh
resolves the problem.


Since the readme contains the slash, perhaps the documentation is wrong.


regards DaveP





Reply via email to