OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] EPUB2 vs. EPUB3: Making base.dir consistent?


I can't get either EPUB 2 or 3 working. I've done a fresh checkout;

svn co https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl basetest

But I'm getting include failures when executing (with and without setting the base);

xsltproc /docbook/xsl-ns/basetest/epub3/chunk.xsl test.xml

warning: failed to load external entity "/docbook/xsl-ns/basetest/xhtml5/xhtml-docbook.xsl" compilation error: file /docbook/xsl-ns/basetest/xhtml5/docbook.xsl line 16 element import xsl:import : unable to load /docbook/xsl-ns/basetest/xhtml5/xhtml-docbook.xsl warning: failed to load external entity "/docbook/xsl-ns/basetest/epub3/titlepage.templates.xsl" compilation error: file /docbook/xsl-ns/basetest/epub3/epub3-element-mods.xsl line 34 element import xsl:import : unable to load /docbook/xsl-ns/basetest/epub3/titlepage.templates.xsl warning: failed to load external entity "/docbook/xsl-ns/basetest/xhtml/chunk-common.xsl" compilation error: file /docbook/xsl-ns/basetest/epub3/chunk.xsl line 18 element import
xsl:import : unable to load /docbook/xsl-ns/basetest/xhtml/chunk-common.xsl
warning: failed to load external entity "/docbook/xsl-ns/basetest/xhtml/chunk-code.xsl" compilation error: file /docbook/xsl-ns/basetest/epub3/chunk.xsl line 20 element include
xsl:include : unable to load /docbook/xsl-ns/basetest/xhtml/chunk-code.xsl


...and;


xsltproc /docbook/xsl-ns/basedir/epub/docbook.xsl test.xml

warning: failed to load external entity "/docbook/xsl-ns/basedir/epub/docbook.xsl"
cannot parse /docbook/xsl-ns/basedir/epub/docbook.xsl



Mike




On 20/04/2013 10:23, Thomas Schraitle wrote:
Hi

Am Mittwoch, 17. April 2013, 08:33:27 schrieb Thomas Schraitle:
I would like to ask if it would be useful to add the same change to the
EPUB2 stylesheets.

As far as I can see, it would be compatible with the existing
implementation, but would be a huge benefit for stylesheet writers and
developers. I believe, it should be consistent between the two EPUB
implementations.
I took the liberty to backport Bob's changes regarding base.dir from the EPUB3
stylesheet(s) to the EPUB2 stylesheet. :) This is committed to revision 9749.

It should still be compatible with the old behaviour: If you don't change
base.dir, it will save all the files in the current directory. However, if you
specify the parameter base.dir then all files will be written to that
directory.

I've tested both behaviours with epubcheck 3.0 and it hasn't complained so
far. :)

Would be nice, if someone could test that. Thanks!





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]