06-13-2011, 05:22 PM | #1 |
Junior Member
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. |
06-13-2011, 08:55 PM | #2 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
1. ERROR: Globalizing Citizenship - Rygiel, Kim.epub/OEBPS/Kim_ISBN9780774859486_epub_opf_r1.opf(20)
What's at line 20? |
Advert | |
|
06-24-2011, 11:51 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: none
|
It seems to just be the closing tag for the metadata element. Isn't that odd?
|
06-24-2011, 01:10 PM | #4 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
where is the closing package? Dale Last edited by DaleDe; 06-24-2011 at 01:14 PM. |
|
06-25-2011, 01:09 AM | #5 |
ePub Maker
Posts: 120
Karma: 16
Join Date: Dec 2009
Location: Mordor
Device: iPad,Kindle 3, Nook 2
|
1 The meta block has no error. It passes ePubCheck as I tested.
2 If there's unclosed tag, ePubCheck will show ERROR: /OPS/content.opf(19): XML document structures must start and end within the same entity. So there would be other mistake. epubcheck version? |
Advert | |
|
Tags |
metadata, opf file, validation |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] metadata.opf ? | cybmole | Calibre | 12 | 02-01-2012 02:00 AM |
OPF file OPS/package.opf is missing | Run2Eat | ePub | 2 | 05-31-2011 06:52 PM |
OPF? | Devoniscool | Other formats | 1 | 05-08-2011 06:30 AM |
What is opf, and do I need to keep it? | Davimee | Astak EZReader | 4 | 04-30-2010 12:43 PM |
what do you do with the .opf? | JGB | Calibre | 5 | 12-25-2008 07:26 PM |