Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2017, 01:23 PM   #1
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
[Solved] ePubCheck: nav is not bound

Hi!

I'm facing with the problem.
I made some PHP script to generate ebooks (ePub), and then convert it to Kindle's mobi.
After creating epub (zip) it checks it with ePubCheck. Here's what i got:

Code:
FATAL(RSC-016): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/toc.xhtml(10,33): Fatal Error while parsing file 'The prefix "epub" for attribute "epub:type" associated with an element type "nav" is not bound.'.

ERROR(RSC-005): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/toc.xhtml(-1,-1): Error while parsing file 'The prefix "epub" for attribute "epub:type" associated with an element type "nav" is not bound.'.

FATAL(RSC-016): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/12.xhtml(22,2): Fatal Error while parsing file 'The element type "body" must be terminated by the matching end-tag "</body>".'.

ERROR(RSC-005): ./San_Zamoyski-Testbook-170403162142.epub/OEBPS/12.xhtml(-1,-1): Error while parsing file 'The element type "body" must be terminated by the matching end-tag "</body>".'.
And some according files:

book.opf
Code:
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns:xx="http://saxon.sf.net/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/metadata/dublin_core" 
    unique-identifier="BookId" version="3.0" xmlns="http://www.idpf.org/2007/opf">
			
	<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
		<meta name="generator" content="Zabałaganionemiejsce.pl" />
		<dc:identifier id="BookId">http://xn--zabaaganionemiejsce-8fd.pl/San_Zamoyski-Testbook-170403155631</dc:identifier>
		<dc:title>Testbook</dc:title>
		<dc:language>pl</dc:language>
		<dc:creator>San Zamoyski</dc:creator>
		<dc:publisher>zabałaganionemiejsce.pl</dc:publisher>
		<dc:format>application/ePUB</dc:format>
		<dc:date>2017-04-03</dc:date>
		<dc:rights>
			Niniejsza publikacja została utworzona przy użyciu skryptów dostępnych na zabałaganionemiejsce.pl. Serwis nie odpowiada za przetwarzanie nielegalnych materiałów.
		</dc:rights>
		<meta name="cover" content="cover-image" />
		<meta property="dcterms:modified">2017-04-03T15:56:31Z</meta>
	</metadata>
			    
	<manifest>
		<item href="title.xhtml" id="title" media-type="application/xhtml+xml"/>
		<item id="toc" properties="nav" href="toc.xhtml" media-type="application/xhtml+xml"/>
				<item id="p1" href="1.xhtml" media-type="application/xhtml+xml"/>
		<item id="p2" href="2.xhtml" media-type="application/xhtml+xml"/>
		<item id="p3" href="3.xhtml" media-type="application/xhtml+xml"/>
		<item id="p4" href="4.xhtml" media-type="application/xhtml+xml"/>
		<item id="p5" href="5.xhtml" media-type="application/xhtml+xml"/>
		<item id="p6" href="6.xhtml" media-type="application/xhtml+xml"/>
		<item id="p7" href="7.xhtml" media-type="application/xhtml+xml"/>
		<item id="p8" href="8.xhtml" media-type="application/xhtml+xml"/>
		<item id="p9" href="9.xhtml" media-type="application/xhtml+xml"/>
		<item id="p10" href="10.xhtml" media-type="application/xhtml+xml"/>
		<item id="p11" href="11.xhtml" media-type="application/xhtml+xml"/>
		<item id="p12" href="12.xhtml" media-type="application/xhtml+xml"/>

		<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
		<item id="cover-image" href="cover.png" media-type="image/png" />
		<item id="Style" href="style.css" media-type="text/css" />
		<item id="Heuristica-regular" href="Heuristica-Regular.ttf" media-type="application/vnd.ms-opentype" />
	</manifest>
	
	<spine toc="ncx">
		<itemref idref="title" />
		<itemref idref="toc" />
		
		<itemref idref="p1" />
		<itemref idref="p2" />
		<itemref idref="p3" />
		<itemref idref="p4" />
		<itemref idref="p5" />
		<itemref idref="p6" />
		<itemref idref="p7" />
		<itemref idref="p8" />
		<itemref idref="p9" />
		<itemref idref="p10" />
		<itemref idref="p11" />
		<itemref idref="p12" />
	</spine>
	
	<guide>
		<reference href="title.xhtml" type="text" title="Strona Tytułowa"></reference>
		<reference href="toc.xhtml" type="toc" title="Spis treści"></reference>
	</guide>
