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 10-23-2010, 07:10 PM   #1
NewDay
Connoisseur
NewDay doesn't litterNewDay doesn't litter
 
NewDay's Avatar
 
Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
ERROR: Open Quote is Expected (means what?)

I am this close to finally validating an epub file that has been full of bugs in the toc.ncx (thank you, InDesign). But now I'm seeing (4 instances of) an error message I've not encountered before:

blah blah.epub/OEBPS/toc.ncx: Open quote is expected for attribute "playOrder" associated with an element type "navPoint".

Here's the code for the last 5 items:

<navPoint id="navpoint-134" playOrder="135"><navLabel><text>Chicken Biscklets</text></navLabel><content src="CastIronCuisine-16.xhtml#toc-anchor-5"/></navPoint>
<navPoint id="navpoint-135" playOrder="136"><navLabel><text>Charcoal Chews</text></navLabel><content src="CastIronCuisine-16.xhtml#toc-anchor-6"/></navPoint>
<navPoint id="navpoint-136" playOrder="137"><navLabel><text>Resources</text></navLabel><content src="CastIronCuisine-17.xhtml#toc-anchor"/></navPoint>
<navPoint id="navpoint-137" playOrder="138"><navLabel><text>Glossary</text></navLabel><content src="CastIronCuisine-18.xhtml#toc-anchor"/></navPoint>
<navPoint id="navpoint-138" playOrder="139"><navLabel><text>About Us</text></navLabel><content src="CastIronCuisine-19.xhtml#toc-anchor"/></navPoint>

Can you please point out the error of my ways so I can go straight to GO?
NewDay is offline   Reply With Quote
Old 10-23-2010, 07:33 PM   #2
NewDay
Connoisseur
NewDay doesn't litterNewDay doesn't litter
 
NewDay's Avatar
 
Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
I'm especially puzzled by this since upon opening the toc.ncx for an epub file that was successfully uploaded, I see this code:

<navPoint id="chapter06" playOrder="13"><navLabel><text>6. Mexico</text</navLabel><content src="xhtml/chapter06.html"/></navPoint>

which to me looks identical in logic to the epub file for whose toc.ncx I'm getting this error message.

What am I missing here?
NewDay is offline   Reply With Quote
Old 10-23-2010, 08:53 PM   #3
NewDay
Connoisseur
NewDay doesn't litterNewDay doesn't litter
 
NewDay's Avatar
 
Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
O.K. Problem solved. After much head-scratching and floor-pacing, I decided to bypass epubcheck and run it by this validator: http://www.w3schools.com/xml/xml_validator.asp
(Thanks, Liz Castro, for the referral.) It pointed me in the right direction. I did have some xml issues, but not the one epubcheck was claiming. Anyway, everything's cleaned up now, and I'm looking at a validated file.

(I still want my money back for CS5.)
NewDay is offline   Reply With Quote
Old 10-25-2010, 07:23 PM   #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,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
As a general rule, it's pretty common for the more simplistic validators to point to errors much later in the code than they really are, especially when it comes to quotes or other organising elements. They'll try to make sense of the code and then only stumble when they get to the end of the block.
charleski is offline   Reply With Quote
Old 10-26-2010, 11:51 AM   #5
NewDay
Connoisseur
NewDay doesn't litterNewDay doesn't litter
 
NewDay's Avatar
 
Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
Bingo! You nailed it, Charleski. Man, I wracked my head every which way until I finally went ahead and fixed the first error, a very simple one, then ran it back through the validator and voila! the other error messages disappeared.

I'm getting a lot of use out of the syntax validator at http://www.w3schools.com/xml/xml_validator.asp My new protocol is to run a file by the syntax validator first, then send the clean file to epubcheck. Much less consternation that way.
NewDay 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
Keep getting "Page Error" on epub file when I open it on my PRS-300 (filesize > 25MB) ryancolm Sigil 6 09-03-2010 11:45 AM
Calibre won't open after install -- ERROR: Bad database location htbyron Calibre 3 06-17-2010 11:43 AM
Error when trying to open Ebook Viewer, won't show stories cloudyvisions Calibre 1 03-28-2009 05:13 AM
Error message when I open Calibre with my my CyBook connected YGG- Calibre 3 01-26-2009 10:49 AM
"Unexpected Error" - Won't Open Books Nola_Gal Amazon Kindle 13 12-29-2008 07:07 AM


All times are GMT -4. The time now is 06:17 AM.


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