blockquote causes error

313 views
Skip to first unread message

Lucas Gonze

unread,
Oct 13, 2009, 8:10:22 PM10/13/09
to epubcheck
Hi,

Use of the blockquote element is causing epubcheck to throw the error
"text not allowed here," fixable only be removing the blockquote
element. AFAIK blockquote is legal XHTML in an epub. Is it not
legal, or is epubcheck doing the wrong thing?

Thanks.

Dave Cramer

unread,
Oct 13, 2009, 8:19:45 PM10/13/09
to epub...@googlegroups.com
Does your blockquote contain a p child? Blockquote can't contain text directly.

Dave

Jon

unread,
Oct 13, 2009, 8:23:52 PM10/13/09
to epubcheck
In XHTML, <blockquote> has a content model where it may only
contain certain blocklevel elements.

For example, this is NOT allowed:

<blockquote>This is some text.</blockquote>

While this is legal:

<blockquote>
<p>This is some text.</p>
</blockquote>


So that's where I'd first look.

Good luck!

Jon Noring

Lucas Gonze

unread,
Oct 13, 2009, 8:49:27 PM10/13/09
to epub...@googlegroups.com
Thanks, guys. That was exactly the problem.

Given how surprising that is to me, it looks like I'm due for some
re-education in XHTML strict. :)
Reply all
Reply to author
Forward
0 new messages