</package>
toc.ncx
Code:
<?xml version="1.0" encoding="UTF-8"?>
    <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en" dir="ltr">
		<head>
			<meta name="dtb:uid" content="zabałaganionemiejsce.pl" />
			<meta name="dtb:depth" content="2" />                       
			<meta name="dtb:totalPageCount" content="0" />
			<meta name="dtb:maxPageNumber" content="0" />
		</head>
				
		<docTitle>
			<text>Testbook</text>
		</docTitle>
				
		<docAuthor>
			<text>San Zamoyski</text>
		</docAuthor>
					
		<navMap>
			<navPoint playOrder="1" id="title">
				<navLabel><text>Spis treści</text></navLabel>
				<content src="title.xhtml" />
			</navPoint>
			<navPoint class="toc" playOrder="2" id="toc">
				<navLabel><text>Spis treści</text></navLabel>
				<content src="toc.xhtml" />
			</navPoint>
			
            <navPoint class="chapter" id="p1" playOrder="3">
                <navLabel><text>Notka</text></navLabel>
                <content src="1.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p2" playOrder="4">
                <navLabel><text>Podstawowe fonty:</text></navLabel>
                <content src="2.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p2_1" playOrder="5">
                    <navLabel><text>Italic:</text></navLabel>
                    <content src="2.xhtml#p2_1" />
                </navPoint>
                <navPoint class="chapter" id="p2_2" playOrder="6">
                    <navLabel><text>Bold:</text></navLabel>
                    <content src="2.xhtml#p2_2" />
                </navPoint>
                <navPoint class="chapter" id="p2_3" playOrder="7">
                    <navLabel><text>Bold-Italic</text></navLabel>
                    <content src="2.xhtml#p2_3" />
                </navPoint>
            <navPoint class="chapter" id="p3" playOrder="8">
                <navLabel><text>Wyrównanie</text></navLabel>
                <content src="3.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p3_1" playOrder="9">
                    <navLabel><text>Domyślne (justify):</text></navLabel>
                    <content src="3.xhtml#p3_1" />
                </navPoint>
                <navPoint class="chapter" id="p3_2" playOrder="10">
                    <navLabel><text>Do lewej:</text></navLabel>
                    <content src="3.xhtml#p3_2" />
                </navPoint>
                <navPoint class="chapter" id="p3_3" playOrder="11">
                    <navLabel><text>Do środka:</text></navLabel>
                    <content src="3.xhtml#p3_3" />
                </navPoint>
                <navPoint class="chapter" id="p3_4" playOrder="12">
                    <navLabel><text>Do prawej:</text></navLabel>
                    <content src="3.xhtml#p3_4" />
                </navPoint>
            <navPoint class="chapter" id="p4" playOrder="13">
                <navLabel><text>Ręczny podział na strony</text></navLabel>
                <content src="4.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p5" playOrder="14">
                <navLabel><text>Tabela</text></navLabel>
                <content src="5.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p6" playOrder="15">
                <navLabel><text>Wypunktowania</text></navLabel>
                <content src="6.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p6_1" playOrder="16">
                    <navLabel><text>Kółko:</text></navLabel>
                    <content src="6.xhtml#p6_1" />
                </navPoint>
                <navPoint class="chapter" id="p6_2" playOrder="17">
                    <navLabel><text>Liczbowe:</text></navLabel>
                    <content src="6.xhtml#p6_2" />
                </navPoint>
            <navPoint class="chapter" id="p7" playOrder="18">
                <navLabel><text>Łamanie w podrozdziałach</text></navLabel>
                <content src="7.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p7_1" playOrder="19">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_1" />
                </navPoint>
                <navPoint class="chapter" id="p7_2" playOrder="20">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_2" />
                </navPoint>
                <navPoint class="chapter" id="p7_3" playOrder="21">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_3" />
                </navPoint>
                <navPoint class="chapter" id="p7_4" playOrder="22">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_4" />
                </navPoint>
                <navPoint class="chapter" id="p7_5" playOrder="23">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_5" />
                </navPoint>
                <navPoint class="chapter" id="p7_6" playOrder="24">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_6" />
                </navPoint>
                <navPoint class="chapter" id="p7_7" playOrder="25">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_7" />
                </navPoint>
                <navPoint class="chapter" id="p7_8" playOrder="26">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_8" />
                </navPoint>
                <navPoint class="chapter" id="p7_9" playOrder="27">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_9" />
                </navPoint>
                <navPoint class="chapter" id="p7_10" playOrder="28">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_10" />
                </navPoint>
                <navPoint class="chapter" id="p7_11" playOrder="29">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_11" />
                </navPoint>
                <navPoint class="chapter" id="p7_12" playOrder="30">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_12" />
                </navPoint>
                <navPoint class="chapter" id="p7_13" playOrder="31">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_13" />
                </navPoint>
                <navPoint class="chapter" id="p7_14" playOrder="32">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_14" />
                </navPoint>
                <navPoint class="chapter" id="p7_15" playOrder="33">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_15" />
                </navPoint>
                <navPoint class="chapter" id="p7_16" playOrder="34">
                    <navLabel><text>Podrozdział</text></navLabel>
                    <content src="7.xhtml#p7_16" />
                </navPoint>
            <navPoint class="chapter" id="p8" playOrder="35">
                <navLabel><text>Krzaczki</text></navLabel>
                <content src="8.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p9" playOrder="36">
                <navLabel><text>Testowanie słownika</text></navLabel>
                <content src="9.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p10" playOrder="37">
                <navLabel><text>Break (***)</text></navLabel>
                <content src="10.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="b1" playOrder="38">
                	<navLabel><text></text></navLabel>
                    <content src="10.xhtml#b1" />
                </navPoint>
            <navPoint class="chapter" id="p11" playOrder="39">
                <navLabel><text>Cudzysłowy i automagiczna poprawa</text></navLabel>
                <content src="11.xhtml" />
            </navPoint>
            <navPoint class="chapter" id="p12" playOrder="40">
                <navLabel><text>Obrazek</text></navLabel>
                <content src="12.xhtml" />
            </navPoint>
                <navPoint class="chapter" id="p12_1" playOrder="41">
                    <navLabel><text>Wklejka</text></navLabel>
                    <content src="12.xhtml#p12_1" />
                </navPoint>
		</navMap>
	</ncx>
