readium / readium-sdk

A C++ ePub renderer SDK
BSD 3-Clause "New" or "Revised" License
389 stars 164 forks source link

ePub3 nav.html #41

Closed bcharp closed 10 years ago

bcharp commented 10 years ago

Hi,

On iOS, When I'm trying to open a fixed layout ePub 3, I got a freeze. Then this message appear in console :

text/nav.html:2: I/O warning : failed to load HTTP resource
UBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"

It seems that readium is trying to load the html DTD from the nav.html. I can't intercept it in NSURLProtocol so I guess it's in C++.

Does readium support ePub 3 nav.html ?

Thanks.

danielweck commented 10 years ago

Your "nav" document should be XHTML5 not XHTML1.1 (just like every other HTML content document in your EPUB)

Use this instead:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:epub="http://www.idpf.org/2007/ops"
lang="en-US" xml:lang="en-US">

bcharp commented 10 years ago

it works, thanks !