08-28-2023, 03:41 AM | #1 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: none
|
xml:lang error for IngramSpark
I'm trying to add an ebook onto IngramSpark using their book creation tool. I made the original epub in Sigil. When I get to the content files validation section I get the following errors:
Quote:
And as far as I can see "en" is a 3066 identifier. Does anyone have any clue what's going wrong? Thanks in advance. |
|
08-28-2023, 03:54 AM | #2 |
Wizard
Posts: 1,339
Karma: 6700866
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It's possible there is another instance of "xml:lang" on the page. It could be in a <span> surrounding foreign words?
|
08-28-2023, 05:38 AM | #3 | |
Grand Sorcerer
Posts: 5,637
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> Last edited by Doitsu; 08-28-2023 at 05:41 AM. |
|
08-29-2023, 01:00 AM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: none
|
That's definitely the only instance, I'll give Doitsu's suggestions a go. Thanks both!
|
08-29-2023, 01:42 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: none
|
Unfortunately I've tried all the combinations of lang, xml:lang and "en-GB" or just "en" and still get the same errors.
|
08-29-2023, 07:40 AM | #6 |
A Hairy Wizard
Posts: 3,215
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Can you post an example html page???
|
08-29-2023, 09:59 AM | #7 |
Sigil Developer
Posts: 8,116
Karma: 5450818
Join Date: Nov 2009
Device: many
|
There are newer 3 letter and 4 letter variants for language names in later specs but as far as I know, no one uses them for well established languages. Something strange is going on? Could you have an invisible character someplace in those attribute values?
|
08-29-2023, 01:02 PM | #8 | |
Grand Sorcerer
Posts: 5,637
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Shameless plug: I created EPUBCheck plugins for Sigil and Calibre. If you don't want to install Calibre or Sigil, there's also a stand-alone checker by a German software developer. pagina EPUB-Checker. (Click the EN tab.) |
|
08-29-2023, 03:42 PM | #9 |
Enthusiast
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
|
Try removing it from the HTML pages, and placing the language identifier info inside the OPF file instead. Though we have had our epub XHTML pages similar as you now have it shown (for past epubs) while our latest epub is set as follows (verified on EpubChecker and live on Kobo).
HTML pages: Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> Code:
<dc:language id="language">en</dc:language> IngramSpark Help |
08-29-2023, 10:10 PM | #10 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2023
Device: none
|
Thanks for the help everyone, it's much appreciated. I found the problem. Unfortunately it lay on my side of the keyboard - I was editing the wrong html file. I may never have noticed without your helpful debugging advice. Still... days wasted to my idiocy.
Anyway, the ebook is completed and passed the checks. Thank goodness. |
Tags |
error, ingramspark, xml |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change wrong xml:lang in multiple files? | LucyOne | Conversion | 17 | 07-29-2021 06:14 AM |
Add xml:lang to ePub | abraum | ePub | 11 | 06-25-2021 06:06 PM |
xml:lang | tage fredheim | Conversion | 5 | 04-25-2019 06:45 AM |
xml:lang oddities | jcsalomon | ePub | 1 | 06-06-2016 05:28 PM |
xml:lang empty (pdf to epub) | fxp33 | Conversion | 3 | 05-07-2015 11:40 PM |