View Single Post
Old 05-30-2019, 09:16 AM   #1
serendipity22
Member
serendipity22 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2018
Device: none
error when validating epub

I am converting an HTML file to epub 2 using Sigil.



I am using Pagina to check if its a valid epub.



It usually works, though with one book I am getting



ERROR NCX-001 /OEBPS/toc.ncx NCX identifier ('a0d8cc05-8c3c-48ce-ba5e-13722fae684f') does not match OPF identifier ('urn:uuid:a0d8cc05-8c3c-48ce-ba5e-13722fae684f').
<?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">



relevant files below (generated by Sigil):



<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">

<head>

<meta name="dtb:uid" content="a0d8cc05-8c3c-48ce-ba5e-13722fae684f"/>

<meta name="dtb:depth" content="1"/>

<meta name="dtb:totalPageCount" content="0"/>

<meta name="dtb:maxPageNumber" content="0"/>

</head>

<docTitle>

<text>t1</text>

</docTitle>

<navMap>

<navPoint id="navPoint-1" playOrder="1">

<navLabel>

<text>Introduction</text>

</navLabel>

<content src="Text/t1.html"/>

</navPoint>

</navMap>

</ncx>



<?xml version="1.0" encoding="UTF-8"?>

<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookID" version="2.0">

<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf">

<dc:title>t1</dc:title>

<dc:creator opf:role="aut">wj</dc:creator>

<dc:language>en</dc:language>

<dc:identifier id="BookID" opf:scheme="UUID">urn:uuid:a0d8cc05-8c3c-48ce-ba5e-13722fae684f</dc:identifier>

<meta name="Sigil version" content="0.3.2"/>

</metadata>

<manifest>

<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>

<item id="t1.html" href="Text/t1.html" media-type="application/xhtml+xml"/>

</manifest>

<spine toc="ncx">

<itemref idref="t1.html"/>

</spine>

</package>



Its got me stumped.
serendipity22 is offline   Reply With Quote