View Single Post
Old 12-23-2021, 12:18 AM   #7
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by KevinH View Post
Make the opf namespace the default (no prefix needed) otherwise the package tag (and all its child tags) would need the opf: prefix.

change it to:

xmlns="http://www.idpf.org/2007/opf"

So I tried this:

Code:
<package unique-identifier="BookId" version="2.0" xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <metadata>
    <dc:identifier id="BookId" scheme="ISBN">9781234567890</dc:identifier>
That gives an error on the BookId line:

ERROR(RSC-005): Error while parsing file 'attribute "scheme" not allowed here; expected attribute "ns1:scheme" or "ns2:type" (with xmlns:ns1="http://www.idpf.org/2007/opf" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance")'.


I tried to add opf:
<dc:identifier id="BookId" opf:scheme="ISBN">
But as soon as I did a save, the opf: disappeared, so same error.

So I reverted.
AlanHK is offline   Reply With Quote