View Single Post
Old 08-21-2019, 03:44 PM   #1
codys
Junior Member
codys began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2018
Device: Kindle Paperwhite
<Blockquote> problems

I am trying to use blockquote, which seems to be allowed, but I am getting an error around the closing tag.

Example code:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>Bacon Addicts Anonymous</title>
<link href="centercut-style.css" rel="stylesheet" type="text/css"/>
</head>

<body>

<h1 class="title">Bacon Addicts Anonymous</h1>

<h2 class="subtitle">Pro/Con: Must all bacon be pork?</h2>

<h3 class="subheading">Pro: Real bacon comes from pigs!</h3>

<p class="primary2">Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>

<blockquote>Cras ornare massa odio.</blockquote>

</body>

</html>
Then the error:

Quote:
ERROR start.xhtml 19 38 Error while parsing file: text not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")

ERROR start.xhtml 19 49 Error while parsing file: element "blockquote" incomplete; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
Specifically, the first error is between the B and the L of </blockquote> and the second error is after </blockquote>.

I know that there's ways to do what I want without using blockquote, but it bugs me that I can't figure out what's wrong. It seems to have a problem with the closing tag itself. The first error looks like it think it's text outside of a tag, and the second looks like the tag's not even there.

What am I missing here?

--

EDIT: Epub, of course, on Calibre.

Last edited by codys; 08-21-2019 at 03:44 PM. Reason: Details
codys is offline   Reply With Quote