Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.