Small epub validation problem

General comments and questions. Technical support.
Post Reply
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Small epub validation problem

Post by mg79 »

A new cover.css has been added but it isn't used by the epub.
The line for the cover is:

<link href="../Styles/style.css" rel="stylesheet" type="text/css" />

I think it should be:

<link href="../Styles/cover.css" rel="stylesheet" type="text/css" />

(validation is correct after I make this change)
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Which (beta) version of Atlantis are you using?
User avatar
admin
Site Admin
Posts: 2826
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

Atlantis never generates the following CSS code:

Code: Select all

<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
Maybe you "tweaked" the EPUB file with another utility?
mg79
Posts: 15
Joined: Fri Apr 13, 2012 2:25 am

Post by mg79 »

admin wrote:Atlantis never generates the following CSS code:

Code: Select all

<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
Maybe you "tweaked" the EPUB file with another utility?
I'm using beta b4. Then I don't know. All epubs I make with the last version give this error in the validation with Sigil. The cover.css wasn't present before in epubs generated by Atlantis. With other betas I neither had validation errors or the cover.css file.
User avatar
admin
Site Admin
Posts: 2826
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

Does Sigil just check for errors, or modifies EPUBs before checking?
It looks that you are trying to validate a "heavily tweaked" EPUB file originally generated by Atlantis. Atlantis never creates the "Styles" folder within EPUB packages, and never generates the code mentioned in your first post.

By the way, there is no point in validating EPUBs generated by Atlantis. They are always valid EPUB files.

In any case, you can use the standard validator from IDPF:
http://validator.idpf.org/
The cover.css wasn't present before in epubs generated by Atlantis.
Yes, the latest beta version of Atlantis does generate two CSS files if you have a cover image in your eBook (this change was required in order to make the new "page margins" feature of the "Save as eBook" command work correctly). But the problem is not with the cover.css file. The problem is that what you are trying to "validate" is not a file generated by Atlantis.
User avatar
admin
Site Admin
Posts: 2826
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

By the way, if you need to make minor changes to individual files from the EPUB package without affecting other files (and possibly ruining the entire EPUB package), you can use the free tweak_epub utility.
Post Reply