Quote:
Originally Posted by Snekguy
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?
|
I don't know what the following attributes are supposed to do or how they got there. Perhaps artifacts from a word-processor (???) if that's where you create your original source documents.
Code:
link="#000080" vlink="#800000"
If you don't know either then I'd think it's safe to just delete them.
For the lang="en-US" attribute I'm not totally sure because I'm no expert on these finer points. I'm more used to seeing language attributes in the <html> tag rather than the <body> tag e.g. for epub3 or epub2
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en">
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
If you still get errors after removing link and vlink consider moving the lang attribute. But if you don't get errors leave it where it is. However, you'll probably get best advice about the language attribute if you ask in the MR Epub or Workshop sub-forums. That's where the expert ebook creators hang out.