Skip to content
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

“Namespace prefix epub for type on a is not defined” #47

Closed
actuallymentor opened this issue Mar 6, 2018 · 1 comment
Closed

“Namespace prefix epub for type on a is not defined” #47

actuallymentor opened this issue Mar 6, 2018 · 1 comment

Comments

@actuallymentor
Copy link
Contributor

Hello,

I am trying to use the EPUB3 provision for footnote popups by adding epub:type="noteref" to my footnote declarations.

In ibooks this results in the error in the title (screenshot attached).

I can see in your lib that you declare xmlns:epub=”http://www.idpf.org/2007/ops” which should make iBooks respect the epub namespace. I've inspected the epub itself and found the markup to indeed include xmlns:epub=http://www.idpf.org/2007/ops.

I did notice that http://www.idpf.org/2007/ops gives a 404. If this is an issue the link in your code should be update to whatever is the current live link.

I am using version 0.0.17 with { version: 3 }.

If you have any idea how to debug this it would be most welcome.

@pedrosanta
Copy link
Collaborator

Hi @actuallymentor, just merged #67 that will allow to properly user those attributes.

Just checked out and that http://www.idpf.org/2007/ops is indeed the correct URI for the spec and that it doesn't need to explicitly resolve to a page, it's just an identifier – which for me also sounds dumb, but, W3C XML computers overall weirdness I guess. 🤷‍♂️

zbrongyaozb pushed a commit to zbrongyaozb/epub-gen that referenced this issue Aug 2, 2022
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants