Fiz a validação do meu ePub e apareceu a seguinte mensagem:

Erro ao analisar o arquivo 'attribute' epub: type "não permitido aqui; atributo esperado "dir", "lang", "style", "title" ou "xml: lang" '.

Como corrigir?

  • 2
    I'm voting to close this question as off-topic because te question is not in English – Mark Jan 12 at 17:56

I'm assuming that you got the following error message:

Error while parsing file 'attribute "epub:type" not allowed here; expected attribute "class", "dir", "id", "lang", "style", "title" or "xml:lang"'.

This message is typically displayed in the following two cases:

  1. If your book is an epub3 book, the epub namespace declaration is missing. It should look like this:

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">

  2. If your book is an epub2 book, either remove all epub:type attributes or convert your book to an epub3 book with Calibre.

In the future, please provide an English translations!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.