View Full Version : ERROR: ... .png


saytionne
08-30-2010, 08:55 PM
FIX, SEE BELOW

saytionne
08-30-2010, 10:03 PM
I have a new error that I hope someone can help me with? I'm not exactly sure what it means?

"# ERROR: .epub/content.opf(12): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored


# .epub/content.opf(14): date value '2010-09-01 00:00:00-04:00' is not valid, YYYY[-MM[-DD]] expected "

Adjust
08-30-2010, 10:45 PM
You have to add the date in the OPF file:

<metadata>

<dc:language>en</dc:language>
<dc:date>2010</dc:date>

</metadata>



I know there are four lines there but the first and last lines are only to show you where:

pholy
08-30-2010, 11:08 PM
As the error shows you, only the DATE is allowed, at least the year, optionally the month and day. I've made that mistake at least a couple of times.

saytionne
08-31-2010, 09:18 AM
OKAY! I am even closer now guys! The help worked great! So simple.

But, now my error from ThreePress is:

ERROR: SevenShifts.epub: OPF file content.opf is missing


BUT the content.opf IS THERE!!!!!!!!!!!!!!!!!!!!! :(

Jellby
08-31-2010, 09:39 AM
The errors don't match the OPF fragment you have shown. There is no "file-as" and the date looks OK. Unzip the .epub you are trying to validate and check the content.opf file is what you expected...

saytionne
08-31-2010, 10:22 AM
This is what is confusing to me!

I have the file there, I don't know what the "file-as" should be.

I fixed the other issues, rezipped and got the error message.

"# ERROR: .epub/content.opf(12): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored

I'm just not sure why its saying idpf.org/2007/opf is not allowed when on many websites (lulu, etc) I have used the sample structure for the ebook and built from there. I haven't changed anything that was stationary on the opf other than how the date is listed since it was causing an issue.

Could you please specify or refer me to a working opf file? This is just so confusing, since I have the opf file there? And there are NO discrepancies... well, apparently there is.

Toxaris
08-31-2010, 10:51 AM
Can you post your opf file? Or at least the first 20 lines or so?

Jellby
08-31-2010, 11:19 AM
This OPF file works fine, if it helps.

Almiel
08-31-2010, 01:55 PM
# ERROR: .epub/content.opf(12): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored

file-as is an option for the author entry, as in: <dc:creator opf:role="aut" opf:file-as="MacDonald, George">George MacDonald</dc:creator>

That's taken from a book I made. I'm guessing the file-as you have is part of a meta entry where it's not allowed, or is not preceded by "opf:" as mine is above.

saytionne
09-01-2010, 06:03 PM
This OPF file works fine, if it helps.


Hi Jellyby! I am so appreciative for your help! :thumbsup:

I think it may be a 'user malfunction.' I'm beyond frustrated and almost want to give up, what with being so close and not understanding what the issue could be.

Nonetheless, I tried building my content.opf based on yours and received the following message:

ERROR: SevenShifts.epub: OPF file content.opf is missing

The ODD thing is that I have the content.opf inside of the OEBPS folder, so it IS there? :bookworm::smack::(

saytionne
09-01-2010, 06:06 PM
Can you post your opf file? Or at least the first 20 lines or so?


Toxaris, hi! Thanks for replying. :thumbsup:

Here is my opf file...

Everything is fine, except for the metadata area, (I'm guessing).

<?xml version="1.0" encoding="UTF-8"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:title>Book Title</dc:title>
<dc:creator opf:role="aut" opf:file-as="Myles-Smith, Tionne">Tionne Myles-Smith</dc:creator>
<dc:language>en</dc:language>
<dc:date opf:event="modification">2010-09-01</dc:date>
<dc:identifier id="BookId">tmSmith</dc:identifier>
<dc:contributor opf:role="bkp">tmSmith Graphic Design</dc:contributor>
<dc:publisher>Publisher</dc:publisher>
<dc:rights>Public Domain</dc:rights>
<dc:type>Text</dc:type>
<dc:subject>Subject</dc:subject>
<dc:description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</dc:description>
</metadata>


Let me know what I can do, if you see what the issue is? :o

Thanks again Toxaris!

charleski
09-01-2010, 09:28 PM
"# ERROR: .epub/content.opf(12): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored

Here is my opf file...

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:title>Book Title</dc:title>
<dc:creator opf:role="aut" opf:file-as="Myles-Smith, Tionne">Tionne Myles-Smith</dc:creator>
<dc:language>en</dc:language>
<dc:date opf:event="modification">2010-09-01</dc:date>
<dc:identifier id="BookId">tmSmith</dc:identifier>
<dc:contributor opf:role="bkp">tmSmith Graphic Design</dc:contributor>
<dc:publisher>Publisher</dc:publisher>
<dc:rights>Public Domain</dc:rights>
<dc:type>Text</dc:type>
<dc:subject>Subject</dc:subject>
<dc:description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</dc:description>
</metadata>

There's no opf:file-as attribute on line 12.
Exactly what issue are you having?

Toxaris
09-02-2010, 04:34 AM
Don't see anything wrong at the first glance. Hmm, strange. Let me ponder for a while.

Jellby
09-02-2010, 07:33 AM
What is the content of the "META-INF/container.xml" file? That's where the location of the OPF file is stated, it might be that the validator is using a different OPF file from what you think... Also, if you can, post a complete .epub file that shows the problem, you can just remove all copyrighted material from the text files or replace it with "lorem ipsum".

saytionne
10-04-2010, 02:12 PM
SEE BELOW

saytionne
10-04-2010, 02:22 PM
Hey guys! I am so appreciative of all your help! I am much further and figured out the other issues with the content.opf and toc.ncx file.

Now I am at a new phase. I am running into a certain image issue.

After a full page image (coded at required 600x800 size) there is a blank space after each. It doesn't show on Calibre (which I've only used for visual) and it doesn't work on Sigil (which most of it is hard coded, rather than assisted, other than the stylesheet).

After each image in iBooks (iPhone) and even the Kindle reader, show a blank space after the full page image (which is a chapter intro image).

Any suggestions/help? Thank you! :thumbsup:

theducks
10-04-2010, 08:13 PM
Hey guys! I am so appreciative of all your help! I am much further and figured out the other issues with the content.opf and toc.ncx file.

Now I am at a new phase. I am running into a certain image issue.

After a full page image (coded at required 600x800 size) there is a blank space after each. It doesn't show on Calibre (which I've only used for visual) and it doesn't work on Sigil (which most of it is hard coded, rather than assisted, other than the stylesheet).

After each image in iBooks (iPhone) and even the Kindle reader, show a blank space after the full page image (which is a chapter intro image).

Any suggestions/help? Thank you! :thumbsup:

600x800 leaves no room for margins on a single screen:eek:

Your body probably has a margin
your P tag probably has a margin top and bottom.
any other H's or P's have margins