This commit is contained in:
Kovid Goyal 2014-02-18 15:04:55 +05:30
parent 371aa6ef77
commit d9f7968aef

View File

@ -209,8 +209,9 @@ def check_xml_parsing(name, mt, raw):
except Exception as err: except Exception as err:
return errors + [errcls(err.message, name)] return errors + [errcls(err.message, name)]
if mt in OEB_DOCS and root.nsmap.get(root.prefix, None) != XHTML_NS: if mt in OEB_DOCS:
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None))) if root.nsmap.get(root.prefix, None) != XHTML_NS:
errors.append(BadNamespace(name, root.nsmap.get(root.prefix, None)))
return errors return errors