|
|
#1 |
|
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 504884
Join Date: Aug 2010
Location: Germany
Device: Bookeen Frontlight / Kindle 3 / Kobo Touch / Ipod touch / Nook Color
|
Validation: attribute 'start' is not declared for element 'ol'
The corresponding line is <ol start="14"> <li>something It's valid html and does exactly what it should, output: 14 something If I do it the other way <ol> <li value="14">something the result is also correct, but the validation analog shows "value not allowed for li" Why are those wrong and how do I do it right? |
|
|
|
|
|
#2 |
|
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,384
Karma: 848775
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
start is an xhtml 1.0 transitional attribute. It is not supported by xhtml 1.1.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,142
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Because those are not valid attributes in XHTML, and ePub uses XHTML, not HTML.
I believe there are equivalent properties in CSS, which you can use combined with XHTML, but they are not officially supported in ePub, so the bottom line is, I'm afraid: do not use numbered lists in ePub. |
|
|
|
|
|
#4 |
|
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 504884
Join Date: Aug 2010
Location: Germany
Device: Bookeen Frontlight / Kindle 3 / Kobo Touch / Ipod touch / Nook Color
|
Thanks.
I think I'll use it anyway since it works everywhere I have tested so far and just ignore the validation error... |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,106
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
You can, but a lot of readers will ignore it.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ePub errors (attribute-type, element, text-not-allowed | thiefwriter | ePub | 5 | 09-17-2011 11:02 AM |
| p attribute error on validation | landed | Calibre | 2 | 02-13-2011 11:15 AM |
| < ol > "start attribute issue | eclecticguy | ePub | 5 | 06-08-2010 01:41 PM |
| Polymer Vision is declared Bankruptcy | Zarkov | News | 1 | 07-16-2009 10:04 AM |