Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2016, 06:27 PM   #1
jafprrr
Junior Member
jafprrr began at the beginning.
 
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?
jafprrr is offline   Reply With Quote
Old 05-15-2016, 11:13 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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,
Turtle91 is offline   Reply With Quote
Advert
Old 05-16-2016, 02:08 AM   #3
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,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.
Toxaris is offline   Reply With Quote
Old 05-16-2016, 11:13 AM   #4
jafprrr
Junior Member
jafprrr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2016
Device: Sigil
Quote:
Originally Posted by Toxaris View Post
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.
Thank you.

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?
jafprrr is offline   Reply With Quote
Old 05-16-2016, 12:54 PM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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}
and you can add any other kind of styling you want in the CSS section - bold/italics, margins, spacing, etc.
Turtle91 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:14 PM.


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