Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2015, 10:12 AM   #1
Marjelle
Member
Marjelle began at the beginning.
 
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?
Marjelle is offline   Reply With Quote
Old 05-18-2015, 10:22 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Marjelle View Post
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?
By removing the link and vlink attributes/values that are not allowed in the body tags.
DiapDealer is offline   Reply With Quote
Advert
Old 05-18-2015, 10:23 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Marjelle View Post
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?
because that way of styling (coloring (v)links in this case) is not supported by EPUB

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 )
theducks is online now   Reply With Quote
Old 05-19-2015, 12:13 PM   #4
Marjelle
Member
Marjelle began at the beginning.
 
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
Marjelle is offline   Reply With Quote
Old 05-19-2015, 12:31 PM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Advert
Old 05-19-2015, 02:27 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Marjelle View Post
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?
It is not the color, it is WHERE/HOW
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
theducks is online now   Reply With Quote
Old 05-20-2015, 06:29 AM   #7
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
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!
Notjohn is offline   Reply With Quote
Old 05-20-2015, 12:36 PM   #8
Marjelle
Member
Marjelle began at the beginning.
 
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.
Marjelle is offline   Reply With Quote
Old 05-20-2015, 12:38 PM   #9
Marjelle
Member
Marjelle began at the beginning.
 
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.
Marjelle is offline   Reply With Quote
Old 05-20-2015, 12:43 PM   #10
Marjelle
Member
Marjelle began at the beginning.
 
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.
Marjelle is offline   Reply With Quote
Old 05-20-2015, 01:09 PM   #11
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Marjelle View Post
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.
Could you sent me a PM? That should not happen at all. Perhaps even a test document, so I can see what goes wrong there. It is not as it should at least. This is very strange and based on what you say I cannot explain it.
Toxaris is offline   Reply With Quote
Old 05-20-2015, 01:33 PM   #12
Marjelle
Member
Marjelle began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2015
Device: none
Toxaris, I will send you a PM.
Marjelle is offline   Reply With Quote
Old 05-20-2015, 07:22 PM   #13
Marjelle
Member
Marjelle began at the beginning.
 
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">&nbsp;<b>rood en warm</b>

Can I adjust this in the code and how do I do that?
Marjelle is offline   Reply With Quote
Old 05-20-2015, 08:51 PM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Marjelle View Post
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">&nbsp;<b>rood en warm</b>

Can I adjust this in the code and how do I do that?
WARNINGs (yellow), not Error (red)
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 ) Nuke that puppy
theducks is online now   Reply With Quote
Old 05-21-2015, 07:37 AM   #15
Marjelle
Member
Marjelle began at the beginning.
 
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?
Attached Thumbnails
Click image for larger version

Name:	Sigil forum errors after validation.png
Views:	360
Size:	146.1 KB
ID:	138509  
Marjelle is offline   Reply With Quote
Reply

Tags
attribute link, attribute vlink, element body, epub, validation


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:31 PM.


MobileRead.com is a privately owned, operated and funded community.