![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2016
Device: Sigil
|
Error schema not satisfied: no declaration found for element
Hi all,
When I run FlightCrew, I receive the following error: Error schema not satisfied: no declaration found for element 'section' I am trying to do an ordered list that has a break in the middle, which has proved more complicated than I would like. After a lot of searching, I found this apparent solution: CSS section { counter-increment: section; } section p:before { content: counter(section) '. '; } HTML <section> <ul style="list-style-type: none;"> <li><p class="normal">First point blah blah blah</p></li> </ul> </section> <section> <ul style="list-style-type: none;"> <li><p class="normal">Second point blah blah blah</p></li> </ul> </section> <section> <ul style="list-style-type: none;"> <li><p class="normal">Third point blah blah blah</p></li> </ul> </section> <section> <ul style="list-style-type: none;"> <li><p class="normal">Fourth point blah blah blah</p></li> </ul> </section> <p class="normal">This is the text between the fourth and fifth points</p> <ul style="list-style-type: none;"> <li><section> <p class="normal">Fifth point blah blah blah</p> </section></li> </ul> Sigil gets what I'm trying to do, but FlightCrew doesn't like it. It also gave me this error: Error schema not satisfied: element 'section' is not allowed for content model Not sure if this is <p> or <ul>. Okay, so what is a solution that will work? |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I think Flightcrew is only for epub 2, and the <section> tag is only for epub 3...but I haven't dug in too deep on epub3 spec yet. That's where I would start looking.
Cheers, |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Also, the example you gave is just an unordered list with the list-style removed. If that is what you want, you could also just create a paragraph style that mimics this. Of course you need to enter the number yourself.
It will depend on your target. The <section> will only work in ePUB3, but good support for ePUB3 is scarce. There are some reading applications for Android and IOS, but good ones are hard. There are no ePUB3 e-ink readers AFAIK. |
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2016
Device: Sigil
|
Quote:
The reason I did the unordered list with the list-style removed was to get the list-style format. Does anybody know the specific paragraph style for lists in ePubs? Or do I just try and get as close as I can? |
|
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Code:
<ul class="nostyle"> <li>First point blah blah blah</li> <li>Second point blah blah blah</li> <li>Third point blah blah blah</li> <li>Fourth point blah blah blah</li> </ul> with this in the CSS ul.nostyle {list-style-type: none} |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
attribute 'lang' error schema not satisfied | Leonatus | ePub | 16 | 03-25-2016 03:21 PM |
No declaration found for element 'list-holder' | kakkalla | Sigil | 4 | 05-18-2013 05:24 AM |
Error: no declaration found for element 'u' | Ripplinger | Sigil | 6 | 03-09-2013 08:20 PM |
Unfinished Element error | Vagabondista | ePub | 3 | 09-14-2010 12:12 PM |
Error: malformed database schema (books_insert_trg) | cbatalla | Calibre | 4 | 05-08-2010 01:02 PM |