01-06-2013, 04:41 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: ADE in my computer
|
Validation Results. So Many Errors!!
Hello,
It's been a few days that I have been searching the web and this forum to find a solution to the validation errors in my first ebook with Sigil; but to no avail. I have some basic, (very, very basic) knowledge of html and css. I validated the css file and it's fine, but the epub came out with all these errors (at the beginning I thought there were more because they basically they repeat themselves along every chapter). - attribute 'align' is not declared for element 'h1' - attribute 'face' is not declared for element 'font' - no declaration found for element 'font' - element 'font' is not allowed for content model '(a|br|span|bdo|map|object|img|svg|tt|i|b|big|smal l|em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acro nym|sub|sup|input|select|textarea|label|button|ins |del|script)' - attribute 'align' is not declared for element 'p' - attribute 'align' is not declared for element 'h2' I appreciate if you can help me with this. Many thanks. |
01-06-2013, 05:12 PM | #2 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
This will be sorted out a lot quicker if you show us your epub file.
|
01-06-2013, 05:14 PM | #3 |
Resident Curmudgeon
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There's not a thing we can do with your error messages without seeing the code.
|
01-06-2013, 05:50 PM | #4 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The align attribute is not valid for whatever your declared document type is.
So no: Code:
<h1 align="center">Header</h1> Code:
<h2 align="center">Sub Header</h2> Code:
<p align="right">Words.</p> Code:
<h1 style="text-align: center;">Header</h1> Code:
<font face="serif"> Last edited by DiapDealer; 01-06-2013 at 05:53 PM. |
01-06-2013, 06:20 PM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: ADE in my computer
|
Thank you all for your quick reply,
Below are some of the errors, all of them are in the OEBPS/Text/ .html element 'font' is not allowed for content model '(a|br|span|bdo|map|object|img|svg|tt|i|b|big|smal l|em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acro nym|sub|sup|input|select|textarea|label|button|ins |del|script)' Code:
<h1 align="center" id="sigil_toc_id_35" style="margin-right: 1.26cm; margin-bottom: 2cm;" Code:
--> Code:
<p class="first"><span style="font-size: large;">This is to certify that this digital book Code:
<p align="center" style="margin-right: 1.26cm; margin-bottom: 0cm"><font face="Verdana, Code:
<p style="margin-right: 1.26cm; margin-bottom: 0cm"><font face="Verdana, sans-serif"><br /></font></p> element 'font' is not allowed for content model '(a|br|span|bdo|map|object|img|svg|tt|i|b|big|smal l|em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acro nym|sub|sup|input|select|textarea|label|button|ins |del|script)' Code:
<p align="center" style="margin-bottom: 0cm"><font size="6">Treatise on</font></p> Code:
<p style="margin-bottom: 0cm"><a href="../Text/Ch001.html"><font size="4">1. The Level Code:
<body style="border-style: none; padding: 0cm; direction: ltr;" xml:lang="en-GB" Code:
<p style="margin-bottom: 0cm"><span style="font-size: large;">The legend Code:
<p style="margin-bottom: 0cm"><span style="font-size: large;"> Code:
--> Code:
<body dir="ltr" style="border-top-style: none; border-right-style: none; border-bottom-style: Code:
body { margin-left : 4%; margin-right : 4%; margin-top : 4%; margin-bottom : 4%; } p { margin-top : 10px; margin-bottom : 20px; text-indent : 15px; } p.first { text-indent : 0em; } a { text-decoration : none; } h1 { text-align: center; } |
01-06-2013, 08:09 PM | #6 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
01-06-2013, 08:11 PM | #7 |
Resident Curmudgeon
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I was going to make a good suggestion, but because you've come here asking for help without telling us you are doing this as a job, I am not going to be helping. I am not going to be doing your job for you.
Last edited by JSWolf; 01-06-2013 at 08:15 PM. |
01-07-2013, 02:56 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Learn proper HTML and CSS. The guide from Pablo on this site is a good start and of course the sites of W3C. That is the best advise I can give you.
It is all in your source. If the quality of the source file is not too good, it will not work. Also, learn how to make use of stylesheets... You cannot learn how to fly in a day, not even with deadlines. |
01-07-2013, 03:25 AM | #9 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You are using "align" attributes and <font> elements, that's old HTML and an ePub requires XHTML+CSS instead. Convert "align" and <font> into CSS styles and those errors should vanish.
|
01-15-2013, 12:34 PM | #10 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
sure, an' it's past your deadline, but...
In your Open Office, install the "Writer2xhtml" export filter, available from the "writer2LaTeX" site. It will even export directly to epub format, with reasonable xhtml code (that still may require minor tweaks in Sigil). HTH Albert |
01-15-2013, 05:15 PM | #11 | |
Resident Curmudgeon
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I was going to suggest the same thing you did, but the real issue is coming here to get us to do his work when he doesn't know what he is doing and not telling us up front that he was giving this task and doesn't have a clue. I don't mind helping people, but I do mind being taken advantage of. If I find out after the person is asking for help that this is a paid job, I will stop helping and let the person know why and hope others will stop helping as well. |
|
01-18-2013, 06:45 PM | #12 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: ADE in my computer
|
Good evening everybody,
I'd like to warmly thank all who have helped me. It was really very enlightening and helpful all your suggestions. I hope one day may help others in this forum as you helped me. I'd just like to point out that the "align" and <font> elements were generated by Sigil and that, together with my ignorance, is why I didn't understand what was going on. I thought Sigil was doing the things in the way it should be done. And just to clarify things a bit, I did not say I had a 'dead line', I said: 'I had to sort it out by tomorrow', to start the week doing other things, this was not a paid job. I'm so very sorry I offended JSWolf so much, I hope next time not to be so emotional and to to come across more clearly. Once again thank you for your help. |
01-18-2013, 07:04 PM | #13 | |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I don't know where the <font> elements and all the "align" attributes did come from, but I can assure you that they weren't generated by Sigil. Glad you got it sorted, though! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validation Errors | mpresley | ePub | 7 | 10-27-2011 02:41 AM |
Epub validation errors | Newauthor | ePub | 38 | 08-01-2011 12:22 PM |
Help with validation errors | AThirstyMind | ePub | 2 | 05-13-2011 06:08 PM |
Can anyone tell me how to fix these validation errors? | grapplegirl | ePub | 9 | 12-18-2010 09:23 AM |
Validation Errors | luthar28 | ePub | 13 | 08-10-2010 12:24 PM |