While running biblatex with \nocite
commands, I got the following error message(s) when running epubcheck
after tex4ebook
.
ERROR(RSC-005): Testfile.epub/OEBPS/Testfileli3.html(19,88): Validierungsfehler: Der Wert des Attributs "id" ist ungültig; es muss ein XML-Name ohne Doppelpunkte sein
Translated:
validation error: The value of attribute "id" is invalid; is has to be a XML-name without colon
The MWE would be the following, but it only reproduced the error 1 time. In my sourcefile.tex I got 175 \nocite commands and got 173 identical error messages with epubcheck.
\documentclass[11pt,a4paper]{report}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tex4ebook}
\usepackage[sortlocale=auto,bibstyle=authoryear,citestyle=authortitle-ticomp]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\nocite{sigfridsson}
\nocite{westfahl:space}
\nocite{set}
\nocite{stdmodel}
\nocite{aksin}
\nocite{bertram}
\printbibliography
\end{document}
Is there a fix for it? --> Yes, see Answer 1. It worked reducing the epubcheck error number from 123 to 20.
Update 1
I now have 20 errors left with epubcheck, which seem all related to the \pageref{somelabel}
command. epubcheck gives ERROR(RSC-012) Fragmentbezeichner ist nicht angegeben
and points to the following example in the html files (out of the 20):
(wie vorangehend, bei Andrej
Sacharow<a id='dx17-18004'></a> ab Seite <a href='#x11-12001r9'>249<!-- tex4ht:ref: AndrejSacharow --></a>, gesehen und angedeutet)
and points to the page number "249". But this \pageref
is located in ordinary body of text, without embedding in other command and env.
Up to now it was not possible to reproduce the epubcheck error in a MWE.