View Full Version : How do I fix 'title element is empty' error?

04-12-2013, 06:57 AM
Hi. Using Indesign I made an epub which has passed the validation checks.
After being sent to BookBaby (first time ive used them) they failed it's approval because of this error.

EpubCheck Info Result:\Detail: WARNING: //cdbarx/content/books/20/BK00013520/original/BK00013520.epub/OEBPS/content.opf(6,17): title element is empty

Browsing de internet I think it is because the title tag is empty.
Using Sigil I looked in the content.opf file and saw this. <dc:title />
So I put an opening title tag at the front <dc:title>Book Name<dc:title /> and saved it.

But when I do that the code splits on to the next line
<dc:title>Book Name
<dc:title />

Is this correct?


04-12-2013, 07:19 AM
In Sigil, if you click "Tools - Metadata Editor" (or F8 on your keyboard), this will lead you to where you can add things like Title, Author, ISBN, Publication Date, etc.

It is not a good idea editing the content.opf manually unless you know exactly what you are doing.

04-12-2013, 09:15 AM
<dc:title />

is a self-closing tag, equivalent to <dc:title></dc:title>. what you want is

<dc:title>Book Name</dc:title>