andreareider / epubcheck

Automatically exported from code.google.com/p/epubcheck
0 stars 0 forks source link

value of attribute "id" is invalid; must be an XML name without colons #308

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

epub 2.0 validation error

METHOD:

What steps will reproduce the problem?
1.
2.
3.

RESULT:

What happens?

EXPECTED:

What did you expect to happen? It is very important to state what your
expectation is.

PLATFORM:

What version of the product are you using? On what operating system?

ADDITIONAL INFO:

Please provide any additional information below.

Original issue reported on code.google.com by kbharath...@gmail.com on 21 Sep 2013 at 5:07

Attachments:

GoogleCodeExporter commented 8 years ago
This is not a bug in epubcheck!

XML ID's are not allowed to start with a number!

Fix these two <item> in your content.opf:

    <item id="1introductio" href="1introductio.xhtml" media-type="application/xhtml+xml" />
    <item id="2Autho" href="2Autho.xhtml" media-type="application/xhtml+xml" />

and the corresponding <itemref> elements:

    <itemref idref="1introductio" />
    <itemref idref="2Autho" />

Original comment by tobias.c...@gmail.com on 22 Sep 2013 at 10:22