![]() |
#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. |
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 6700678
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?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,634
Karma: 23190435
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. |
|
![]() |
![]() |
![]() |
#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!
|
![]() |
![]() |
![]() |
#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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,151
Karma: 18843349
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???
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
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?
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,634
Karma: 23190435
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.) |
|
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 |
|
![]() |
||||
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 |