![]() |
#1 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
'Attribute (v)link' errors after EPUB validation
Hi everyone, after validating my e-book in Sigil (option: EPUB validation with FlightCrew) every section seems to contain similar errors.
Error 1: attribute 'link' is not declared for element 'body' Error 2: attribute 'vlink' is not declared for element 'body' Line 49 <body xmlns:xml="http://www.w3.org/XML/1998/namespace" link="#0563C1" vlink="#954F72" xml:lang="NL"> I have no idea what this is, can anyone tell me how to get rid of these errors? |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In tag styles will have style="<style stuff>" IMHO you would best be served doing all styles in the CSS: eg. a {color: black;} I just remove all that needless color a link stuff (besides, my devices are Monochrome ![]() |
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
(vl)ink errors, but no colors used
Thanks Diap Dealer and theducks. My newbie head starts to hurt a bit...
![]() Well, I didn't color anything. I did exactly as was laid out in a tutorial (how to make an e-book with Sigil) in a Dutch computer magazine, ComputerTotaal. Then in Word 2013 I choose the font Calibri and adjusted the font size for title and text. I put a few words and the title in bold and I added a few links.* That's all I did. After that I saved the file as 'Webpage, filtered' and I opened the document in Sigil. So I don't understand what went wrong? And I know nothing about styles. * In Word 2013 the links look blue, could that be the problem? And if so, how can I adjust the linkcolour to whatever colour is allowed? Last edited by Marjelle; 05-19-2015 at 12:14 PM. Reason: typo |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Is that what it is saying in Computer Totaal? That confirms my opinion of the magazine...
Even if you use 'Webpage, filtered', there is a lot of garbage in the resulting HTML file. I recommend using my add-in for Word, which can create an ePUB directly from Word (and a lot cleaner...). There are also other ways of course. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
IMHO it should be in the CSS. If you don't car, delete those 2, links will still work. Those colors are used in HTML to indicate Unvisited and Visited links |
|
![]() |
![]() |
![]() |
#7 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Marjelle, I think the great rule in e-book publishing is Let the defaults rule! Don't specify colors, fonts, or anything else you don't have to. In Word, 12 pt Times New Roman, single spaced, indented paragraphs, no extra space between paras, and (this is optional) justified text is about as invisible as you can get, with the best ultimate results on a variety of retailers and e-book gadgets & apps.
Recent versions of Word do a better job of exporting html, but it's still not good enough. If you have a recent version, Toxaris's plug-in is what you want to use. If like me you use an old version (mine is Word 2000), there's Word2CleanHtml.com online. Paste your Word doc into it, choose the option to Replace non-ascii with HTML entities, and paste the resulting html into a text editor like Notepad. Open that in Sigil. (You've probably done some of these steps already, but I didn't want to leave anything out.) Sigil is excellent & powerful software; praise be to the creators! |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Hi Toxaris, I installed your add-in for Word, copied and pasted a few chapters with chapter breaks, Enters, etc. in Word as a test. I then converted it to html and e-pub and opened it in Sigil. But some strange things happened (I don't know if I did anything wrong), there were no Enters and no chapter breaks visible. Plus one of the chapters was suddenly partly italic etc. So I tried it again and then the text was a very small size even though I did not change that. So I then manually removed all the vlink and link code in my original e-pub document.
Last edited by Marjelle; 05-20-2015 at 07:23 PM. |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Theducks, I now have deleted all the vlink and link code and they don't give an error anymore.
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Hi Notjohn, so the text as simple and plain as can be. However, I did not specify colors or do fancy things. The only thing I did was choosing Calibri for a font and adjusting the fontsize for a few things. Other than that I used some bold, italic and put some links and images and that's all. But if you think that I will have less problems by choosing Times Roman as a font, I can experiment with that. I have Word 2013.
Last edited by Marjelle; 05-20-2015 at 12:55 PM. |
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Toxaris, I will send you a PM.
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Now there are still 2 sorts of errors left of which I have no idea how to solve them, one is:
attribute target is not defined for element 'a' See example below: <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><b><span style="font-size:12.0pt;color:black">Als ik</span></b><span id="sigil_index_id_2" style="font-size:12.0pt;color:black"> <b>rood en warm</b> Can I adjust this in the code and how do I do that? |
![]() |
![]() |
![]() |
#14 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
target is another HTML browser construct that says open LINK in a NEW or REUSE a window. EPUB does not do 'windows'(, floors or walls ![]() |
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 21
Karma: 10
Join Date: May 2015
Device: none
|
Hi theducks, after validation in Sigil these mentions appear in red (see printscreen).
Do you mean that because these are just warnings not errors, I don't have to do anything about them, just leave it as it is and I can continue with my e-book? |
![]() |
![]() |
![]() |
Tags |
attribute link, attribute vlink, element body, epub, validation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation error help "attribute border is not declared for element img | bmacklin | ePub | 12 | 11-06-2015 11:00 AM |
Epub Validation Errors | adrienna | ePub | 7 | 11-22-2013 10:11 PM |
Help! ePub errors -- attribute link/text not declared | katyya | ePub | 1 | 11-17-2011 02:13 PM |
ePub errors (attribute-type, element, text-not-allowed | thiefwriter | ePub | 5 | 09-17-2011 11:02 AM |
Epub validation errors | Newauthor | ePub | 38 | 08-01-2011 12:22 PM |