02-01-2013, 10:49 AM | #1 |
Junior Member
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 |
02-01-2013, 10:56 AM | #2 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
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.
|
Advert | |
|
02-01-2013, 08:37 PM | #3 |
Groupie
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
|
02-02-2013, 08:56 AM | #4 |
Junior Member
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! |
02-02-2013, 09:30 AM | #5 | ||
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Last edited by DiapDealer; 02-02-2013 at 09:33 AM. |
||
Advert | |
|
02-02-2013, 11:04 AM | #6 |
Junior Member
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 |
|
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 |