Quote:
Originally Posted by KevinH
We should be able to add an xmlns definition to the html tag even for epub2 to make this legal.
|
Theoretically, this should work, but epubcheck seems to ignore custom namespaces. For example, it's also not possible to use
epub:type attributes in epub2 books even if you add a
xmlns:epub="http://www.idpf.org/2007/ops" namespace. (BTW, I also tested this with other tags.)
BTW, I used the following epub2 XHTML test file:
and got the following error messages:
Quote:
ERROR (RSC-005) at "meta2_test.epub/OEBPS/Text/Section0001.xhtml" (line 9, col 50):
Error while parsing file 'attribute "epub:type" not allowed here; expected attribute "class", "dir", "id", "lang", "style", "title" or "xml:lang"'.
ERROR (RSC-005) at "meta2_test.epub/OEBPS/Text/Section0001.xhtml" (line 9, col 50):
Error while parsing file 'attribute "aaa:role" not allowed here; expected attribute "class", "dir", "id", "lang", "style", "title" or "xml:lang"'.
|