Skip to main content
irama57948095
Inspiring
March 7, 2024
Answered

xml.lang error code

  • March 7, 2024
  • 3 replies
  • 567 views

Hi,

 

I'm getting an xml:lang error code in my epub file. Any ideas how to get rid of it without resorting to the code. I have managed to avoid opening up my epubs and managed to correct in the InDesign. From Google I understand that its a language issue and I've gone through all the style sheets and changed them to the same language. I've also read it could be a word that is the problem. 

 

Anything that helps will be greatly appreciated.

 

Thanks.

This topic has been closed for replies.
Correct answer irama57948095

Just to update this. From further googling it seems its an InDesign 2024 problem so I converted to IDML and opened in InDesign 2022 and exported to epub from that and it cleared the error message. Annoying but at least I didn't have to go into the code.

3 replies

Participant
September 17, 2024

You can solve this by downloading a third party EPUB editor like Calibre, edit book, open "Content.opf" and in the first few lines, usually line 2. Delete the [ xml:lang="en-US" ] and save, Viola! Should solve the issue. Back dating 2024 to 19.2 or older also should help. 19.3 and newer adds this xml and other issues into the mix. I can only assume in reply to ADA Compliancy updates that the eBook vendors have not added to their vetting systems yet.

Known Participant
March 8, 2024

It is a bug in Indesign epub export module. The element xml:lang element is misplaced in content.opf file.

Can be corrected by hand using any epub file editor. I hope Adobe will correct this bug soon.

irama57948095
irama57948095AuthorCorrect answer
Inspiring
March 7, 2024

Just to update this. From further googling it seems its an InDesign 2024 problem so I converted to IDML and opened in InDesign 2022 and exported to epub from that and it cleared the error message. Annoying but at least I didn't have to go into the code.