![]() |
#1 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Validation Error on SVG image No RDF allowed
I created some svg images with Inkscape via bitmap trace, and made sure to save to "plain svg". I added them to my epub, they display fine in Sigil, Calibre, ADE.
Pagina Epubchecker [http://www.pagina-online.de/produkte...checker/#c773] Gives error message for each one. ERROR: filename.epub/OEBPS/Images/h06.svg(16,14): element "rdf:RDF" not allowed anywhere; expected the element end-tag or text The SVG looks like this: Spoiler:
Should I be concerned, and if so, what might be the fix? Thanks for any advice. gG Last edited by GrannyGrump; 03-21-2014 at 12:11 AM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Generally speaking SVG files are not support in ePub 2. SVG is supported inside a HTML document in ePub 2. The entire metadata should be removed and an html wrapper should be added. SVG by itself is supported in epub 3.
Dale |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
I am using the svg referenced in an xhtml file, called the same way as I would call a jpeg or png. The code looks like this:
Code:
<blockquote class="epigram">
<p class="ethiopic"><span class="noade">
መፍትው፡ሕዝበ፡ክርስቲያን፡እለ፡አልቦሙ፡ውሉደ፡ይሕፅንዎሙ፡ለእጓለ፡ማውታ፡ወራዙት፡ወደናግል፡ወይረስይዎሙ፡ከመ፡ውሉዶሙ፡ወፈድፋደ፡ያፍቅርዎሙ።
</span>
<span class="ade">
<img alt="" class="svg6" src="../Images/h02.svg"/></span>
</p>
<div>
<a href="../Text/appendixB.xhtml#epgtr02" id="epg02">[ 2 ]</a>
</div>
</blockquote>
EDIT TO ADD-- DaleDe, it took a few minutes for the penny to drop. I see what you are saying -- the metadata is superfluous for the usage in xhtml. Thank you for your help. Last edited by GrannyGrump; 03-21-2014 at 02:42 AM. Reason: duh! moment |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Apparently, ePubcheck accepts only SVG 1.1 images without RDF metadata, even though ADE/RMSDK displays these files just fine.
However, you can easily fix this by implementing the following changes: 1. Delete xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 2. Change version="1.2" to version="1.1" 3. Delete the <rdf:RDF> ... </rdf:RDF> section The header should look like this: Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="511" height="245" id="svg3021"> <defs id="defs3025" /> <metadata id="metadata7"> </metadata> Last edited by Doitsu; 03-21-2014 at 04:48 AM. |
![]() |
![]() |
![]() |
#5 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Doitsu, thank you so much for the explanation and the detailed instruction.
I despair of ever coming to grips with svg in all its wondrous and wandering ways... |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: Nov 2013
Device: Kobo Touch
|
A tip of the hat to Duitso!
Thanks, Doitsu. #2 wasn't an issue for me and I had surmised that I needed to do #3 but it would have been a while before before I figured out the need to do #1.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inkscape SVG Validation Problems | doubleshuffle | ePub | 2 | 12-20-2013 12:37 AM |
epub validation error -- image not reachable | vootie | ePub | 14 | 03-08-2012 10:34 AM |
ePub validation error: 'element "span" not allowed here' | nannygoats | ePub | 5 | 11-30-2011 08:47 AM |
Image Validation Error | tracyy | Sigil | 2 | 10-23-2011 03:42 AM |
Validation error: svg cover | graycyn | Sigil | 2 | 07-24-2011 07:34 PM |