You know - you're completely right. I got this wrong because the IDPF method is to identify the dc:identifier by id, and the one sample I had of the Adobe version also worked like this (but also did the urn:uuid: on the same dc_identifier)
So yes, it's possible for my script to not work if the ePub contains /two/ dc:identifier elements, both with urn:uuid:, and the second linked from the unique id attribute.
And it would also fail if there was no unique id attribute.
I'll fix it and upload a new version.
Thanks!
Quote:
Originally Posted by Jellby
If I read the Adobe document and the OPF spec correctly, the OPF can have several <dc:identifier> elements, at least one must have an id, but having an id is not necessary for all of them. The "encryption" will use the first UUID URN-based identifier, which does not necessarily have an id, and if it has, it does not necessarily match the unique-identifier attribute.
What I'm trying to understand is what requirements are needed for the scheme to work in ADE and what are needed only for your script...
|