Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2011, 06: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, 06:16 PM   #2
theducks
Grand Sorcerer
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: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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 offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:56 PM.


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