MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   attribute "span" not (https://www.mobileread.com/forums/showthread.php?t=76490)

paulpeer 03-09-2010 12:10 PM

attribute "span" not
 
I've made an ePub book with Sigil, and ePubValidator (http://threepress.org/document/epub-validate/) gives this error:

ERROR: Origino de specioj.epub/OEBPS/Text/content022.xhtml(94): attribute "span" not allowed at this point

I cannot find anything wrong. Does someone know how to interpret the number (94) behind the page name? I thought it might be the 94th line, but the 94th line from Sigils point of view is empty. 94th character in the file doesn't make sence either ...

Valloric 03-09-2010 01:05 PM

Without the epub file in question, helping you is impossible.

KevinH 03-09-2010 01:36 PM

Quote:

Originally Posted by paulpeer (Post 822206)
I've made an ePub book with Sigil, and ePubValidator (http://threepress.org/document/epub-validate/) gives this error:

ERROR: Origino de specioj.epub/OEBPS/Text/content022.xhtml(94): attribute "span" not allowed at this point

I cannot find anything wrong. Does someone know how to interpret the number (94) behind the page name? I thought it might be the 94th line, but the 94th line from Sigils point of view is empty. 94th character in the file doesn't make sence either ...

FWIW, I have received a similar error once and it was because < span > is an inline element by default and I had used a < span > tag that was NOT inside a block level tag. It was only inside the < body > tag.

Once I placed it within a block level tag (like a <p > < /p > tag set) that error message went away for me.

But the error messages from epubcheck are so vague I have no idea if you are having the same issue or not.

paulpeer 03-09-2010 01:43 PM

Quote:

Originally Posted by KevinH (Post 822311)
FWIW, I have received a similar error once and it was because < span > is an inline element by default and I had used a < span > tag that was NOT inside a block level tag. It was only inside the < body > tag.

Thanks for trying, Kevin, but no, I've just checked: every < span > element is within a <p > element ...

paulpeer 03-09-2010 01:45 PM

Quote:

Originally Posted by Valloric (Post 822280)
Without the epub file in question, helping you is impossible.

Thanks for the suggestion, Valloric, but publishing it here could give problems with copyright. Can I send it somehow privately?

pdurrant 03-09-2010 01:55 PM

Quote:

Originally Posted by paulpeer (Post 822206)
ERROR: Origino de specioj.epub/OEBPS/Text/content022.xhtml(94): attribute "span" not allowed at this point

I cannot find anything wrong. Does someone know how to interpret the number (94) behind the page name?

It's the 94th line. But not the 94th line in Sigil, but the 94th line in the source file content022.xhtml, where lines are delimited by CR/LF or CR or LF.

Valloric 03-09-2010 03:04 PM

Quote:

Originally Posted by paulpeer (Post 822321)
Thanks for the suggestion, Valloric, but publishing it here could give problems with copyright. Can I send it somehow privately?

Create an issue on the tracker and use the "Private" label. Only you and I will be able to see it. More details on this wiki page.

paulpeer 03-09-2010 03:39 PM

Quote:

Originally Posted by pdurrant (Post 822329)
It's the 94th line. But not the 94th line in Sigil, but the 94th line in the source file content022.xhtml, where lines are delimited by CR/LF or CR or LF.

Thanks. I thought both were the same, but there is indeed a slight difference in counting. The 94th line in the source is the 103rd line in Sigil.

But the bad news is, that the 94th line is a blank line between two paragraphs ... :(

So a start supposing that EPUBValidator is getting crazy ...

DaleDe 03-09-2010 03:46 PM

Often an error turns up because of a lack of something. This results in a display like you are seeing. Perhaps there should have been a </span> before the point in the file or it is not well nested.

paulpeer 03-09-2010 04:13 PM

I found it!!! But the problem was not in line 94, but several paragraphs before that ... Thanks to all who tried thinking with me!

AlexBell 03-10-2010 03:27 AM

Quote:

Originally Posted by paulpeer (Post 822575)
I found it!!! But the problem was not in line 94, but several paragraphs before that ... Thanks to all who tried thinking with me!

Could you tell us please what the problem was that you found?

Regards, Alex

paulpeer 03-10-2010 12:06 PM

Quote:

Originally Posted by AlexBell (Post 823100)
Could you tell us please what the problem was that you found?

Regards, Alex

Yes, all my paragraphs have the basic form < p > ... </ p> but one of them had this structure: < p span="" >

I haven't the slightest idea how it came there, and why I managed not to see it ...

Today I had a similar problem. I imported an HTML file in Sigil. This file had many < h1 > chapters. After opening it in Sigil I saw that every < h1 > had been changed to < h1 class="" >. This empty class gave the same error message as the strange span="" yesterday.

Valloric 03-10-2010 01:21 PM

Quote:

Originally Posted by paulpeer (Post 823520)
Today I had a similar problem. I imported an HTML file in Sigil. This file had many < h1 > chapters. After opening it in Sigil I saw that every < h1 > had been changed to < h1 class="" >. This empty class gave the same error message as the strange span="" yesterday.

That's strange. Could you make a small test case that reproduces the problem and then report it on the tracker?

paulpeer 03-10-2010 04:46 PM

Quote:

Originally Posted by Valloric (Post 823637)
That's strange. Could you make a small test case that reproduces the problem and then report it on the tracker?

Done!

Valloric 03-10-2010 06:24 PM

Quote:

Originally Posted by paulpeer (Post 824002)
Done!

And fixed, too! :)


All times are GMT -4. The time now is 10:26 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.