Quote:
Originally Posted by KevinH
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.