View Single Post
Old 05-14-2010, 02:03 PM   #1
crestfalleen
Member
crestfalleen began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2010
Device: iphone
Post Epub Validation Problems

Note: Sorry if this is in the wrong category, just the closest one it seemed to fit.

I recently made an epub in InDesign with their "export for Digital Editions" and it works in Digital Editions with no problems, but when I run it through a validator (epub validator) I get a bunch of errors. I've added it to Calibre and it works fine, I even re-convert it to epub in Calibre and it works fine, but it won't upload to Stanza on my iphone (presumably because it won't validate and there's some error in it there). Can anyone help, tell me if there's some options in export I did or didn't choose or something I need to rewrite in the metadata or xml file or if it's just the way Adobe exports the files. Thanks.



Here are the errors:




1. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
2. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
3. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
4. ERROR: Escape From Hell Book copy.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.com/digitaleditions/enc" not allowed at this point; ignored
5. ERROR: Escape From Hell Book copy.epub/OEBPS/content.opf(2): date value '' is not valid, YYYY[-MM[-DD]] expected
6. Check finished with warnings or errors!


Here's what the XML file looks like:


<encryption xmlns="urnasis:names:tcpendocument:xmlns:conta iner" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:deenc="http://ns.adobe.com/digitaleditions/enc"><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-Bold.otf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-Regular.otf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/Calibri.ttf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData deenc:compression="none"><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/ACaslonPro-BoldItalic.otf"/></enc:CipherData></enc:EncryptedData></encryption>
crestfalleen is offline   Reply With Quote