01-01-2018, 01:15 PM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Error Message Question
When load my HTML into Sigil, I get the following error.
This page contains the following errors: error on line 17 at column 16: Namespace prefix 'mbp' not declared Below is a rendering of the page up to the first error. I am using Notjohn's template and not sure if this is a problem. These are the other 2 errors I get. Error(prcgen):E24010: Hyperlink not resolved in toc (One possible reason can be that the link points to a tag with style display:none):C:\Users\Jim\AppData\Local\Temp\mbp_ 7E1_C_1F_12_34_1D_172_1748_2EC4_1\OEBPS\Text\Secti on0001.xhtml# Error(prcgen):E24001: The table of content could not be built. Thanks for the help. PS I am publishing to Amazon. |
01-01-2018, 01:22 PM | #2 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Epubs need to use xhtml (or html5 for epub3). Mbp: is not valid xhtml (or html5). It sounds like your html contains raw mobi markup to me.
I can't really help with Kindlegen/Previewer errors. I don't use it. |
Advert | |
|
01-01-2018, 02:05 PM | #3 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Ad mbp:
You have two options. 1. Find all <mbp:something> (for example <mbp:pagebreak/>) tags and remove them 2. Add in the appropriate files... Now you probably have such an entry: Code:
<html xmlns="http://www.w3.org/1999/xhtml"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mbp="www.mobipocket.com"> Ad kindlegen. You must check especially the file Section0001.xhtml and specific link from the TOC file. The destination has a style display:none declared. It can be a direct declaration, e.g. PHP Code:
PHP Code:
Code:
.hidden-header {display: none;} |
01-01-2018, 10:52 PM | #4 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Thank you both for the information.I used mbpagebreak for formatting based on Notjohn's blog on posting to Amazon.
I have posted this book before and didn't have a problem, but now I do. Once I create the ePub. is there a reason for me to use Kinder Reader? I will take your advice and apply these changes. Thanks again. Jim |
01-02-2018, 12:09 PM | #5 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
I believe it formats the eBook page breaks.
|
Advert | |
|
01-02-2018, 03:48 PM | #6 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
This fixed one of my problems:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mbp="www.mobipocket.com"> I don't use the <H1> so I will look at the TOC error again. Thanks for the help. |
01-02-2018, 06:24 PM | #7 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Great news!
I now have no errors when I open it with the Kindle viewer. Now I have to figure out why my TOC links are not working. They work in HTML and in Sigil but not with the Kindle viewer. Thanks again all for the help! Jim Last edited by jray9242; 01-02-2018 at 06:28 PM. |
01-02-2018, 07:43 PM | #8 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
HTML: Code:
<p class="pagebreak">* * *</p> Code:
p.pagebreak { page-break-before: always; } Quote:
Side Note: Instead of using something like: Code:
<p class="part">Part 1</p> <p class="chapter">Chapter 1</p> Code:
<h1>Part 1</h1> <h2>Chapter 1</h2> Last edited by Tex2002ans; 01-02-2018 at 08:22 PM. |
|||
01-02-2018, 10:33 PM | #9 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Tex2002ans,
I did get everything working but think creating each chapter in a separate HTML might work better. I will research this so I don't bother you all to much. Thank you all very much for the help and will use CSS for my page breaks from here on out. |
01-03-2018, 12:20 AM | #10 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
That really is the best and most easiest choice. It is the only guaranteed way to work + it helps keep the filesizes of each HTML file small to help older devices (many older ereaders croak if the HTML file becomes larger than ~300 KB). |
|
01-03-2018, 10:21 AM | #11 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Let me ask this one last question.
Do I create each chapter as a standalone HTML complete with CSS and then merge them in Sigil? I have been searching and haven't found any examples yet. Thanks again. |
01-03-2018, 10:57 AM | #12 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
OR put Code:
<hr class="sigil_split_marker" /> I use Search and replace to insert the code when there is a good trap condition. <F6> executes the split (do a save before, is a good practice) |
|
01-03-2018, 12:11 PM | #13 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Instead of having one giant HTML file like this: Code:
<body> <p class="pagebreak">Copyright info</p> <p class="pagebreak">Chapter 1</p> <p>Text in Chapter 1.</p> <p class="pagebreak">Chapter 2</p> <p>Text in Chapter 2.</p> </body> copyright.xhtml: Code:
[...] <body> <p>Copyright info</p> </body> Code:
[...] <body> <h2>Chapter 1</h2> <p>Text in Chapter 1.</p> </body> Code:
[...] <body> <h2>Chapter 2</h2> <p>Text in Chapter 2.</p> </body> if you want to split each file one-by-one. Or you could use the Insert > Split Marker + Edit > Split at Markers method. In the end, your EPUB should look something like this: |
|
01-03-2018, 12:14 PM | #14 |
Member
Posts: 13
Karma: 10
Join Date: Jan 2018
Device: Amazon Fire HD 10
|
Great information and thank you!
Jim |
01-03-2018, 12:14 PM | #15 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Mbp has to do with Mobipocket. Where did the HTML come from that has Mobipocket code in it?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error: Error communicating with device message | techie6 | Devices | 5 | 04-02-2018 09:25 PM |
Calibre Error Message Question | pjmpjm | Library Management | 2 | 03-17-2016 12:45 AM |
KindleGen error message: E1003 Unknown error in class String. | Doitsu | Kindle Formats | 1 | 06-25-2014 12:29 PM |
Error message: "TEMPLATE ERROR Single '}' encountered in format string" | frank14612 | Calibre | 22 | 07-02-2013 11:05 AM |
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac | NewDay | ePub | 3 | 10-07-2010 01:47 PM |