Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2013, 10:49 AM   #1
cherubchops
Junior Member
cherubchops began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2013
Device: kindle
Value of "id" is invalid; must be an XML name without colons

Hello,
Wonder if anyone could help me - I'm getting this message with footnote references in the main text... Don't know what to do to solve it?

The epub file was originally created in Pages, exported to word, saved as a docx, and imported into Calibre, then tweaked in Sigil, and they work fine apart from the footnotes? (i know this is a very long-winded way, but since apple upgraded Pages about a month ago, the epubs they produce are absolutely enormous, and I can't roll-back the application, even with time-machine)

Please help (in a simple way as I am not an expert at all!)

Thanks very much
cherubchops is offline   Reply With Quote
Old 02-01-2013, 10:56 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Please post the code in question.
JSWolf is offline   Reply With Quote
Advert
Old 02-01-2013, 08:37 PM   #3
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
i tend to get this error after exporting from word when id tags of images have spaces in them. if you change them from id="image 1" to something like id="image_1" it should work
mzmm is offline   Reply With Quote
Old 02-02-2013, 08:56 AM   #4
cherubchops
Junior Member
cherubchops began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2013
Device: kindle
Hello,
Sorry, here's the code and error message. It's definitely to do with footnotes in the text.

ERROR: /OEPS/Text/001_split_053.html(1939): value of attribute "id" is invalid; must be an XML name without colons
ERROR: /OEPS/Text/001_split_053.html(1945): value of attribute "id" is invalid; must be an XML name without colons

Line 1939:
<p class="body">5th Division.: Warren.<sup class="calibre17"><a href="../Text/ft_001.html" id="1">{1}</a></sup></p>

Line 1945:
<p class="body">10th Division:<sup class="calibre17"><a href="../Text/ft_002.html" id="2">{2}</a></sup> Sir A. Hunter.</p>


Here's the footnote code bit (but there;s no error listed here, but just in case):

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="DOCX Input by SauliusP., v0.0.22" name="Generator" />

<title>ft_001</title>
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css" />
</head>

<body class="calibre">
<p class="calibre18"><sup class="calibre17"><a href="../Text/001_split_053.html#1">{1}</a></sup></p>

<p class="footnotetext">Relieved on account of his failure at Spion Kop, and sent to the western theatre on duty other than that at the front. Hildyard placed in command May 1st.</p>
</body>
</html>


and the second footnote code bit:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="DOCX Input by SauliusP., v0.0.22" name="Generator" />

<title>ft_002</title>
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css" />
</head>

<body class="calibre">
<p class="calibre18"><sup class="calibre17"><a href="../Text/001_split_053.html#2">{2}</a></sup></p>

<p class="footnotetext">Early in April Hart's Brigade was transferred to the western theatre to join Brabant. Barton's followed and was sent to Kimberley.</p>
</body>
</html>



If you can help, would be very grateful!
cherubchops is offline   Reply With Quote
Old 02-02-2013, 09:30 AM   #5
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
<p class="body">5th Division.: Warren.<sup class="calibre17"><a href="../Text/ft_001.html" id="1">{1}</a></sup></p>
IDs can't start with (hence nor can they consist entirely of) a number. You'll have to change the IDs and the corresponding url fragment identifiers to something other than just digits.

Quote:
<p class="calibre18"><sup class="calibre17"><a href="../Text/001_split_053.html#1">{1}</a></sup></p>

Last edited by DiapDealer; 02-02-2013 at 09:33 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 02-02-2013, 11:04 AM   #6
cherubchops
Junior Member
cherubchops began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2013
Device: kindle
Brilliant!! You've fixed it. I added fn before the numbers and it's passed for epub. Thank you I am very very grateful. I now won't have to go scratching around putting loads of footnotes in the text (which looks a bit rubbish)

https://www2.mobileread.com/i/smiliesadd1/thumbsup.gif
cherubchops is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"invalid start byte" when trying to open a azw3 file with calibre berlineirn06 Conversion 4 12-26-2012 01:44 PM
Problems with news and the Sony PRS-T1 "Invalid Page" error MRi Calibre 8 11-13-2011 07:39 AM
PRS+ "Invalid Type" error - Sony 505 vans Sony Reader Dev Corner 19 08-05-2011 03:05 PM
PRS-600 "Internal content invalid. Formatting" 600 crash (is it dead ?) zelda_pinwheel Sony Reader 93 02-18-2010 05:27 PM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 05:18 PM.


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