Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2019, 09:13 AM   #1
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
epub error

Hi guys, I ask for help on the following errors of the validator, one concerns the div tag that says it is not allowed but I don't understand, how can a dv tag not be allowed?

The other regards the tbody tag, it says it is missing in the table, but there is no table!

Here are the errors:

OEBPS/Text/Capitolo5.html(34,105): Error while parsing file 'element 'div' not allowed here; expected the element end-tag, text or element 'a', 'abbr', 'acronym', 'applet', 'b', 'bdo', 'big', 'br', 'cite', 'code', 'del', 'dfn', 'em', 'i', 'iframe', 'img', 'ins', 'kbd', 'map', 'noscript', 'ns:svg', 'object', 'q', 'samp', 'script', 'small', 'span', 'strong', 'sub', 'sup', 'tt' or 'var' (with xmlns:ns='http:/www.w3.org/2000/svg')'.


OEBPS/Text/Conservazione_alimenti.html(31,9): Error while parsing file 'element 'table' incomplete; missing required element 'tbody''.
libre75 is offline   Reply With Quote
Old 10-14-2019, 09:48 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Do you by chance have a div inside of a para tag or something similar?

I would also try a search for: "<table" to see if there is one hidden somewhere.

Perhaps you could post a screenshot or a sample of the problem area we would be able to give more precise answers.
Turtle91 is offline   Reply With Quote
Old 10-14-2019, 09:48 AM   #3
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by libre75 View Post
Hi guys, I ask for help on the following errors of the validator, one concerns the div tag that says it is not allowed but I don't understand, how can a dv tag not be allowed?
It doesn't say that a div tag is not allowed. It says a div tag is not allowed HERE.

Without seeing the html in question at those particular areas. No one can really help much.
DiapDealer is offline   Reply With Quote
Old 10-14-2019, 12:03 PM   #4
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: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The not here makes me think: out of balance. (BTDT )
The closing tag is on the wrong side of another Block level tag
eg
Div - P ... /Div- /P
theducks is offline   Reply With Quote
Old 10-23-2019, 04:42 AM   #5
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
Hi everyone, sorry for the delay and thanks in advance, below the lines of code!


35 <span style="font-size: 16pt; font-family: 'Times New Roman', serif;"><div style="text-align: justify;"><span style="font-size: 16pt;">Cocktail: da elencare in ordine alfabetico e per ordine d'effetto in base agli ingr</span><span style="font-size: 16pt;">e</span><span style="font-size: 16pt;">dienti che lo compongono ad esempio: aperitivi - digestivi.</span></div></span><p></p>


105 <p style="font-size:16pt; line-height:115%; text-align:justify"><span style="font-family:'Times New Roman', serif; font-size:16pt; font-style:italic">LONG DRINK</span></p>


9 <link href="../Styles/styles.css" type="text/css" rel="stylesheet"/>

31 </table>
libre75 is offline   Reply With Quote
Old 10-23-2019, 05:25 AM   #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: 29,807
Karma: 54830978
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 libre75 View Post
Hi everyone, sorry for the delay and thanks in advance, below the lines of code!


35 <span style="font-size: 16pt; font-family: 'Times New Roman', serif;">
<div style="text-align: justify;"><span style="font-size: 16pt;">Cocktail: da elencare in ordine alfabetico e per ordine d'effetto in base agli ingr</span><span style="font-size: 16pt;">e</span><span style="font-size: 16pt;">dienti che lo compongono ad esempio: aperitivi - digestivi.</span>
</div></span>

<p></p>



105 <p style="font-size:16pt; line-height:115%; text-align:justify"><span style="font-family:'Times New Roman', serif; font-size:16pt; font-style:italic">LONG DRINK</span></p>

9 <link href="../Styles/styles.css" type="text/css" rel="stylesheet"/>

31 </table>
What a mess.
Pretty print (Mend and Prettify) helps see nesting issues
35 has a naked Span, (outside the Div, While not a problem all those style= 16pt; are just needless cruft), last is the weird <p> </p> at the end

105 I am betting there is something about the 'Times New Roman' single quotes
9 ??? The order of rel and type? eg <link href="../Styles/template.css" rel="stylesheet" type="text/css"/>

31 is closing a Table What table A Table is a set of tags in a pattern. That say the pattern is broken in between the <Table> and when it closes

Last edited by theducks; 10-23-2019 at 05:27 AM. Reason: colored wrong place
theducks is offline   Reply With Quote
Old 10-23-2019, 05:34 AM   #7
Sarmat89
Evangelist
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 482
Karma: 2267928
Join Date: Nov 2015
Device: none
You cannot have a DIV inside a SPAN.
Sarmat89 is offline   Reply With Quote
Old 10-23-2019, 07:07 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This thread belongs in the ePub forum as it has nothing to do with Sigil and everything to do with ePub.
JSWolf is offline   Reply With Quote
Old 10-23-2019, 08:29 AM   #9
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,497
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
There is nothing wrong on lines 105 and 9.

In the error messages "(34,105)" means character 105 of line 35 referring to the <div> inside of the <span>.

"(31,9)" means character 9 of line 31 referring to the end of the table being reached without encountering the table body.
jhowell is online now   Reply With Quote
Old 10-23-2019, 09:31 AM   #10
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
This thread belongs in the ePub forum as it has nothing to do with Sigil and everything to do with ePub.
There's always a bit of overlap. I'm not that motivated to move it since the question has basically been answered.
DiapDealer is offline   Reply With Quote
Old 10-23-2019, 04:13 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
There's always a bit of overlap. I'm not that motivated to move it since the question has basically been answered.
But if it was in the ePub forum and someone had a similar problem and went looking in the ePub forum, it would be thereto find.
JSWolf is offline   Reply With Quote
Old 10-23-2019, 05:21 PM   #12
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
But if it was in the ePub forum and someone had a similar problem and went looking in the ePub forum, it would be thereto find.
Please let it go, Jon. There's enough threads in the epub forum about epubcheck xhtml errors that no one's going to be deprived. It's not like this is a new error or anything.
DiapDealer is offline   Reply With Quote
Old 10-26-2019, 08:55 AM   #13
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
Hi everyone, I solved, as far as the div is concerned, I simply copied the text in question into an empty text sheet to remove the formatting, then I pasted it into sigil and applied the desired font and size.

For the table I deleted the table and I made a nice screeshot jpg of the table and I inserted it in the ebook, simple way but it works!
libre75 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apple error - ERROR ITMS-9000: ".epub: wrong namespace in filename.epub fil muzammil ePub 1 11-30-2012 05:25 AM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren ePub 8 02-20-2012 07:20 AM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren Android Devices 1 02-20-2012 04:10 AM


All times are GMT -4. The time now is 05:44 PM.


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