View Single Post
Old 04-15-2013, 04:22 PM   #1
srascal
Epubs for Cylons
srascal began at the beginning.
 
srascal's Avatar
 
Posts: 13
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire
Question Subtitle in epub metadata?

Does anyone know how to include subtitle information in the metadata? I followed IDPF's specs exactly and put this in my opf file (real book title not shown):

<dc:title id="t1">A Dictionary of Modern English Usage</dc:title>
<meta refines="#t1" property="title-type">main</meta>

<dc:title id="t2">First Edition</dc:title>
<meta refines="#t2" property="title-type">edition</meta>

However, IDPF's own validator found this meta to be an error, showing this error message:

ERROR: book.epub/OEBPS/content.opf(5,45): attribute "refines" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"
ERROR: book.epub/OEBPS/content.opf(5,45): attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"
ERROR: book.epub/OEBPS/content.opf(5,45): element "meta" missing required attributes "content" and "name"
ERROR: book.epub/OEBPS/content.opf(5,51): text not allowed here; expected the element end-tag
ERROR: book.epub/OEBPS/content.opf(7,45): attribute "refines" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"
ERROR: book.epub/OEBPS/content.opf(7,45): attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang"
ERROR: book.epub/OEBPS/content.opf(7,45): element "meta" missing required attributes "content" and "name"
ERROR: book.epub/OEBPS/content.opf(7,55): text not allowed here; expected the element end-tag

Before inserting the above title-type metadata, my epub (and opf and it's metadata) had absolutely zero problems passing the inspector.

Source of IDPF code: http://www.idpf.org/epub/30/spec/epu...-20111011.html

Thanks for any insight you can offer. Amy
srascal is offline   Reply With Quote