Hi Mathias,

It might be a bug of Sphinx itself. And it was already fixed in master branch.
Could you try an unreleased version of Sphinx?
You can use it via "pip install git+https://github.com/sphinx-doc/sphinx"; ?

Thanks,
Takeshi KOMIYA

2019年2月3日(日) 2:59 Mathias Weidner <[email protected]>:
>
> Hi all,
>
> I am trying to generate an EPUB with sphinx that contains a bibliography 
> generated with sphinxcontrib.bibtex.
>
> When I check the EPUB with epubcheck I get the following error message:
>
> Validating using EPUB version 3.0.1 rules.
> ERROR(RSC-005): 
> build/epub/FehlersuchebeiIKEv2IPsecVPN.epub/anhang/anhang.xhtml(17,66): Error 
> while parsing file 'element "dl" not allowed here; expected the element 
> end-tag, text or element "a", "abbr", "area", "audio", "b", "bdi", "bdo", 
> "br", "button", "canvas", "cite", "code", "command", "datalist", "del", 
> "dfn", "em", "embed", "epub:switch", "i", "iframe", "img", "input", "ins", 
> "kbd", "keygen", "label", "link", "map", "mark", "meta", "meter", "ns1:math", 
> "ns2:svg", "object", "output", "progress", "q", "ruby", "s", "samp", 
> "script", "select", "small", "span", "strong", "sub", "sup", "textarea", 
> "time", "u", "var", "video" or "wbr" (with 
> xmlns:ns1="http://www.w3.org/1998/Math/MathML"; 
> xmlns:ns2="http://www.w3.org/2000/svg";)'.
>
> Looking into the XHTML file I find the following:
>
> --- anhang/anhang.xhtml ---
>  16 <h1>Literaturverzeichnis</h1>
>  17 <p id="bibtex-bibliography-anhang/anhang-0"><dl class="citation">
>  18 <dt class="label" id="ikev2parameters"><span 
> class="brackets">IKE</span></dt>
>
> The source file that generates this output is:
>
> --- anhang/anhang.rst ---
>   1
>   2 Literaturverzeichnis
>   3 ====================
>   4
>   5 .. bibliography:: troubleshoot-ipsec.bib
>   6    :all:
>
> My configuration regarding extensions is:
>
> --- conf.py ---
> extensions = [
>     'sphinxcontrib.bibtex',
>     'sphinx.ext.todo',
>     'sphinx.ext.autosectionlabel',
> ]
>
> I am using
>
> Python 2.7.15rc1
> Sphinx==1.7.3
> sphinxcontrib-bibtex==0.4.0
>
> Do you have any hints what I could do to get a clean EPUB.
>
> Thanks,
>
> Mathias
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to