Quote:
Originally Posted by Bozzka
Add The Missing OPF XML: Lang Attribute
The Language Must Be Specfied (XML: Lang in OPF Package)
|
This looks like a
DAISY ACE warning not an
EPUBCheck error:
Add the following attribute to the package tag in your .opf file, if the main language is US English:
Code:
<package version="3.0" unique-identifier="BookId"
prefix="rendition: http://www.idpf.org/vocab/rendition/#"
xml:lang="en-US" xmlns="http://www.idpf.org/2007/opf">
Obviously, the language code should match the main language code defined via:
Code:
<dc:language>en-US</dc:language>
@KevinH To reproduce this issue, please
install the latest version of Daisy ACE and my
ACE validator plugin.
Then download and open
this simple epub3 test file, remove the package xml:lang attribute and run the ACE validator plugin.
This'll produce the following
"serious" ACE warning:
- The language must be specified (xml:lang in OPF package)
- Ensures the OPF XML language is provided
- Add the missing OPF xml:lang attribute
Here's the corresponding
DAISY ACE KB entry.
I'm pretty sure that this is a recent change, because, IIRC, previous ACE versions didn't complain about missing package xml:lang attributes.
You
might want to consider updating your ePub3-itizer and Access-Aide plugins.