Thread: .OPF errors
View Single Post
Old 06-13-2011, 05:22 PM   #1
lhumble
Junior Member
lhumble began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: none
.OPF errors

I've tried adding metadata to my .opf file, but now my file won't validate.

Can anyone tell me what's wrong with this metadata?

<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlnspf="http://www.idpf.org/2007/opf">
<dc:title>Globalizing Citizenship</dc:title>
<dc:creator opf:role="aut">Rygiel, Kim</dc:creator>
<dcublisher>UBC Press</dcublisher>
<dc:format>epub</dc:format>
<dc:date opf:event="original-publication">2010</dc:date>
<dc:date opf:event="epub-publication">2011-06-12</dc:date>
<dc:subject>Citizenship</dc:subject>
<dc:subject>Emigration and immigration - Government policy</dc:subject>
<dc:subject>Globalization - social aspects</dc:subject>
<dc:rights>Copyright 2010</dc:rights>
<dc:identifier id="BookId" opf:scheme="ISBN">9780774859486</dc:identifier>
<dc:language>en</dc:language>
<meta name="cover" content="img_5"/>
</metadata>
<manifest>

epubcheck is giving me the following error message:

1. ERROR: Globalizing Citizenship - Rygiel, Kim.epub/OEBPS/Kim_ISBN9780774859486_epub_opf_r1.opf(20): element "metadata" incomplete; missing required element "dc:identifier"

2. ERROR: Globalizing Citizenship - Rygiel, Kim.epub/OEBPS/Kim_ISBN9780774859486_epub_opf_r1.opf: unique-identifier attribute in package element must reference an existing identifier element id

Last edited by lhumble; 06-13-2011 at 05:26 PM.
lhumble is offline   Reply With Quote