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 05-10-2011, 10:48 AM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Help, I can't figure out this epub validation error

I've gotten used to using the Validate Epub option in Sigil. I believe it uses the Flightcrew validator. Occasionally I'll find an error and am able to fix it fairly easily. More often I'm thrilled to see No Errors Found displayed.

I've run an error now and I cannot figure it out for the life of me.

I have an image that appears under the chapter number on every chapter header.

This is the error I'm receiving:

value 'id=' does not match regular expression facet '\c+'

and this is the code for every one of these instances:

Code:
<p class="tightgraphic2"><img alt="" height="79" src="../Images/EmpireEmblem.jpg" width="30" /></p>
I have no idea what may be wrong with this code that could be causing this error. Does anyone see a problem with it that I may be missing?

Thanks.

- Byron Followell
bfollowell is offline   Reply With Quote
Old 05-10-2011, 11:50 AM   #2
EowynCarter
Wizard
EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.EowynCarter ought to be getting tired of karma fortunes by now.
 
Posts: 4,111
Karma: 1604192
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
it looks like it expects an "id" attribute on either the paragraph or images.

Someting like :
<p id="image_p" class="tightgraphic2"><img alt="" id="myimage" height="79" src="../Images/EmpireEmblem.jpg" width="30" /></p>
EowynCarter is offline   Reply With Quote
 
Advertisement
Old 05-10-2011, 11:58 AM   #3
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Quote:
Originally Posted by EowynCarter View Post
it looks like it expects an "id" attribute on either the paragraph or images.

Someting like :
<p id="image_p" class="tightgraphic2"><img alt="" id="myimage" height="79" src="../Images/EmpireEmblem.jpg" width="30" /></p>
Typically an id attribute isn't required and I've never before received an error for not having one. Also, when something is missing, the error returned usually says such and such is missing, not that it doesn't match some obscure regular expression.

I tried adding an id to the paragraph and the img tags individually and to both but it didn't fix anything.

Thanks for the reply though. Does anyone have any other ideas?

- Byron
bfollowell is offline   Reply With Quote
Old 05-10-2011, 12:18 PM   #4
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 549
Karma: 94420
Join Date: Feb 2010
Device: none
This is kind of grasping at straws, but are you sure you're looking at the right line? Sometimes the way epubcheck counts lines is different from the way the code is displayed in Sigil, for example. So, maybe the actual error is on some other line nearby?

Like I said, a wild guess...
st_albert is offline   Reply With Quote
Old 05-10-2011, 12:29 PM   #5
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Quote:
Originally Posted by st_albert View Post
This is kind of grasping at straws, but are you sure you're looking at the right line? Sometimes the way epubcheck counts lines is different from the way the code is displayed in Sigil, for example. So, maybe the actual error is on some other line nearby?

Like I said, a wild guess...
I can't say for certain, no. I'm using the Flightcrew validator option built straight into Sigil though, not another tool, and if I double-click on the error code, it opens the html file in question and takes me right to the line listed, 18. I really don't see anything else close to that line that it could be either. I mean, maybe one tool starts counting from zero and another starts from one. How far could it really be off?!

It's probably something really silly or simple or both but I can't see anything wrong.

- Byron
bfollowell is offline   Reply With Quote
Old 05-10-2011, 12:59 PM   #6
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,937
Karma: 1704270
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
Did you customize anything in the way of regexes? I'm not familiar with \c. I'm a Perl person, not a Python person, but I looked it up in the Python manual, and I don't see \c as a regex atom. In perl, there is a \cx for a control character 'x', but I can't imagine that parsing an id element is looking for a control character.

Could there possibly be an opening or closing quote above the line somewhere that has the wrong quote? E.g. single quote instead of double-quote. Maybe the parser is lost?
susan_cassidy is offline   Reply With Quote
Old 05-10-2011, 02:01 PM   #7
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
^^^

Nope, I haven't cutomized anything, intentionally anyway.

I have a regex cheatsheet and I couldn't find anything listed for \c either. Like you, all I saw was the \cx control character listing.

No wrong quotes anywhere they shouldn't be.

I've searched all over my code and text, five or six lines in either direction from the line in question and I can find absolutely nothing wrong; nothing I haven't done a hundred times over in other ebooks. I really have absolutely no idea what could possibly be causing this error.

- Byron
bfollowell is offline   Reply With Quote
Old 05-10-2011, 02:13 PM   #8
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
Quote:
Originally Posted by bfollowell View Post
I've searched all over my code and text, five or six lines in either direction from the line in question and I can find absolutely nothing wrong; nothing I haven't done a hundred times over in other ebooks. I really have absolutely no idea what could possibly be causing this error.
doh!

I spoke too soon.

I pulled one of the html files in question out of the epub manually and dumped it into Notepad++. The lines were numbered differently and when I looked at the line in question, line 18, I saw this:

Code:
 <h2 class="chaptertitle1 id=" id="nov01ch01">1</h2>
Just like you mentioned, a quote out of place. I must've been typing the id in, got distracted, and started typing it again. Then I cut and pasted this for all of my chapters, just changing the id name and chapter number where needed. That's why it shows up for all of my chapters that have a chapter header.

I'm sure when I go back and remove all of the extra id=" references, everything will be right with the world.

Thanks for the suggestions and helping me step through it. Sometimes you just look at something so much, it's easy to miss something that is obviously staring you right in the face.

- Byron
bfollowell is offline   Reply With Quote
Old 05-11-2011, 01:11 PM   #9
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 549
Karma: 94420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by bfollowell View Post
I pulled one of the html files in question out of the epub manually and dumped it into Notepad++. The lines were numbered differently and when I looked at the line in question, line 18, I saw this:

Code:
 <h2 class="chaptertitle1 id=" id="nov01ch01">1</h2>
That's the issue I was getting at in my post above. I don't know why the line numbers appear to be different in Sigil code view vs. an external text editor, but I see it sometimes myself.
st_albert is offline   Reply With Quote
Old 05-11-2011, 04:12 PM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,101
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
That is easy. Valloric explained it in another part. When you press validate, the epub is created and the epub is then validated. However, the post generation while creating the epub will change the line numbers. That is the reason that the line numbers do not match. It is a known issue.
Toxaris 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
Epub validation Error fiona86 ePub 3 06-25-2011 01:57 AM
epub validation error drwinn Workshop 17 03-22-2011 06:10 PM
epub validation error sassanik Sigil 19 12-08-2010 06:46 AM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 11:53 PM
ePub Validation Error mrbillb ePub 6 09-28-2010 03:14 PM


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


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