readium / r2-testapp-swift

BSD 3-Clause "New" or "Revised" License
146 stars 38 forks source link

The app shows invalid publication message for a valid epub #254

Closed RodPatagonia closed 5 years ago

RodPatagonia commented 5 years ago

The app gives the following error: "The publication isn't valid" when importing an epub validated on http://validator.idpf.org Here it is a link to the epub

https://www.dropbox.com/s/llebuto8idenhcn/612.epub?dl=0

mickael-menu-mantano commented 5 years ago

The EPUB parser is not handling properly XML namespaces in the OPF. The PR https://github.com/readium/r2-streamer-swift/pull/105 should fix that when it's finished, by replacing AEXML with Fuzi and defining custom namespace prefixes for XPath expressions.

mickael-menu-mantano commented 5 years ago

I checked this book again with https://github.com/readium/r2-streamer-swift/pull/105 and it's working properly. 👍

RodPatagonia commented 5 years ago

Cool Thanks a lot