View Full Version : Epub validation Error

04-19-2011, 08:41 AM
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! :)

04-19-2011, 10:26 AM
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.

06-24-2011, 10:19 AM
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!

<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="" xmlns:opf="" xmlns:dcterms="" xmlns:calibre="" xmlns:dc="">
<dc:creator opf:role="aut" opf:file-as="author">author</dc:creator>
<dc:creator opf:role="aut">authorl</dc:creator>
<meta name="calibre:series_index" content="1"/>
<meta name="calibre:rating" content="10"/>
<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:contributor opf:role="bkp">calibre (0.7.28) []</dc:contributor>
<dc:identifier opf:scheme="ISBN"></dc:identifier>
<dc:identifier id="uuid_id" opf:scheme="uuid">8e4153bb-af45-4260-8c4a-ea80f95a4c2f</dc:identifier>

When I remove the code "opf:file-as" the error still occurs...:blink:

06-25-2011, 01:57 AM
<dc:title opf:file-as="title">title</dc:title>
Delete opf:file-as="title"
Then it will pass. I have tested.