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-12-2013, 10:39 AM   #1
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
validating epub fails - how do I correct?

when I go to validate my epub (created with Scrivener, edited in Sigil) I get the following errors, and I have no idea what they mean or how to correct them. Help?

WARNING OEBPS/toc.ncx - - meta@dtb:uid content '3fab09d2-6f70-44d8-80c4-4ebfcca8d9ba' should conform to unique-identifier in content.opf: 'urn:uuid:3fab09d2-6f70-44d8-80c4-4ebfcca8d9ba'

ERROR OEBPS/toc.ncx 24 44 assertion failed: playOrder sequence has gaps

ERROR OEBPS/Text/contents.xhtml 13 105 non-standard stylesheet resource 'OEBPS/Misc/page-template.xpgt' of type 'application/adobe-page-template+xml'. A fallback must be specified.
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 11:12 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The first thing to do is remove /page-template.xpgt and any reference to it. You don't need it.

Post the headers of your toc.ncx and content.opf so we can have a look and see what needs to be done. The error means that the ID in the ncx and opf do not match.
JSWolf is online now   Reply With Quote
Advert
Old 06-12-2013, 11:29 AM   #3
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
Here's the content.opf

Spoiler:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:date>2013-01-01T00:00:00</dc:date>
<meta content="2013-06-12T15:18:29Z" name="scrivener:timestamp" />
<dc:contributor opf:role="bkp">Scrivener for Windows (1.X.X) [http://www.literatureandlatte.com/scrivenerforwindows/]</dc:contributor>
<dc:title>The Snarls</dc:title>
<dc:identifier id="PrimaryID">urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb</dc:identifier>
<dc:language>en</dc:language>
<dc:creator opf:role="aut">Becca Price</dc:creator>
<dc:description>The Snarls. They live on pillows and in the wind, just waiting to move into long, fine, or curly hair. And when they move in, they make nests, and more Snarls, and more nests. But we also have their natural enemies: a comb, a brush, and the dreaded Detangler spray!</dc:description>
<dc:subject>Fairy Tales, Tooth Fairy, Losing Teeth</dc:subject>
<dcublisher>Wyrm Tales Press</dcublisher>
<meta content="cover-image" name="cover" />
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/cover.xhtml" id="cover" media-type="application/xhtml+xml" />
<item href="Text/contents.xhtml" id="contents" media-type="application/xhtml+xml" />
<item href="Text/body.xhtml" id="body" media-type="application/xhtml+xml" />
<item href="Text/body1.xhtml" id="body1" media-type="application/xhtml+xml" />
<item href="Text/body2.xhtml" id="body2" media-type="application/xhtml+xml" />
<item href="Text/body3.xhtml" id="body3" media-type="application/xhtml+xml" />
<item href="Images/cover.jpg" id="cover-image" media-type="image/jpeg" />
<item href="Styles/stylesheet.css" id="stylesheet000-css" media-type="text/css" />
</manifest>
<spine toc="ncx">
<itemref idref="cover" linear="yes" />
<itemref idref="contents" linear="yes" />
<itemref idref="body" linear="yes" />
<itemref idref="body1" linear="yes" />
<itemref idref="body2" linear="yes" />
<itemref idref="body3" linear="yes" />
</spine>
<guide>
<reference href="Text/cover.xhtml" title="Cover" type="cover" />
<reference href="Text/contents.xhtml" title="Contents" type="toc" />
</guide>
</package>



Here's the TOC.ncx.

Spoiler:
?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/>
<meta content="1" name="dtb:depth"/>
<meta content="0" name="dtb:totalPageCount"/>
<meta content="0" name="dtb:maxPageNumber"/>
</head>
<docTitle>
<text>The Snarls</text>
</docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="Text/cover.xhtml"/>
</navPoint>
<navPoint id="navPoint-2" playOrder="2">
<navLabel>
<text>Contents</text>
</navLabel>
<content src="Text/contents.xhtml"/>
</navPoint>
<navPoint id="navPoint-4" playOrder="4">
<navLabel>
<text>The Snarls</text>
</navLabel>
<content src="Text/body1.xhtml"/>
</navPoint>
<navPoint id="navPoint-5" playOrder="5">
<navLabel>
<text>Dragons and Dreams teaser</text>
</navLabel>
<content src="Text/body2.xhtml"/>
</navPoint>
<navPoint id="navPoint-6" playOrder="6">
<navLabel>
<text>About the Author</text>
</navLabel>
<content src="Text/body3.xhtml"/>
</navPoint>
</navMap>
</ncx>
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 11:52 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Oh, one other error I forgot to mention. The ToC gaps is because the playorder in the ncx file has numerical gap(s). That requires renumbering.

Change <meta content="c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> (in ncx) to <meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> Now the unique-identifiers are the same.

Last edited by JSWolf; 06-12-2013 at 12:21 PM.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 12:08 PM   #5
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
Quote:
Originally Posted by JSWolf View Post
The first thing to do is remove /page-template.xpgt and any reference to it. You don't need it.
where would I find the reference? I removed the file, but "find" doesn't find any references to it in the html files.

ok, so I've made all these changes, and this is what I get when I try to validate:

WARNING OEBPS/toc.ncx - - meta@dtb:uid content 'c22d9e01-0d3c-4009-82df-3287f82ac7eb' should conform to unique-identifier in content.opf: 'urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb'

here's the toc.ncx

Spoiler:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/>
<meta content="1" name="dtb:depth"/>
<meta content="0" name="dtb:totalPageCount"/>
<meta content="0" name="dtb:maxPageNumber"/>
</head>
<docTitle>
<text>The Snarls</text>
</docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="Text/cover.xhtml"/>
</navPoint>
<navPoint id="navPoint-2" playOrder="2">
<navLabel>
<text>Contents</text>
</navLabel>
<content src="Text/contents.xhtml"/>
</navPoint>
<navPoint id="navPoint-3" playOrder="3">
<navLabel>
<text>The Snarls</text>
</navLabel>
<content src="Text/body1.xhtml"/>
</navPoint>
<navPoint id="navPoint-4" playOrder="4">
<navLabel>
<text>Dragons and Dreams teaser</text>
</navLabel>
<content src="Text/body2.xhtml"/>
</navPoint>
<navPoint id="navPoint-5" playOrder="5">
<navLabel>
<text>About the Author</text>
</navLabel>
<content src="Text/body3.xhtml"/>
</navPoint>
</navMap>
</ncx>


Here's the content.opf

Spoiler:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:date>2013-01-01T00:00:00</dc:date>
<meta content="2013-06-12T15:18:29Z" name="scrivener:timestamp" />
<dc:contributor opf:role="bkp">Scrivener for Windows (1.X.X) [http://www.literatureandlatte.com/scrivenerforwindows/]</dc:contributor>
<dc:title>The Snarls</dc:title>
<dc:identifier id="PrimaryID">urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb</dc:identifier>
<dc:language>en</dc:language>
<dc:creator opf:role="aut">Becca Price</dc:creator>
<dc:description>The Snarls. They live on pillows and in the wind, just waiting to move into long, fine, or curly hair. And when they move in, they make nests, and more Snarls, and more nests. But we also have their natural enemies: a comb, a brush, and the dreaded Detangler spray!</dc:description>
<dc:subject>Fairy Tales, Tooth Fairy, Losing Teeth</dc:subject>
<dcublisher>Wyrm Tales Press</dcublisher>
<meta content="cover-image" name="cover" />
<meta content="0.5.906" name="Sigil version" />
<dc:date opf:event="modification">2013-06-12</dc:date>
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/cover.xhtml" id="cover" media-type="application/xhtml+xml" />
<item href="Text/contents.xhtml" id="contents" media-type="application/xhtml+xml" />
<item href="Text/body.xhtml" id="body" media-type="application/xhtml+xml" />
<item href="Text/body1.xhtml" id="body1" media-type="application/xhtml+xml" />
<item href="Text/body2.xhtml" id="body2" media-type="application/xhtml+xml" />
<item href="Text/body3.xhtml" id="body3" media-type="application/xhtml+xml" />
<item href="Images/cover.jpg" id="cover-image" media-type="image/jpeg" />
<item href="Styles/stylesheet.css" id="stylesheet000-css" media-type="text/css" />
</manifest>
<spine toc="ncx">
<itemref idref="cover" linear="yes" />
<itemref idref="contents" linear="yes" />
<itemref idref="body" linear="yes" />
<itemref idref="body1" linear="yes" />
<itemref idref="body2" linear="yes" />
<itemref idref="body3" linear="yes" />
</spine>
<guide>
<reference href="Text/cover.xhtml" title="Cover" type="cover" />
<reference href="Text/contents.xhtml" title="Contents" type="toc" />
</guide>
</package>

Last edited by BeccaPrice; 06-12-2013 at 12:33 PM.
BeccaPrice is offline   Reply With Quote
Advert
Old 06-12-2013, 12:26 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by BeccaPrice View Post
where would I find the reference? I removed the file, but "find" doesn't find any references to it in the html files.

ok, so I've made all these changes, and this is what I get when I try to validate:
Quote:
WARNING OEBPS/toc.ncx - - meta@dtb:uid content 'c22d9e01-0d3c-4009-82df-3287f82ac7eb' should conform to unique-identifier in content.opf: 'urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb'
Change <meta content="c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> (in ncx) to <meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/> Now the unique-identifiers are the same.

Quote:
ERROR OEBPS/Text/contents.xhtml 13 105 'OEBPS/Misc/page-template.xpgt': referenced resource missing in the package.
The error is in contents.xhtml.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 12:39 PM   #7
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
changes made.

still getting this error:

WARNING OEBPS/toc.ncx - - meta@dtb:uid content 'null' should conform to unique-identifier in content.opf: 'urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb'

btw, Jon, I really appreciate your being patient with me and helping me through this.
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 12:42 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Please post your two ID lines from the OPF and the NCX. I want to double check if there is any error in there now.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 12:52 PM   #9
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
toc.ncx:

Spoiler:
?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:depth"/>
<meta content="0" name="dtb:totalPageCount"/>
<meta content="0" name="dtb:maxPageNumber"/>
</head>
<docTitle>
<text>The Snarls</text>
</docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="Text/cover.xhtml"/>
</navPoint>
<navPoint id="navPoint-2" playOrder="2">
<navLabel>
<text>Contents</text>
</navLabel>
<content src="Text/contents.xhtml"/>
</navPoint>
<navPoint id="navPoint-3" playOrder="3">
<navLabel>
<text>The Snarls</text>
</navLabel>
<content src="Text/body1.xhtml"/>
</navPoint>
<navPoint id="navPoint-4" playOrder="4">
<navLabel>
<text>Dragons and Dreams teaser</text>
</navLabel>
<content src="Text/body2.xhtml"/>
</navPoint>
<navPoint id="navPoint-5" playOrder="5">
<navLabel>
<text>About the Author</text>
</navLabel>
<content src="Text/body3.xhtml"/>
</navPoint>
</navMap>
</ncx>


contents.opf
Spoiler:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:date>2013-01-01T00:00:00</dc:date>
<meta content="2013-06-12T15:18:29Z" name="scrivener:timestamp" />
<dc:contributor opf:role="bkp">Scrivener for Windows (1.X.X) [http://www.literatureandlatte.com/scrivenerforwindows/]</dc:contributor>
<dc:title>The Snarls</dc:title>
<dc:identifier id="PrimaryID">urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb</dc:identifier>
<dc:language>en</dc:language>
<dc:creator opf:role="aut">Becca Price</dc:creator>
<dc:description>The Snarls. They live on pillows and in the wind, just waiting to move into long, fine, or curly hair. And when they move in, they make nests, and more Snarls, and more nests. But we also have their natural enemies: a comb, a brush, and the dreaded Detangler spray!</dc:description>
<dc:subject>Fairy Tales, Tooth Fairy, Losing Teeth</dc:subject>
<dcublisher>Wyrm Tales Press</dcublisher>
<meta content="cover-image" name="cover" />
<meta content="0.5.906" name="Sigil version" />
<dc:date opf:event="modification">2013-06-12</dc:date>
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/cover.xhtml" id="cover" media-type="application/xhtml+xml" />
<item href="Text/contents.xhtml" id="contents" media-type="application/xhtml+xml" />
<item href="Text/body.xhtml" id="body" media-type="application/xhtml+xml" />
<item href="Text/body1.xhtml" id="body1" media-type="application/xhtml+xml" />
<item href="Text/body2.xhtml" id="body2" media-type="application/xhtml+xml" />
<item href="Text/body3.xhtml" id="body3" media-type="application/xhtml+xml" />
<item href="Images/cover.jpg" id="cover-image" media-type="image/jpeg" />
<item href="Styles/stylesheet.css" id="stylesheet000-css" media-type="text/css" />
</manifest>
<spine toc="ncx">
<itemref idref="cover" linear="yes" />
<itemref idref="contents" linear="yes" />
<itemref idref="body" linear="yes" />
<itemref idref="body1" linear="yes" />
<itemref idref="body2" linear="yes" />
<itemref idref="body3" linear="yes" />
</spine>
<guide>
<reference href="Text/cover.xhtml" title="Cover" type="cover" />
<reference href="Text/contents.xhtml" title="Contents" type="toc" />
</guide>
</package>


This shows you how much I don't know what I'm doing - I wasn't at all sure what exactly you needed from these two files, so I gave you the whole things.
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 12:53 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I just took the OPF and NCX of an eBook I'm fixing up and dropped in your eBook's ID and it validates.

OPF:
Spoiler:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:title>The Silent Girl</dc:title>
<dc:language>en-US</dc:language>
<dc:identifier id="PrimaryID">urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb</dc:identifier>
<dc:creator opf:file-as="Gerritsen, Tess" opf:role="aut">Tess Gerritsen</dc:creator>
<dcublisher>Random House Publishing Group</dcublisher>
<dc:date opf:event="publication">2011-07-05</dc:date>
<dc:rights>Copyright © 2011 by Tess Gerritsen</dc:rights>
<meta content="cover-image" name="cover"/>
<meta content="1.2" name="epubcheckversion"/>
<meta content="2011-06-22" name="epubcheckdate"/>
<description xmlns="http://purl.org/dc/elements/1.1/">&lt;p&gt;</description>
</metadata>


NCX:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx version="2005-1" xml:lang="en-US" xmlns="http://www.daisy.org/z3986/2005/ncx/">
<head>
<meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/>
<meta name="dtb:depth" content="2"/>
<meta name="dtb:totalPageCount" content="0"/>
<meta name="dtb:maxPageNumber" content="0"/>
</head>
<docTitle><text>The Silent Girl: A Rizzoli & Isles Novel</text></docTitle>
<docAuthor><text>Tess Gerritsen</text></docAuthor>

Last edited by JSWolf; 06-12-2013 at 12:57 PM.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 12:55 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Here's how to fix this in the NCX.

<meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:depth"/>

should be...

<meta content="urn:uuid:c22d9e01-0d3c-4009-82df-3287f82ac7eb" name="dtb:uid"/>

Somehow you've changed dtb:uid to dtb:depth and that's what is causing the error.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 01:13 PM   #12
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
Hurray! now it validates!

can you help me with this one from another epub, now?

WARNING OEBPS/toc.ncx - - meta@dtb:uid content '648c1161-8638-4c6b-99e2-524e09ee80d1' should conform to unique-identifier in content.opf: 'urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1'

toc.nix for that one:
Spoiler:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<head>
<meta content="648c1161-8638-4c6b-99e2-524e09ee80d1" name="dtb:uid"/>
<meta content="1" name="dtb:depth"/>
<meta content="0" name="dtb:totalPageCount"/>
<meta content="0" name="dtb:maxPageNumber"/>
</head>
<docTitle>
<text>Dragons and Dreams</text>
</docTitle>
<navMap>
<navPoint id="navPoint-1" playOrder="1">
<navLabel>
<text>Cover</text>
</navLabel>
<content src="Text/cover.xhtml"/>
</navPoint>
<navPoint id="navPoint-2" playOrder="2">
<navLabel>
<text>Contents</text>
</navLabel>
<content src="Text/contents.xhtml"/>
</navPoint>

<navPoint id="navPoint-3" playOrder="3">
<navLabel>
<text>A Princess for Tea</text>
</navLabel>
<content src="Text/body2.xhtml"/>
</navPoint>
<navPoint id="navPoint-4" playOrder="4">
<navLabel>
<text>The Grumpy Dragon</text>
</navLabel>
<content src="Text/body3.xhtml"/>
</navPoint>
<navPoint id="navPoint-5" playOrder="5">
<navLabel>
<text>Sunflower</text>
</navLabel>
<content src="Text/body4.xhtml"/>
</navPoint>
<navPoint id="navPoint-6" playOrder="6">
<navLabel>
<text>The Third Precious Thing</text>
</navLabel>
<content src="Text/body5.xhtml"/>
</navPoint>
<navPoint id="navPoint-7" playOrder="7">
<navLabel>
<text>The Dark</text>
</navLabel>
<content src="Text/body6.xhtml"/>
</navPoint>
<navPoint id="navPoint-8" playOrder="8">
<navLabel>
<text>Child of Promise</text>
</navLabel>
<content src="Text/body7.xhtml"/>
</navPoint>
<navPoint id="navPoint-9" playOrder="9">
<navLabel>
<text>About the Author</text>
</navLabel>
<content src="Text/body8.xhtml"/>
</navPoint>
</navMap>
</ncx>


content.opf

Spoiler:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">
<dc:date>2013-01-01T00:00:00</dc:date>
<meta content="2013-06-02T12:16:06Z" name="scrivener:timestamp" />
<dc:contributor opf:role="bkp">Scrivener for Windows (1.X.X) [http://www.literatureandlatte.com/scrivenerforwindows/]</dc:contributor>
<dc:title>Dragons and Dreams</dc:title>
<dc:identifier id="PrimaryID">urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1</dc:identifier>
<dc:language>en</dc:language>
<dc:creator opf:role="aut">Becca Price</dc:creator>
<dc:description>“I am three thousand, four hundred and ten years old.” The Dragon told the man. “And for every single night of every single year of those three thousand four hundred and ten years, I've slept on my treasure. It’s how dragons sleep. It’s how dragons have always slept.” And he closed his eyes with a snap. Then he opened one eye cautiously. “What’s a bed?” Brave princesses, grumpy dragons, princes competing for a kingdom, and children seeking answers to age-old questions. These six modern fairy tales include stories for pleasant dreams, and stories for stirring thought. They are just the right length for bedtime reading. Each is a gem that will delight the entire family." Children have always delighted in fairy tales, tales of adventure and challenge in magical lands where dragons live and The Dark is a thing to be feared and explored. From the original Grimm's fairy tales through Andrew Lang's colorful fairy books to modern classics like Robert Munsch's The Paperbag Princess, there will always be a need for, and a place for, fairy tales. Dragons and Dreams continues on in this tradition, with silly, serious, and poetic stories.</dc:description>
<dc:subject>Fairy Tales</dc:subject>
<dcublisher>Wyrm Tale Press</dcublisher>
<dc:rights>All rights reserved</dc:rights>
<meta content="cover-image" name="cover" />
<meta content="0.5.906" name="Sigil version" />
<dc:date opf:event="modification">2013-06-12</dc:date>
</metadata>
<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" />
<item href="Text/cover.xhtml" id="cover" media-type="application/xhtml+xml" />
<item href="Text/contents.xhtml" id="contents" media-type="application/xhtml+xml" />
<item href="Text/body.xhtml" id="body" media-type="application/xhtml+xml" />
<item href="Text/body1.xhtml" id="body1" media-type="application/xhtml+xml" />
<item href="Text/body2.xhtml" id="body2" media-type="application/xhtml+xml" />
<item href="Text/body3.xhtml" id="body3" media-type="application/xhtml+xml" />
<item href="Text/body4.xhtml" id="body4" media-type="application/xhtml+xml" />
<item href="Text/body5.xhtml" id="body5" media-type="application/xhtml+xml" />
<item href="Text/body6.xhtml" id="body6" media-type="application/xhtml+xml" />
<item href="Text/body7.xhtml" id="body7" media-type="application/xhtml+xml" />
<item href="Text/body8.xhtml" id="body8" media-type="application/xhtml+xml" />
<item href="Images/cover.jpg" id="cover-image" media-type="image/jpeg" />
<item href="Styles/stylesheet.css" id="stylesheet000-css" media-type="text/css" />
</manifest>
<spine toc="ncx">
<itemref idref="cover" linear="yes" />
<itemref idref="contents" linear="yes" />
<itemref idref="body" linear="yes" />
<itemref idref="body1" linear="yes" />
<itemref idref="body2" linear="yes" />
<itemref idref="body3" linear="yes" />
<itemref idref="body4" linear="yes" />
<itemref idref="body5" linear="yes" />
<itemref idref="body6" linear="yes" />
<itemref idref="body7" linear="yes" />
<itemref idref="body8" linear="yes" />
</spine>
<guide>
<reference href="Text/cover.xhtml" title="Cover" type="cover" />
<reference href="Text/contents.xhtml" title="Contents" type="toc" />
</guide>
</package>


and how do I avoid this warning in other books where I need to modify the toc.ncx and contents files? I can't go running to you, Jon, every time I want to get a new book out.

Last edited by BeccaPrice; 06-12-2013 at 01:15 PM.
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 01:30 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This is from the the OPF.

<dc:identifier id="PrimaryID">urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1</dc:identifier>

This is from the NCX

<meta content="648c1161-8638-4c6b-99e2-524e09ee80d1" name="dtb:uid"/>

I'll show you how to fix this...

Look at the line from the OPF. Copy all that stuff between >< (urn:uuid:648c1161-8638-4c6b-99e2-524e09ee80d1).

Look at the line from the NCX. Replace all that stuff between "" (648c1161-8638-4c6b-99e2-524e09ee80d1) with the stuff from the OPF (but keep the quotes) and it will be fixed.

You should be able to do that whenever you come up against this sort of error.

I'm hoping this isn't confusing.
JSWolf is online now   Reply With Quote
Old 06-12-2013, 01:35 PM   #14
BeccaPrice
Wizard
BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.BeccaPrice ought to be getting tired of karma fortunes by now.
 
BeccaPrice's Avatar
 
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
qrugh - re-validated, got another warning.

trying to fix this one on my own. Let's see how much trouble I get into now!

btw, I've bookmarked this thread, to remind me of what I need to do when I edit the ncx and contents.opf files

ETA: Ha! I did it. Thanks to your expert advice, Jon, I now know how to handle at least these validation errors.

Last edited by BeccaPrice; 06-12-2013 at 01:50 PM. Reason: eta: Ha! I did it!
BeccaPrice is offline   Reply With Quote
Old 06-12-2013, 02:01 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,893
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
<dc:title>This is a test</dc:title>
<dc:language>en</dc:language>
These go in the header of the OPF.

Happy to help.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating epub returns warning writerkit Conversion 2 03-30-2013 02:35 AM
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! the_m Kobo Reader 4 01-24-2013 10:01 PM
Issues validating EPUB for iPad godsmac Calibre 13 06-26-2011 09:02 PM
ePub books validating in French or English for the iBookStore lavomat Introduce Yourself 8 12-25-2010 08:39 AM


All times are GMT -4. The time now is 05:30 AM.


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