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-24-2011, 05:05 PM   #1
book24
Junior Member
book24 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: iPad
Help with EPUb validation and closing tags

I'm creating a fixed layout illustrated epub book and it won't validate because it states:

1.ERROR: EPUB Files 3.epub/OEBPS/page02.xhtml(58): The element type "body" must be terminated by the matching end-tag "</body>".

2.ERROR: EPUB Files 3.epub/OEBPS/page02.xhtml: The element type "body" must be terminated by the matching end-tag "</body>".

3.ERROR: EPUB Files 3.epub/OEBPS/page03.xhtml(32): The element type "body" must be terminated by the matching end-tag "</body>".

4.ERROR: EPUB Files 3.epub/OEBPS/page03.xhtml: The element type "body" must be terminated by the matching end-tag "</body>".

5. Check finished with warnings or errors!

However, all of my body tags are closed. I don't get it. I'm a n00b when it comes to xhtml so I may be doing something wrong but it doesn't appear so.

Here is my code for page03.xhtml:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=1248, height=1610">
</meta>
<meta content="text/html; charset=UTF-8">
</meta>
<title>Backyard Wildlife Chipmunks</title>
<link href="template.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="page03">
<div class="image"> <img src="images/Chipmunks_ebook3_fmt.jpeg" alt="Chipmunks_ebook3.jpg"/> </div>
<div class="Page3text1"> <span class="white">What Are Chipmunks?</span> </div>
<div class="Page3text1-2"> <span class="white">4</span> </div>
<div class="Page3text2"> <span class="white">What Chipmunks Can Do</span> </div>
<div class="Page3text2-2"> <span class="white">8</span> </div>
<div class="Page3text3"> <span class="white">What Chipmunks Eat</span> </div>
<div class="Page3text3-2"> <span class="white">14</span> </div>
<div class="Page3text4"> <span class="white">Storing Food</span> </div>
<div class="Page3text4-2"> <span class="white">16</span> </div>
<div class="Page3text5"> <span class="white">Winter and Spring</span> </div>
<div class="Page3text5-2"> <span class="white">18</span> </div>
<div class="Page3text6"> <span class="white">Glossary</span> </div>
<div class="Page3text6-2"> <span class="white">22</span> </div>
<div class="Page3text7"> <span class="white">To Learn More</span> </div>
<div class="Page3text7-2"> <span class="white">23</span> </div>
<div class="Page3text8"> <span class="white">Index</span> </div>
<div class="Page3text8-2"> <span class="white">24</span> </div>
</div>
</div>
</body>
</html>

The validator kept on making me add extra </div> tags as well. I don't get it. Any help would be appreciated.

I exported out of ID 4, but have pretty much done everything within Dreamweaver as far as coding.
book24 is offline   Reply With Quote
Old 05-24-2011, 05:16 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,781
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by book24 View Post
</div>
</div>
</body>
</html>

The validator kept on making me add extra </div> tags as well. I don't get it. Any help would be appreciated.

I exported out of ID 4, but have pretty much done everything within Dreamweaver as far as coding.
You have 2 closing Div tags with only 1 open Div tag (just under body.

Try flightcrew for a better error report
theducks is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub validation in epubcheck 1.1 islandcharlie Conversion 13 08-02-2011 09:28 PM
Release 0.7.54 - Mobi self-closing tags Moonraker Calibre 2 04-09-2011 07:35 AM
EPUB Validation errors vhin3125 Workshop 1 04-01-2011 12:37 PM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
Epub Validation Problems crestfalleen Calibre 6 08-02-2010 09:43 PM


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


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