![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
![]()
Hello,
I'm having trouble converting a HTML file into ePUB format for Lulu.com. I've been on the forum a bunch and found the epub-fix command line tool and have been using it on my output. Even still, lulu won't accept it. I've been checking validation with threepress and have been able to fix a few errors by hand, but here are the final few I can't kill: ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/30-days-to-a-more-organized-life.org_split_000.html(2): attribute "lang" not allowed at this point; ignored ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/30-days-to-a-more-organized-life.org_split_001.html(2): attribute "lang" not allowed at this point; ignored Check finished with warnings or errors! If anyone can provide any help, it would be much appreciated. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
remove the file-as and lang attributes from the opf and html files respectively using calibre's tweak epub feature.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Hi kovidgoyal,
First, let me say thanks for making this application and for all the support I see you giving people on the forums. Here's what I'm trying to do: After exploding the files I'm changing these lines in the relevant files: <package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id"> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns ![]() to <package version="2.0" unique-identifier="uuid_id"> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/"> and <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> to <html xmlns="http://www.w3.org/1999/xhtml"> So I'm trying to get rid of the errors lulu is complaning about. Then I run your epub-fix on the file. However, this just leads to more errors than before. ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(2): element "package" not allowed in this context WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(2): OPF file is using OEBPS 1.2 syntax allowing backwards compatibility ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(4): element "creator" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(6): element "language" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): element "title" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(10): element "date" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(11): element "contributor" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(11): attribute "role" not allowed at this point; ignored ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(12): element "identifier" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(12): attribute "scheme" not allowed at this point; ignored WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(15): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(16): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(57): use of OPS media-type 'text/css' in OEBPS 1.2 context; use text/x-oeb1-css instead WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(59): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead Am I missing something obvious? Thanks in advance |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your lulu specific errors i can't help you with you will have to ask lulu about them.
In your original post you said you had three errors. At that point take your epub file put it in calibre and use the twek calibre feature to: 1) edit the opf file, removing whatever file-as attribute it is complaining about 2) edit the two html files to remove the lang attributes do not run anything else on the epub at this point. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Thanks again. I understand that you cannot help me with lulu specific problems.
I've gotten it down to just the one error which says "file-as" but I can't eliminate that last one. I've taken out all references to "file-as" in the file, but I just can't find the error. This is the top bit of my file. Any ideas? No problem if you can't, I appreciate all your help. <?xml version='1.0' encoding='utf-8'?> <package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id"> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns ![]() <dc:creator opf:role="aut">C. G. P. Grey</dc:creator> <meta name="calibre:series_index" content="1"/> <dc:language>en</dc:language> <meta name="calibre:timestamp" content="2010-11-22T19:01:21.259743+00:00"/> <dc:title>30 Days to a More Organized Life</dc:title> <meta name="cover" content="cover_image"/> <dc:date>2010-11-22</dc:date> <dc:contributor opf:role="bkp">calibre (0.7.29) [http://calibre-ebook.com]</dc:contributor> <dc:identifier id="uuid_id" opf:scheme="uuid">80ccb06e-eb84-4731-aea9-40de7c39af08</dc:identifier> </metadata> |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
dont see anything in that OPF file. It's weird that you'd get a file-as error if you have no file-as attributes in the OPF at all.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Well, thank you for your help. At least I now know I'm not missing anything obvious if you don't see it : )
Thanks again. |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I do have a suggestion... give FlightCrew a go. It gives error messages in plainer English and once it says everyone is correct, ePubcheck also says it's fine.
https://www.mobileread.com/forums/sho...ght=flightcrew |
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Thanks JSWolf, I've just run flightcrew and it give this error for line 7:
The "opf:file-as" attribute is not an allowed attribute of the <title> element. Which is the same as above. I been messing around with this part of my epub pasted below. I've bee trying to test it out my removing a line at a time and I either get the same error or a new error saying that whatever I took out is not missing. <?xml version='1.0' encoding='utf-8'?> <package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id"> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns ![]() <meta name="calibre:series_index" content="1"/> <dc:language>en</dc:language> <dc:title>30-days-to-a-more-organized-life.org</dc:title> <meta name="calibre:timestamp" content="2010-11-22T20:40:04.130070+00:00"/> <dc:creator opf:role="aut">Unknown</dc:creator> <meta name="cover" content="cover_image"/> <dc:date>2010-11-22T20:40:04.130091+00:00</dc:date> <dc:contributor opf:role="bkp">calibre (0.7.29) [http://calibre-ebook.com]</dc:contributor> <dc:identifier id="uuid_id" opf:scheme="uuid">6d4b5450-2ff2-4452-823d-6f596ee3f7c3</dc:identifier> </metadata> <manifest> |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is this the same ePub that you posted in the ZIP file? If not, please post the entire ePub so someone can take a look.
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That is the line with the error in the OPF file. This is line 7 in the OPF.
Code:
<dc:title opf:file-as="30-days-to-a-more-organized-life.org">30-days-to-a-more-organized-life.org</dc:title> Here is the same line fixed. Code:
<dc:title>30 Days to a More Organized Life</dc:title> Last edited by JSWolf; 11-22-2010 at 04:02 PM. |
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Hmmmm... now I'm going crazy. When I open the epub file in calibre, it does not have that file-as bit in the title, but when I save it out of calibre, flightdeck still gives me that same error.
I'm not trusting the export -- how do I crack this epub file open and look for myself on a mac? |
![]() |
![]() |
![]() |
#14 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Right click on it in calibre and select tweak epub.
Last edited by DoctorOhh; 11-22-2010 at 04:37 PM. |
![]() |
![]() |
![]() |
#15 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Threepress Valid ePub won't load on Lulu | best3175 | ePub | 9 | 02-19-2011 11:32 AM |
Official Pocket eDGe Details & Specs | borisb | enTourage eDGe | 9 | 01-16-2011 08:47 AM |
Calibre epub output details and Nook | squidward | Calibre | 6 | 11-24-2010 03:21 PM |
Problem converting LRF -> EPUB (Error Details included) | irishtexmex | Calibre | 0 | 08-04-2010 05:08 PM |
Cybook & Sony... Wait! Bizarre details included! | agari | Which one should I buy? | 17 | 08-11-2009 05:40 AM |