Re: [docbook-apps] producing epub 2 (NOT epub 3s) -- how to do it?

From
Robert Nagle <>
Date
2013-10-11T20:34:30+00:00
ID
Thread
Re: [docbook-apps] producing epub 2 (NOT epub 3s) -- how to do it?
I assumed that the /epub directory is still supported (although the ruby script might not work). 

If it is the case that /epub/docbook.xsl is no longer supported, then there would probably be a need to have a epub2 backward compatibility option for the epub3/ stylesheet. 

The Smashword error messages indicate that they are unable to read epub2 features: 

********************from smashwords

We have run EPUBcheck on your file, and unfortunately, it has not passed validation. The errors found were:

attribute "lang" from namespace "http://www.w3.org/XML/1998/namespace" not allowed at this point; ignored

attribute "properties" not allowed at this point; ignored (repeats 2 times)

attribute "property" not allowed at this point; ignored (repeats 10 times)

attribute "type" from namespace "http://www.idpf.org/2007/ops" not allowed at this point; ignored (repeats 50 times)

bad value for attribute "version"

required attributes missing (repeats 11 times)

text not allowed here (repeats 10 times)

unfinished element (repeats 6 times)

unknown element "footer" from namespace "http://www.w3.org/1999/xhtml" (repeats 8 times)

unknown element "header" from namespace "http://www.w3.org/1999/xhtml" (repeats 8 times)

unknown element "nav" from namespace "http://www.w3.org/1999/xhtml"

unknown element "section" from namespace "http://www.w3.org/1999/xhtml" (repeats 6 times)

Smashwords is quickly becoming a major distributor of ebooks -- although they've been using an older verison of epubcheck. They accept only epub files which can pass the older test. 

Robert, 

If I remember correctly there is an epub  directory in 
the stylesheet distribution that creates epub2. It is unsupported as 
Keith is no longer maintaining it.  It may still be a good starting 
point. 

Carlos
-- 
Robert Nagle
6121 Winsome Ln #56C, Houston TX 77057-5581
(H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
http://www.robertnagle.info