|  10-14-2019, 09:13 AM | #1 | 
| Enthusiast  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''. | 
|   |   | 
|  10-14-2019, 09:48 AM | #2 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/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. | 
|   |   | 
|  10-14-2019, 09:48 AM | #3 | |
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | Quote: 
 Without seeing the html in question at those particular areas. No one can really help much. | |
|   |   | 
|  10-14-2019, 12:03 PM | #4 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 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 | 
|   |   | 
|  10-23-2019, 04:42 AM | #5 | 
| Enthusiast  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> | 
|   |   | 
|  10-23-2019, 05:25 AM | #6 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
   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 | |
|   |   | 
|  10-23-2019, 05:34 AM | #7 | 
| Fanatic            Posts: 531 Karma: 2268308 Join Date: Nov 2015 Device: none | 
			
			You cannot have a DIV inside a SPAN.
		 | 
|   |   | 
|  10-23-2019, 07:07 AM | #8 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 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.
		 | 
|   |   | 
|  10-23-2019, 08:29 AM | #9 | 
| Grand Sorcerer            Posts: 7,159 Karma: 92500001 Join Date: Nov 2011 Location: Charlottesville, VA 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. | 
|   |   | 
|  10-23-2019, 09:31 AM | #10 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | |
|   |   | 
|  10-23-2019, 04:13 PM | #11 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  10-23-2019, 05:21 PM | #12 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			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.
		 | 
|   |   | 
|  10-26-2019, 08:55 AM | #13 | 
| Enthusiast  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! | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |