Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
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
Old 05-30-2019, 09:45 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Are you really still using Sigil 0.3.2?? This has been fixed in later versions of Sigil (which is currently at 0.9.13, just for the record).

Change the following line in toc.ncx:
Code:
<meta name="dtb:uid" content="a0d8cc05-8c3c-48ce-ba5e-13722fae684f"/>
to:
Code:
<meta name="dtb:uid" content="urn:uuid:a0d8cc05-8c3c-48ce-ba5e-13722fae684f"/>
The content attribute in the ncx must now match, exactly, the unique identifier from the opf (including any prefixes).

Then do it for every book you edit from now on (or upgrade Sigil )
DiapDealer is offline   Reply With Quote
Advert
Old 05-30-2019, 10:07 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
For the record: a change to the Pagina/EpubCheck rules is what caused this error. What Sigil was producing in this regard was perfectly valid for a long, long time. Unfortunately, we can't go back in time and fix all the older versions of Sigil to correct it.

Last edited by DiapDealer; 05-30-2019 at 11:10 AM.
DiapDealer is offline   Reply With Quote
Old 06-01-2019, 09:21 AM   #4
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
If you are downloading Sigil from a third-party site, go instead to https://github.com/Sigil-Ebook/Sigil/releases
Notjohn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating Fixed Layout Epub 3.0 Error no viewport defined ralphiedee ePub 1 12-09-2016 12:15 PM
Errors while validating EPUB crankypants ePub 21 12-05-2015 10:21 PM
Validating Epub Thom* Editor 6 07-08-2015 04:17 AM
Validating epub returns warning writerkit Conversion 2 03-30-2013 02:35 AM


All times are GMT -4. The time now is 10:42 AM.


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