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 01-14-2012, 10:03 PM   #1
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 36
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad
Validation Error from ePub Checker

Hello. I'm getting a specific kind of error from ePub Checker, which I hope will be easy to fix, once I figure out why there's a problem. I know someone here will spot this quickly and I'm happy to feel foolish but to learn from my mistake.

These errors apply to the text formatted in the attached sample, element ul sample.txt.

element "ul" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context
Attribute name "ul" associated with an element type "ul" must be followed by the ' = ' character.

The one below applies to the text formatted in the attached sample, element p sample.txt

element "p" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context

Lists will be the death of me! I keep thinking I have them figured out, and then something like this happens. Any advice will be greatly appreciated! Thank you!
Attached Files
File Type: txt element ul sample.txt (2.6 KB, 65 views)
File Type: txt element p sample.txt (5.2 KB, 62 views)
sgirsberger is offline   Reply With Quote
Advert
Old 01-15-2012, 04:41 AM   #2
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: 4,303
Karma: 115718815
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I took a quick look at the files. In the second file you have the following structure:
Code:
<ol>
<li>Some text</li>
<p>other text</p>
<li>...
The <p> is not allowed here. Within a <ol> only <li> can be used. In a <li> there can be a <p>. What you could do is the following:
Code:
<ol>
<li><p>Some text</br />
other text</p></li>
<li>...
For your first file, I believe it is not possible to have a unordered list within an ordered list.
Toxaris is offline   Reply With Quote
Old 01-16-2012, 10:08 PM   #3
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 36
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad
Thanks, Toxaris. The problem, then, is having the numbering continue when an <ol> has a <ul> under it.

What I want to achieve is:

1. text text text

2. text text text

• text that relates to list item 2
• text that relates to list item 2

3. text text text

etc.

Sometimes there are subbullets; those are the <ul ul>. But it's my understanding that EPUB or more specifically, MOBI for Kindle, doesn't respect <start="x">, where x is the value for a beginning or continuing list item number, so that's why I wrap the <ul> into the <ol>? Works in web browsers, but maybe not in EPUB?
sgirsberger is offline   Reply With Quote
Old 01-16-2012, 11:02 PM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,062
Karma: 9175645
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Right, ePub does not support the "start" property. In practice it is better to forget about lists and just hardcode the numbering/bulleting.
Jellby is offline   Reply With Quote
Old 01-17-2012, 03:36 AM   #5
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: 4,303
Karma: 115718815
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by sgirsberger View Post
But it's my understanding that EPUB or more specifically, MOBI for Kindle, doesn't respect <start="x">, where x is the value for a beginning or continuing list item number, so that's why I wrap the <ul> into the <ol>? Works in web browsers, but maybe not in EPUB?
As Jellby said, the propertie 'start' is not supported. The term 'respect' is not in order here, it is just not part of the specification.

As said many times on these forums, not everything from the XHTML/CSS 2.0 stack is in the specification of ePUB. If something works in a webbrowser, it does not say it will have to work in an ePUB reader. Lists are one of those things. Some things work, some don't.
Toxaris is offline   Reply With Quote
Advert
Old 01-17-2012, 05:20 PM   #6
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 36
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad
Got it, Jellyby and Toxaris. I'll stop beating my head against a brick wall on this one. Thanks.
sgirsberger is offline   Reply With Quote
Old 01-17-2012, 05:20 PM   #7
sgirsberger
Enthusiast
sgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheesesgirsberger can extract oil from cheese
 
Posts: 36
Karma: 1000
Join Date: Dec 2010
Location: Virginia Beach, VA, USA
Device: iPhone, NOOK Color, iPad
Sorry. I meant Jellby. Such a Dickensian sort of name!
sgirsberger 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 -- what? Yuroc ePub 2 08-16-2011 01:29 PM
Epub validation Error fiona86 ePub 3 06-25-2011 12:57 AM
epub validation checker bobcdy ePub 0 06-03-2011 05:31 PM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 10:53 PM
ePub Validation Error mrbillb ePub 6 09-28-2010 02:14 PM


All times are GMT -4. The time now is 01:37 AM.


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