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] Docbook to epub - Extra field length for first filename must be 0, but was ..


If I've understood correctly, you're having trouble getting the zip part of the process working.


I have the basic process for generating epub via Ant working fine.

An earlier query on this list (14/6/2013) was replied to by tony Graham, who pointed me at his article



The following target is from my Ant file.


  <target name="zip-epub"
    description="Package up an EPUB"
 <!-- The 'mimetype' file is supposed to be uncompressed and the first thing in the .epub file so the file conforms to the (rather long) signature for EPUB files. -->
 <zip destfile="${output-dir}/${name-root}.mimetype"
   <fileset dir="${output-dir}/${name-root}" includes="mimetype" />
 <!-- We'd really rather have the rest compressed, thank you. -->
 <zip destfile="${output-dir}/${name-root}.zip"
   <zipfileset dir="${output-dir}/${name-root}/META-INF" prefix="META-INF"/>
   <zipfileset dir="${output-dir}/${name-root}/OEBPS" prefix="OEBPS"/>
 <!-- Putting them together this way is the best way so far found for getting only 'mimetype' uncompressed in the .epub. -->
 <zip destfile="${output-dir}/${name-root}.epub"
   <zipfileset src="" />
   <zipfileset src="" />


Hope that helps, and apologies if I've misunderstood the fault you're seeing.






I said the basic process is working as I do still have a recurring fault, though I seem to recall it's actually just a warning.  I need to handle a selection of different date string formats for version histories, but epub wants one format (ISO I think) so I'll need to pass them into EXSLT to get them sorted.







Richard Kerry

BNCS Engineer, SI SOL Telco & Media Vertical Practice

T: +44 (0)20 3618 2669

M: +44 (0)7812 325518

G300, Stadium House, Wood Lane, London, W12 7TA



This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitt

From: cordbhkj@gmail.com [cordbhkj@gmail.com] on behalf of Nils Cordes [info@nilscordes.de]
Sent: 18 February 2014 11:15
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Docbook to epub - Extra field length for first filename must be 0, but was ..


I'm running Ant inside Eclipse and don't get the validation error.
Maybe the cause for the issue is the filesystem used to create the zip-file, because filesystems other than EFS add the additional metadata, which raises the validation error "Extra field length for first filename must be 0, but was 20".


2014-02-18 8:24 GMT+01:00 Michael Wiedmann <mw@miwie.in-berlin.de>:
Lars Vogel wrote o 2014-02-17:
> I read in Bobs description for epub3 (
> http://sourceforge.net/projects/docbook/files/epub3/) that I need to
> specify -X for the Ant task to avoid this error. Is this something I can do
> with the Apache Ant task?

I could not find any way to use the ant zip task to generate a valid
epub file due to the missing "-X" option (if anybody knows how to do it
coorrect please let us know).

Workaround might be to use ant's exec task :-(


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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