toc.xhtml
Code:
<!DOCTYPE HTML>
<html lang="pl" xmlns="http://www.w3.org/1999/xhtml"> 
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<link rel="stylesheet" type="text/css" href="style.css" />
		<title>Testbook</title>
	</head>
	<body>
		
		<nav epub:type="toc">
		<h1 class="section">Spis treści</h1>
			<ol>
                <li class="toc-section"><a href="1.xhtml">Notka</a></li>
                <li class="toc-section"><a href="2.xhtml">Podstawowe fonty:</a>
		            <ol>
                        <li class="toc-subsection"><a href="2.xhtml#p2_1">Italic:</a></li>
                        <li class="toc-subsection"><a href="2.xhtml#p2_2">Bold:</a></li>
                        <li class="toc-subsection"><a href="2.xhtml#p2_3">Bold-Italic</a></li>
		            </ol>
	            </li>
                <li class="toc-section"><a href="3.xhtml">Wyrównanie</a>
		            <ol>
                        <li class="toc-subsection"><a href="3.xhtml#p3_1">Domyślne (justify):</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_2">Do lewej:</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_3">Do środka:</a></li>
                        <li class="toc-subsection"><a href="3.xhtml#p3_4">Do prawej:</a></li>
		            </ol>
	            </li>
                <li class="toc-section"><a href="4.xhtml">Ręczny podział na strony</a></li>
                <li class="toc-section"><a href="5.xhtml">Tabela</a></li>
                <li class="toc-section"><a href="6.xhtml">Wypunktowania</a>
		            <ol>
                        <li class="toc-subsection"><a href="6.xhtml#p6_1">Kółko:</a></li>
                        <li class="toc-subsection"><a href="6.xhtml#p6_2">Liczbowe:</a></li>
		            </ol>
	            </li>
                <li class="toc-section"><a href="7.xhtml">Łamanie w podrozdziałach</a>
		            <ol>
                        <li class="toc-subsection"><a href="7.xhtml#p7_1">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_2">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_3">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_4">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_5">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_6">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_7">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_8">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_9">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_10">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_11">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_12">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_13">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_14">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_15">Podrozdział</a></li>
                        <li class="toc-subsection"><a href="7.xhtml#p7_16">Podrozdział</a></li>
		            </ol>
	            </li>
                <li class="toc-section"><a href="8.xhtml">Krzaczki</a></li>
                <li class="toc-section"><a href="9.xhtml">Testowanie słownika</a></li>
                <li class="toc-section"><a href="10.xhtml">Break (***)</a></li>
                <li class="toc-section"><a href="11.xhtml">Cudzysłowy i automagiczna poprawa</a></li>
                <li class="toc-section"><a href="12.xhtml">Obrazek</a>
		            <ol>
                        <li class="toc-subsection"><a href="12.xhtml#p12_1">Wklejka</a></li>
		            </ol>
	            </li>
            </ol>
		</nav>
		
	</body>
</html>
12.xhtml
Code:
<!DOCTYPE HTML>
<html lang="pl" xmlns="http://www.w3.org/1999/xhtml"> 
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<link rel="stylesheet" type="text/css" href="style.css" />
		<title>Testbook</title>
	</head>
	<body>
		
<p class="section">Obrazek</p>
<h1 >*</h1>
<p id="p12_1" class="subsection">Wklejka</p>
<p></p>

*<img src="data:image/jpeg;base64,[image data]" alt="" />
</p>
<p style="page-break-after:always;"></p>
	</body>
</html>
And i can not fix it.
Thanks in advance.

Last edited by San Zamoyski; 04-03-2017 at 02:22 PM.
San Zamoyski is offline   Reply With Quote
Old 04-03-2017, 01:54 PM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
You haven't declared the "epub" namespace. Add the following attribute to the html element in toc.xhtml:

xmlns:epub="http://www.idpf.org/2007/ops"
jhowell is offline   Reply With Quote
Old 04-03-2017, 02:21 PM   #3
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
Many thanks!

I've spent many hours looking for solution...
San Zamoyski is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create the NCX file from the nav? fredih Sigil 4 02-26-2017 10:50 PM
e readeron sat nav lochinvar Alternative Devices 0 08-13-2012 12:28 PM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 09:53 PM


All times are GMT -4. The time now is 11:31 PM.


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