valobox / epub

A library for extracting, compressing and flattening epub files
MIT License
22 stars 4 forks source link

Error on normalize #5

Open orangemug opened 12 years ago

orangemug commented 12 years ago

Error

StreamFile#normalize failed with Nokogiri::XML::XPath::SyntaxError: Undefined namespace prefix: //xmlns:navMap - 2 failed attempts
oliverbrooks commented 11 years ago

This is happening because some NCX files have double namespaced nodes ncx:ncx so the normal namespace from the root node doesn't get read properly. The hack fix is to strip the namespace but ideally it should fix this in the standardize function before processing.