Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-19-2011, 07:41 AM   #1
fiona86
Member
fiona86 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
Epub validation Error

Hi everyone, I'm having some trouble fixing one last error in my epub files. The error note says: content.opf(19): attribute "opf:file-as" not allowed here; expected attribute "id" or "xml:lang"

Any ideas on how to fix this?

Thanks in advance!
fiona86 is offline   Reply With Quote
Old 04-19-2011, 09:26 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,197
Karma: 4800739
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
In the file "content.opf", line 19, there is an element with "opf:file-as", which is not allowed. Only "id" and "xml:lang" are allowed there.

We'd have to see the "content.opf" file to see exactly what's the problem and how to fix it.
Jellby is offline   Reply With Quote
 
Enthusiast
Old 06-24-2011, 09:19 AM   #3
fiona86
Member
fiona86 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2011
Device: none
Hi thanks for the reply. I'm still running into this problem I've included some of the content.opf file below, if anyone has suggestions of how this error can be solved I'd be so grateful!

Code:
<?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:opf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:creator opf:role="aut" opf:file-as="author">author</dc:creator>
<dc:creator opf:role="aut">authorl</dc:creator>
<dc:publisher>Publishers</dc:publisher>
    <meta name="calibre:series_index" content="1"/>
    <meta name="calibre:rating" content="10"/>
    <dc:description></dc:description>
    <dc:language>en</dc:language>
    <meta name="calibre:timestamp" content="2011-06-23T11:44:51.909390+00:00"/>
    <dc:title opf:file-as="title">title</dc:title>
    <meta name="cover" content="cover"/>
    <dc:date>2011-06-22T23:00:00+00:00</dc:date>
    <dc:contributor opf:role="bkp">calibre (0.7.28) [http://calibre-ebook.com]</dc:contributor>
    <dc:identifier opf:scheme="ISBN"></dc:identifier>
    <dc:identifier id="uuid_id" opf:scheme="uuid">8e4153bb-af45-4260-8c4a-ea80f95a4c2f</dc:identifier>
    <dc:subject>Thailand</dc:subject>
When I remove the code "opf:file-as" the error still occurs...
fiona86 is offline   Reply With Quote
Old 06-25-2011, 12:57 AM   #4
eping
ePub Maker
eping began at the beginning.
 
eping's Avatar
 
Posts: 120
Karma: 16
Join Date: Dec 2009
Location: Mordor
Device: iPad,Kindle 3, Nook 2
<dc:title opf:file-as="title">title</dc:title>
Delete opf:file-as="title"
Then it will pass. I have tested.
eping is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub validation error drwinn Workshop 17 03-22-2011 05:10 PM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
Epub Validation Error? LadyDae ePub 6 10-29-2010 07:20 PM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 10:53 PM
ePub Validation Error mrbillb ePub 6 09-28-2010 02:14 PM


All times are GMT -4. The time now is 12:47 AM.


MobileRead.com is a privately owned, operated and funded community.