View Full Version : Epub 3 validation


carl_torstensson
02-08-2012, 07:31 AM
Hi,

Im trying to validate my epub3 book. I get the following error in the latest epubcheck:

ERROR: korrupta.epub/OEBPS/kapitel_19.xhtml(1,1): Entity '%OEBEntities' is undeclared
ERROR: korrupta.epub/OEBPS/kapitel_20.xhtml(7,52): External entities are not allowed in XML. External entity declaration found: %OEBEntities

Any help?

Thanks,
Carl

Toxaris
02-08-2012, 07:59 AM
Is ePubCheck already ePub3 ready?

carl_torstensson
02-08-2012, 08:04 AM
Im using epubcheck-3.0b4

http://code.google.com/p/epubcheck/

Toxaris
02-08-2012, 01:16 PM
Yes, but I am not sure it supports ePUB3.

carl_torstensson
02-08-2012, 02:51 PM
Im thinking that since the error I get isn't something like "... is not allowed, expected" etc, there is a correct answer. Or so I hope :)

Toxaris
02-08-2012, 04:15 PM
Not necessarily. If the checker is not updated for ePUB3 everything which is not according to ePUB2 will get a notion of 'not allowed' or 'not expected'.

The large possible variations of implementing stuff via ePUB3 will make it very difficult to create good checkers.

carl_torstensson
02-08-2012, 04:51 PM
As long as it is according to idpf standards it shouldn't be impossible to create a good checker. But that's another topic.

Im not the only one getting this problem: http://idpf.org/forum/topic-518

Would be great if some smart person out there could explain what is going on. Strangely enough this guy is getting the exact same problem, on the EXACT SAME LINES: (7,52) and (1,1). Messed up. Is this a bug?

Toxaris
02-09-2012, 02:08 AM
Might be a bug, in that case you have to report it to the authors.

The problem with building a good checker is that the standards are ambiguous. Several items can be read/implemented in multiple manners, all correct according to the standards. Another issue is that a lot of readers (specifically iBooks) ignore standards to implement their own version of it.
The addition of Javascript is, in my opinion, a downgrade just as adding audio/video is. There were enough other strange/incomplete issues with the format to solve first.

chrisridd
02-12-2012, 05:25 AM
Hi,

Im trying to validate my epub3 book. I get the following error in the latest epubcheck:

ERROR: korrupta.epub/OEBPS/kapitel_19.xhtml(1,1): Entity '%OEBEntities' is undeclared
ERROR: korrupta.epub/OEBPS/kapitel_20.xhtml(7,52): External entities are not allowed in XML. External entity declaration found: %OEBEntities

It sounds like you're trying to use an internal DTD subset in your XHTML files. Is that permitted in epub3? Is that DTD subset valid?

Can you post the first view lines of your XHTML file?

carl_torstensson
02-13-2012, 07:37 AM
This is lines 1-8.

<?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>
<title>De korrupta</title>
<link href="template.css" rel="stylesheet" type="text/css" />
</head>
<body>

chrisridd
02-13-2012, 12:38 PM
This is lines 1-8.

<?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>
<title>De korrupta</title>
<link href="template.css" rel="stylesheet" type="text/css" />
</head>
<body>

Well there's definitely nothing like %OEBEntities there, so I reckon your files are not at fault and the problems in the checker.

carl_torstensson
02-14-2012, 06:00 AM
I talked to Markus at IDPF and got the answer to this riddle. The problem was that no doctypes are allowed. I removed that line and everything worked perfectly.

A bad error message thou. Needs to be reworded.