View Full Version : validating epub fails - how do I correct?


BeccaPrice
06-12-2013, 11:39 AM
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.

JSWolf
06-12-2013, 12:12 PM
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.

BeccaPrice
06-12-2013, 12:29 PM
Here's the content.opf

<?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/" xmlns:opf="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>
<dc:publisher>Wyrm Tales Press</dc:publisher>
<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.

?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>

JSWolf
06-12-2013, 12:52 PM
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.

BeccaPrice
06-12-2013, 01:08 PM
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

<?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

<?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/" xmlns:opf="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>
<dc:publisher>Wyrm Tales Press</dc:publisher>
<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>

JSWolf
06-12-2013, 01:26 PM
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'

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.

ERROR OEBPS/Text/contents.xhtml 13 105 'OEBPS/Misc/page-template.xpgt': referenced resource missing in the package.

The error is in contents.xhtml.

BeccaPrice
06-12-2013, 01:39 PM
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.

JSWolf
06-12-2013, 01:42 PM
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.

BeccaPrice
06-12-2013, 01:52 PM
toc.ncx:

?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
<?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/" xmlns:opf="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>
<dc:publisher>Wyrm Tales Press</dc:publisher>
<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.

JSWolf
06-12-2013, 01:53 PM
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: <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="PrimaryID" version="2.0">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="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>
<dc:publisher>Random House Publishing Group</dc:publisher>
<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: <?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>

JSWolf
06-12-2013, 01:55 PM
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.

BeccaPrice
06-12-2013, 02:13 PM
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:
<?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

<?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/" xmlns:opf="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>
<dc:publisher>Wyrm Tale Press</dc:publisher>
<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.

JSWolf
06-12-2013, 02:30 PM
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.

BeccaPrice
06-12-2013, 02:35 PM
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.

JSWolf
06-12-2013, 03:01 PM
<dc:title>This is a test</dc:title>
<dc:language>en</dc:language>
These go in the header of the OPF.

Happy to help.