Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2010, 05:07 PM   #1
mrbillb
Member
mrbillb began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2010
Device: iPad
Error Message Has Wrong Line Number

The following error messages were generated by ePub validation at threepress.org:

ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/content.opf(12): date value '2010-09-06T05:00:00+00:00' is not valid, YYYY[-MM[-DD]] expected
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2466): element "img" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2466): element "strong" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr .epub/zephyr_split_030.htm(2468): element "sup" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2468): element "strong" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2469): element "img" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2469): element "br" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
ERROR: A Visual Guide to Mastering the Digitrax Zephyr.epub/zephyr_split_030.htm(2470): element "br" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
Check finished with warnings or errors!

The problem with all but the first error is that zephyr_split_030.htm has only 1251 lines! Supposedly, the number in parentheses is the line containing the error, but with Sigil I can see only 1250 lines.

Now for the first line. Where is "content.opf". Sigil does not list it within the "epub" file.

Any ideas?
mrbillb is offline   Reply With Quote
Advert
Old 09-06-2010, 05:51 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by mrbillb View Post
The problem with all but the first error is that zephyr_split_030.htm has only 1251 lines! Supposedly, the number in parentheses is the line containing the error, but with Sigil I can see only 1250 lines.
Sigil reformats the source when you open an epub. The line numbers won't match.

Quote:
Originally Posted by mrbillb View Post
Now for the first line. Where is "content.opf". Sigil does not list it within the "epub" file.
This is an epub infrastructure file. You can see it by opening the epub with any zip tool.
Valloric is offline   Reply With Quote
Old 09-07-2010, 08:38 PM   #3
mrbillb
Member
mrbillb began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2010
Device: iPad
The line numbers must be off by at least 1200 if that is the cause. Could they possibly refer to line numbers in the original "htm" file? That does not seem to be the case. If the error messages do not refer to the correct file and the correct line, they are virtually useless.
mrbillb is offline   Reply With Quote
Old 09-08-2010, 05:28 AM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Check that file again. I suspect some sort of junk has got itself inserted near the end. The errors you're seeing are possibly due to code being present after the closing </body> tag. The date error is a bug in threepress' epubcheck, which doesn't recognise the full W3CDTF date code that calibre uses.
charleski is offline   Reply With Quote
Old 09-08-2010, 12:45 PM   #5
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Generally speaking, if you want to check errors then I recommend unzipping the actual ePub and opening the relevant xhtml file in a text editor. On Windows, I think Notepad++ is highly useful for this kind of quick and dirty debugging.
jharker is offline   Reply With Quote
Advert
Old 09-08-2010, 05:58 PM   #6
mrbillb
Member
mrbillb began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2010
Device: iPad
Checking referenced file for errors

Quote:
Originally Posted by jharker View Post
Generally speaking, if you want to check errors then I recommend unzipping the actual ePub and opening the relevant xhtml file in a text editor. On Windows, I think Notepad++ is highly useful for this kind of quick and dirty debugging.
That's what I have been doing, but with Sigil. I'll try it with gedit next.
mrbillb is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 01:47 PM
wrong number of pages in calibre and nook woodwindow376 Calibre 1 07-27-2010 04:53 PM
Error code number 1 asocias Calibre 1 12-12-2009 03:24 PM
html->lrf line spacing between wrong lines? flowoeB Calibre 6 08-21-2009 12:43 PM
Error message thibaulthalpern Calibre 1 05-15-2009 03:12 PM


All times are GMT -4. The time now is 12:51 AM.


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