Skip to content

Fix content.opf #2

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

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Fix content.opf #2

merged 1 commit into from
Feb 4, 2025

Conversation

tingstad
Copy link
Contributor

I was unable to open the minimal epub file in Apple Books (2.4) until I made this fix.

$ xmllint OEBPS/content.opf                                                                                            
OEBPS/content.opf:6: namespace error : Namespace prefix opf for role on creator is not defined                         
            <dc:creator opf:role="aut">

Namespace prefix opf is not defined. The namespace, http://www.idpf.org/2007/opf, is already set as the default namespace, so the prefix can simply be removed.

I was unable to open the minimal epub file in Apple Books (2.4) until I made this fix.

```
$ xmllint OEBPS/content.opf                                                                                            
OEBPS/content.opf:6: namespace error : Namespace prefix opf for role on creator is not defined                         
            <dc:creator opf:role="aut">
```

Namespace prefix `opf` is not defined. The namespace, `http://www.idpf.org/2007/opf`, is already set as the default namespace, so the prefix can simply be removed.
@thansen0 thansen0 merged commit 8ea9635 into thansen0:master Feb 4, 2025
@thansen0
Copy link
Owner

thansen0 commented Feb 4, 2025

I'm sorry it took me 3 years to get to this, I must have missed it when the notification first came up. I do appreciate you pointing this out though!

@tingstad tingstad deleted the patch-1 branch February 4, 2025 11:14
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

Successfully merging this pull request may close these issues.

2 participants