Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2023, 03:41 AM   #1
Stable
Junior Member
Stable began at the beginning.
 
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:
(RSC-005): /index_split_000.html: Error while parsing file: value of attribute "lang" is invalid; must be an RFC 3066 language identifier
(RSC-005): /index_split_000.html: Error while parsing file: value of attribute "xml:lang" is invalid; must be an RFC 3066 language identifier
(RSC-005): /index_split_001.html: Error while parsing file: value of attribute "lang" is invalid; must be an RFC 3066 language identifier
(RSC-005): /index_split_001.html: Error while parsing file: value of attribute "xml:lang" is invalid; must be an RFC 3066 language identifier
But in index_split_000.html (and 001) I have: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

And as far as I can see "en" is a 3066 identifier. Does anyone have any clue what's going wrong?

Thanks in advance.
Stable is offline   Reply With Quote
Old 08-28-2023, 03:54 AM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,105
Karma: 4911876
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?
Karellen is online now   Reply With Quote
Advert
Old 08-28-2023, 05:38 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Stable View Post
And as far as I can see "en" is a 3066 identifier. Does anyone have any clue what's going wrong?
Maybe the tool expects a language code with a region code. Depending on your region, try en-US or en-GB. Or it wants both lang and xml:lang attributes:
<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.
Doitsu is offline   Reply With Quote
Old 08-29-2023, 01:00 AM   #4
Stable
Junior Member
Stable began at the beginning.
 
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!
Stable is offline   Reply With Quote
Old 08-29-2023, 01:42 AM   #5
Stable
Junior Member
Stable began at the beginning.
 
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.
Stable is offline   Reply With Quote
Advert
Old 08-29-2023, 07:40 AM   #6
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Can you post an example html page???
Turtle91 is offline   Reply With Quote
Old 08-29-2023, 09:59 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,655
Karma: 5433388
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?
KevinH is online now   Reply With Quote
Old 08-29-2023, 01:02 PM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Stable View Post
Unfortunately I've tried all the combinations of lang, xml:lang and "en-GB" or just "en" and still get the same errors.
Maybe checking the whole epub with EPUBCheck will display additional warnings and/or errors?
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.)
Doitsu is offline   Reply With Quote
Old 08-29-2023, 03:42 PM   #9
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
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">
OPF file:
Code:
<dc:language id="language">en</dc:language>
Read this web link for help info at I.S.:
IngramSpark Help
azimuth is offline   Reply With Quote
Old 08-29-2023, 10:10 PM   #10
Stable
Junior Member
Stable began at the beginning.
 
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.
Stable is offline   Reply With Quote
Reply

Tags
error, ingramspark, xml


Forum Jump

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


All times are GMT -4. The time now is 06:57 PM.


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