Quote:
Originally Posted by jackie_w
If your epub is epub3, I think epubcheck expects all your text files to have the .xhtml extension. I don't think it has the same requirement for epub2.
The calibre Editor does have a built-in option called 'Change the file extension for the selected files'. To access it, in the File browser pane, select all the text files you want to change then right-click and select the option from the pop-up menu. I believe the option automatically makes any related changes required in other files in the epub (e.g. OPF, links etc) to keep everything consistent.
|
You are entirely correct, and have saved me a huge headache, thank you. It does indeed seem that only EPUB 3 files require XHTML, and my usual HTML files passed the check when I uploaded an EPUB 2 file. Top tier quality control from Smashwords.
I am however struck with one more issue, and I wonder if you could advise?
Each chapter of my book now throws out the same error:
"Error while parsing file: attribute "link" not allowed here; expected attribute "class", "dir", "id", "style", "title" or "xml:lang"
I've located the lines and positions of each of these errors, but I don't know enough about HTML to know what I can remove. Each one looks like this:
<body lang="en-US" link="#000080" vlink="#800000" dir="ltr" class="calibre">
Does this require a larger edit or can I simply chop out the offending parts?
Thanks again!