-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPF : Undeclared prefix: 'a11y' #810
Comments
Hi, what exactly is the error message? Did you declare the |
This is one of the needed updates for EPUB 3.1. It shouldn't have to be declared, although it's generally good practice to declare the prefixes. As this is for a compact URI, the declaration needs to be done with the epub:prefix attribute:
|
Thanks Matt, I'm adding the |
@garconvacher EpubCheck currently does not support EPUB 3.1 as we unfortunately have a severe shortage of development capacity. EPUB 3.1 support will take some time... Stay tuned... |
Hi, |
Actually the prefix is defined in the EPUB Publications Reserved Prefixes document, which is a "living document". The "a11y" prefix was added while the WG worked on EPUB 3.1, but by being added there it should retroactively be allowed and pre-declared in EPUB 3.0.1 too (@mattgarrish correct me if I'm wrong). The explicit prefix declaration suggested by Matt is a good workaround until the prefix is properly recognized by EpubCheck. |
Correct, it's not exclusive to 3.1. It's just one of the new things that we added during that revision that haven't yet been added to epubcheck. |
I think that addition of reserved prefixes is a mistake in EPUB 3.0.1. In Extending and Versioning Languages: Terminology, there is a definition of forwards compatibility.
I heard that Apple does not support the added prefixes. I guess that they do not like this non-forwards compatible change. |
Apple not accepting them because they use of an older version of epubcheck is not the same as their not being forwards compatible. The specification requires that reading systems ignore unknown prefixes, so unless the reading system is non-conforming, actual lack of awareness isn't a problem. But didn't we state somewhere in 3.1 that the addition of reserved prefixes is a convenience that should not be relied upon? I clearly remember @iherman pointed out this from the RDFa primer:
Or was it something we talked about doing but never formalized? If not, it should go in 3.2. |
I do not exactly know why Apple does not support added prefixes, but I know that they rejected the request from a Japanese publisher Kadokawa.
Agreed. |
I could be wrong, but the a11y prefix was only added in one of the 4.x epubcheck releases and it's a common complaint that vendors don't upgrade quickly as it's not a trivial change. I couldn't find a note to prefix for compatibility reasons, so all in favour of rectifying that. I was sure we did this, as it's such a clear memory, but I can't even find an issue for it. |
- recognize `a11y` as a reserved prefix - define meta and link rel voabularies for Accessibility properties - add tests Fixes #810
- recognize `a11y` as a reserved prefix - define meta and link rel voabularies for Accessibility properties - add tests Fixes #810
@rdeltour, @mattgarrish, what about reading systems? Epubcheck might know the Also, does that mean that there will be a
i.e. two differently scoped |
I don't believe so. Typically if a reading system actually supports metadata with pre-declared prefixes in some fashion, it will recognize the properties without the mapping (since that's what the spec requires). Not having a mapping is otherwise harmless, as prefixed property names aren't validated as xml.
No, only "prefix" is valid in the package document. epub:prefix is the same attribute but for use in HTML documents. I wrote the wrong one above. |
Just a heads-up for future visitors of this issue. As of today and even though an EPUB validates without errors or warnings using the latest drop of Those supposedly “undeclared prefixes” are reserved prefixes as per EPUB specification (link) and the spec says:
The spec goes on to say
and that’s exactly what I had to do in order to get past Ingram’s checks using the same IRI values as the spec prescribes 🤦🏻♂️ <package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="en" unique-identifier="bookalope-bc9f86f9-7b32-494d-8809-cf7b07915d09" prefix="ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/ schema: http://schema.org/ a11y: http://www.idpf.org/epub/vocab/package/a11y/#"> Ah well. |
Hi,
the metadata 'a11y' prefix in OPF occurs an error.
e.g.
<meta property="a11y:certifiedBy">
from EPUB Accessibility VocabularyThe text was updated successfully, but these errors were encountered: