Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
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
Old 06-13-2011, 08:55 PM   #2
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
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?
Adjust is offline   Reply With Quote
Advert
Old 06-24-2011, 11:51 AM   #3
lhumble
Junior Member
lhumble began at the beginning.
 
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?
lhumble is offline   Reply With Quote
Old 06-24-2011, 01:10 PM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by lhumble View Post
It seems to just be the closing tag for the metadata element. Isn't that odd?
that is where it defaults if it gets totally lost in the file somewhere. It is likely it got lost because an earlier thing was never closed such as a quote mark or tag. It might also be at the end if a required element isn't there.

where is the closing package?

Dale

Last edited by DaleDe; 06-24-2011 at 01:14 PM.
DaleDe is offline   Reply With Quote
Old 06-25-2011, 01:09 AM   #5
eping
ePub Maker
eping began at the beginning.
 
eping's Avatar
 
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?
eping is offline   Reply With Quote
Advert
Reply

Tags
metadata, opf file, validation


Forum Jump

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


All times are GMT -4. The time now is 08:20 AM.


MobileRead.com is a privately owned, operated and funded community.