View Single Post
Old 09-24-2009, 11:58 PM   #3
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,066
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
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 View Post
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...
pdurrant is offline   Reply With Quote