error rsc-005 has me stumped

33 posts / 0 new
Last post

working through completion of a illustrated epub. This error has occurred on all of the svg images included in epub3 publication. I can't understand what the error means.

ERROR RSC-005 /OEBPS/image/bee_icon_InCircle.svg
(line 1, col 157) Error while parsing file 'element "style" missing required attribute "type"'.

here is line 1 of the svg file:

<svg id="Layer_3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144"><title>icon of a bee</title><desc>the voice of the bee is symbolized by the icon</desc><style>.st0{fill:#00D024;} .st1{fill:#999999;} .st2{fill:#F1CC00;} .st3{opacity:0.6;fill:#FFFFFF;stroke:#998675;stroke-width:1.2;stroke-miterlimit:10;} .st4{fill:#FFDF05;} .st5{fill:#00022B;} .st6{fill:#534741;} .st7{fill:#736357;} .st8{fill:#FFFFFF;} .st9{opacity:0.6;fill:#FFFFFF;stroke:#998675;stroke-width:1.5;stroke-miterlimit:10;}</style>

I've combed all of the net to try to figure out what the EPUBcheck requires here but can't find anything. I'm developing illustration in Illustrator, saving as svg and optimizing using an online tool.

Any guesses, anyone?
thanks in advance

I find it annoyingly hard to understand attributes the SVG specification, but it seems to be the case that a type attribute is required on the element.

The prose never comes out and says that it's required, but if you look at the DTD definition it indicates it is and that the other attributes are implied:

<!ATTLIST %SVG.style.qname;
    xml:space ( preserve ) #FIXED 'preserve'
    %SVG.id.attrib;
    %SVG.base.attrib;
    %SVG.lang.attrib;
    %SVG.Core.extra.attrib;
    type %ContentType.datatype; #REQUIRED
    media %MediaDesc.datatype; #IMPLIED
    title %Text.datatype; #IMPLIED
>

I initially would have read it as a bug between specification and DTD conformance, especially since the prose talks about fallbacks when absent, but maybe that's just error handling or how to treat the attribute if it's empty?

I hate specifications that don't state upfront whether elements and attributes are required or not, though, so maybe it is a bug.

At any rate, you need to add a type attribute to make epubcheck happy, and maybe see if the optimizer is stripping it.

Thanks Matt:
My solution is as follows:

<svg id="Layer_3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144">
<title>icon of a bee</title><desc>the voice of the bee is symbolized by the icon</desc><style type="text/css">.st0{fill:#00D024;} .st1{fill:#999999;} .st2{fill:#F1CC00;} .st3{opacity:0.6;fill:#FFFFFF;stroke:#998675;stroke-width:1.2;stroke-miterlimit:10;} .st4{fill:#FFDF05;} .st5{fill:#00022B;} .st6{fill:#534741;} .st7{fill:#736357;} .st8{fill:#FFFFFF;} .st9{opacity:0.6;fill:#FFFFFF;stroke:#998675;stroke-width:1.5;stroke-miterlimit:10;}</style>

essentially, I have added type="text/css" onto <style> tag
I don't understand why this is a requirement... but it has eliminated the error.

svg in EPUB3 is still a learning curve.

It looks like it is an error in the DTD. I found this thread the SVG mailing list:

https://lists.w3.org/Archives/Public/www-svg/2005Jan/0096.html

I'll open an issue in epubcheck to loosen the requirement, but it won't help you in the near term.

The SVG problem seems to result from a backwards incompatible change in the second edition of SVG 1.1. (Unfortunately it has no own version number, therefore all incompatible changes result in ambiguous situations, there are a few more of these problematic changes resulting in undefined issues).

In 1.0 and the first edition of 1.1 the contentStyleType attribute of the root element was only responsible for style attributes (to be avoided anyway in good documents), not for style elements.
Therefore obviously it is relevant and important to require the styling language used in the style element.

The second edition however seems to assume, that contentStyleType applies for any styling in the document with no type explicitly given.

Typically in SVG documents I try to use the presentation attributes instead of properties.
If I provide different alternative styles for one SVG document, I prefer to use external stylesheet documents as for XHTML as well.

Due to the inconsistency in the different versions of SVG recommendations it is always a good idea to set the type attribute, if the style element is used.
In the few other cases as well is is a good idea to avoid the problematic issues with clear notation to avoid undefined fragments in documents.

ciprofloxacin ptgazebo cipro <a href=http://cipro.antibioticonph.com>buy ciprofloxacin online</a> ciprofloxacin used treat tooth infectionscipro hc clinical trialsciprofloxacin side effects tinnitus
dog on ciprocipro registration companiesciprofloxacin rx 709 <a href=http://cipro.antibioticonph.com>cipro price</a> cipro is a dangerous druglithium and ciprofloxacinstrep throat treatment ciprofloxacin
<a href=http://soc-human.kz/index.php?option=com_k2&view=itemlist&task=user&id=2... overdose amoxicillin</a>

amoxicillin posologyamoxicillin pregnancy birth defectsstrep throat medication amoxicillin <a href=http://amoxil.antibioticonph.com>generic amoxil</a> amoxicillin baby smell
azithromycin ok when breastfeedingcan take azithromycin phenylephrine <a href=http://zithromax.antibioticonph.com>buy azithromycin</a> azithromycin linked to sudden deathazithromycin use in std
<a href=http://colab.di.ionio.gr/index.php?option=com_k2&view=itemlist&task=user... cialis in mexico</a>

cialis ou viagra levitrawhat is levitra like <a href=http://levitraonly.com>buy levitra online</a> comparacion sildenafil vardenafillevitra potency
cialis buy in mexicocialis г© para mulherescialis fa effetto sulle donne <a href=http://cialisonln.com>cialis canada</a> qual melhor viagra cialis levitraacquistare cialis milano
<a href=http://lebanonembassy.org.ua/index.php?option=com_k2&view=itemlist&task=... azithromycin useful</a>

chemical synthesis of azithromycinazithromycin kills std п»ї<a href=http://zithromax.antibioticonph.com>where can i find azithromycin</a> azithromycin nipple dischargeazithromycin chlamydia drinking alcoholazithromycin drug interactions with alcohol
free viagra impotenceviagra hotline fake adviagra on flowers <a href=http://viagraonln.com>http://viagraonln.com</a> sildenafil powerpoint presentationfree viagra ukmedicina china viagra
<a href=http://hmcmedia.vn/index.php?option=com_k2&view=itemlist&task=user&id=10... e20 erfahrung</a>

amoxicillin making me nauseousamoxicillin bredspektret <a href=http://amoxil.antibioticonph.com>where can you get amoxicillin</a> swollen face amoxicillinlincomycin amoxicillin
daily cialis problems <a href=http://cialisonln.com>cialis daily</a> tadalafil generic namescialis switch platewie ist cialis einzunehmen
<a href=http://perusdajepara.com/index.php?option=com_k2&view=itemlist&task=user... migraine headaches</a>

o pastila viagra [url=http://viagraonln.com]buy viagra online[/url] intialainen viagraonline viagra forumsdonde puedo comprar viagra generico
levitra nas--l bir ila+зlevitra bayer glaxosmithklinelevitra tricare [url=http://levitraonly.com]levitra cost[/url] duracion del efecto del vardenafil
[url=http://www.enoavia.es/index.php?option=com_k2&view=itemlist&task=user&id... cialis aiuta l'eiaculazione precoce</h2><br />[/url]

zithromax and amoxicillin interactionamoxicillin dosage table <a href=http://amoxil.antibioticonph.com>buy amoxil online</a> doxycycline amoxicillin and ceftin
acheter cialis quebec <a href=http://cialisonln.com>where to buy tadalafil</a> desventajas de tomar cialistadalafil sin receta medicaefectos secundarios pastilla cialis
<a href=http://www.themoneyworkshop.com/index.php/component/users/?option=com_k2... way buy cialis</a>

levitra generico spedizione velocevardenafil in pulmonary hypertensionlevitra interaction simvastatin <a href=http://levitraonly.com>http://levitraonly.com</a> posologia do levitralevitra bayer corporationcanadian pharmacy generic levitra
can take azithromycin flucan azithromycin cure stdszithromax dosage pediatric pneumonia <a href=http://zithromax.antibioticonph.com>buy azithromycin</a> what does zithromax taste likeazithromycin dosage mg chlamydia
<a href=http://www.sireofforfoundation.org/index.php/component/users/?option=com... is zithromax for cats</a>

levitra vs cialis side effects <a href=http://levitraonly.com>levitra cost</a> effetti di levitralevitra adelaide
viagra skateboard wheels <a href=http://viagraonln.com>http://viagraonln.com</a> uwaterloo.ca viagra
<a href=http://extensions.bowthemes.com/index.php?option=com_k2&view=itemlist&ta... viagra hyderabad</a>

new viagra commercial song п»ї<a href=http://viagraonln.com>buy viagra</a> safe take viagra age 18viagra as aphrodisiacviagra fencing
ciprofloxacin for soft tissue infectionscipro trademark registercipro eye children <a href=http://cipro.antibioticonph.com>buy cipro</a> cipro irlanda highlights
<a href=http://idlube.com.co/index.php?option=com_k2&view=itemlist&task=user&id=... generico viagra</h2><br /></a>

din number for cialisgyгіgyszerгўrak cialis <a href=http://cialisonln.com>buy cialis online</a> cialis aifacialis with priligy
taking amoxicillin no reason <a href=http://amoxil.antibioticonph.com>order amoxicillin online</a> amoxicillin dental extraction
<a href=http://versiassociates.co.uk/index.php?option=com_k2&view=itemlist&task=... du cialis au canada</a>

not take while amoxicillinamoxicillin metabolism interactions <a href=http://amoxil.antibioticonph.com>buy amoxil</a> amoxil antibiotic side effects infantsamoxicillin dosage for animals
doxycycline combination metronidazoledoxycycline std treatment <a href=http://doxycycline.antibioticonph.com>order doxycycline</a> doxycycline bestdoxycycline low plateletsdoxycycline horse s
<a href=http://tandtdecorators.com/index.php?option=com_k2&view=itemlist&task=us... super p-force</a>

doxycycline hydrochloride tablets what for <a href=http://doxycycline.antibioticonph.com>order doxycycline online</a> antibiotics online doxycyclinekeflex or doxycyclinedoxycycline sandoz
doxycycline diphtheroidsdoxycycline type of drug <a href=http://doxycycline.antibioticonph.com>buy doxycycline</a> can take doxycycline coffee
<a href=http://www.gestoflores.com/index.php?option=com_k2&view=itemlist&task=us... preise schweiz</a>

amoxicillin administered orallyamoxicillin or z pak <a href=http://amoxil.antibioticonph.com>http://amoxil.antibioticonph.com</a> maculopapular rash amoxicillinamoxicillin dose urinary tract infection
azithromycin cyproheptadine <a href=http://zithromax.antibioticonph.com>where can i get zithromax</a> does zithromax work on bronchitisazithromycin nejm 2011azithromycin delay
<a href=http://bankmitraniaga.co.id/index.php?option=com_k2&view=itemlist&task=u... safe heart patients</h2><br /></a>

will amoxicillin affect cerazetteamoxicillin capsules during pregnancy safe <a href=http://amoxil.antibioticonph.com>order amoxicillin online</a> baby taking amoxicillin has diarrhea
brand cialis cheap <a href=http://cialisonln.com>cialis generic</a> tadalafil citrate buy
<a href=http://reports-science.kz/index.php?option=com_k2&view=itemlist&task=use... 20 mg coupon</a>

ciprofloxacin breastfeedingprice cipro ear drops <a href=http://cipro.antibioticonph.com>ciprofloxacin price</a> rhabdomyolysis ciprofloxacin
photos of amoxicillin rash <a href=http://amoxil.antibioticonph.com>amoxicillin price</a> child throws up after amoxicillinamoxicillin fruit juice
<a href=http://linhkienxe.vn/index.php?option=com_k2&view=itemlist&task=user&id=... left out of refrigerator</a>

cialis 20mg australia sydney <a href=http://cialisonln.com>where to buy cialis online</a> shape of cialis pillpde5 cialishow cialis works
el ciprofloxacin contiene penicilinaciprofloxacin and tb <a href=http://cipro.antibioticonph.com>generic cipro</a> ciprofloxacin cilastatin
<a href=http://www.domosrub.ru/index.php?option=com_k2&view=itemlist&task=user&i... getting you high</a>

natural viagra dubai spice souk <a href=http://viagraonln.com>buy viagra online</a> maxman vs viagra
accro viagraforum viagra soft tabsviagra cialis einnehmen <a href=http://viagraonln.com>buy viagra</a> do doctors give viagra samplesviagra п‡п‰пѓо№п‚ пѓп…оѕп„о±оіо·
<a href=http://www.domosrub.ru/index.php?option=com_k2&view=itemlist&task=user&i... treat ear infections</a>

can babies have tylenol amoxicillin [url=http://amoxil.antibioticonph.com]buy amoxicillin online[/url] amoxicillin making me vomit
ciprofloxacin damla [url=http://cipro.antibioticonph.com]buy cipro online[/url] cipro pain pillciprofloxacin zyfloxdiverticulitis and cipro
[url=http://www.skyfon-varna.eu/index.php/component/users/?option=com_k2&view... trimox amoxil[/url]

buy azithromycin onlinezithromax suspension administrationazithromycin san ftbl 500mg <a href=http://zithromax.antibioticonph.com>http://zithromax.antibioticonph.com</a> azithromycin neisseria
cialis lithium interactioncomments on cialisviagra and cialis ads <a href=http://cialisonln.com>generic tadalafil 20mg</a> cialis z egiptu
<a href=http://versiassociates.co.uk/index.php?option=com_k2&view=itemlist&task=... online with no prescription</a>

ciprofloxacin moleculeciprofloxacin hcl zantac <a href=http://cipro.antibioticonph.com>buy cipro online</a> ciprofloxacin tablet msdsciprofloxacin ophthalmic solution pediatric
sinus infection not responding azithromycinazithromycin site of actionwhat can zithromax treat <a href=http://zithromax.antibioticonph.com>buy zithromax</a> zithromax side effect back pain
<a href=http://www.thinktotal.com.au/index.php?option=com_k2&view=itemlist&task=... viagra levitra cialis alcohol</h2><br /></a>

doxycycline testical pain <a href=http://doxycycline.antibioticonph.com>buy doxycycline online</a> gia thuoc doxycyclinesigma doxycycline hydrochloridedoxycycline eyes
doxycycline dosage stidoxycycline tablets take <a href=http://doxycycline.antibioticonph.com>buy doxycycline online</a> vibrox capsules doxycycline used
<a href=http://gestoflores.com/index.php?option=com_k2&view=itemlist&task=user&i... amoxicillin taken alcohol</h2><br /></a>

prix pilule de viagra <a href=http://viagraonln.com>generic viagra</a> viagra kostenlos kaufen
can tan while taking amoxicillin <a href=http://amoxil.antibioticonph.com>order amoxil online</a> cough syrup and amoxicillin
<a href=https://hongduchaus.com.vn/index.php?option=com_k2&view=itemlist&task=us... cialis with prescription</a>

food eat while ciprociprofloxacin hydrochloride and dexamethasone <a href=http://cipro.antibioticonph.com>generic ciprofloxacin 500mg</a> cipro ophthalmic ointmentciprofloxacin urine discolorationciprofloxacin diarrhГ©e du voyageur
recommended dosage amoxicillin toothacheamoxicillin side effects on toddlersamoxicillin bestellen <a href=http://amoxil.antibioticonph.com>where can you get amoxicillin</a> amoxicillin esi
<a href=http://enoavia.es/index.php?option=com_k2&view=itemlist&task=user&id=301... cialis vez semana</h2><br /></a>

price of doxycycline malariacan take zantac doxycyclineimplanon and doxycycline <a href=http://doxycycline.antibioticonph.com>http://doxycycline.antibioticonph.... doxycycline drug fevercan doxycycline stop working
azithromycin and alcoholzithromax effetti collaterali <a href=http://zithromax.antibioticonph.com>zithromax purchase</a> azithromycin for otitis media
<a href=http://www.skyfon-varna.eu/index.php/component/users/?option=com_k2&view... vienna cipro</a>

meteo isola di ciprowill cipro treat strep <a href=http://cipro.antibioticonph.com>order cipro online</a> navarria hotel ciprocipro urinary retentiontraghetti ancona cipro
makes tadalafil india <a href=http://cialisonln.com>buy cialis</a> cialis tadalafil 2008cialis huimaustadalafil 5 mg once daily
<a href=http://physics-mathematics.kz/index.php?option=com_k2&view=itemlist&task... treated for acne</a>

doxycycline liver cirrhosis <a href=http://doxycycline.antibioticonph.com>doxycycline generic</a> doxycycline online pricedoxycycline and sun exposuredoxycycline effects blood
using cialis every day <a href=http://cialisonln.com>purchase cialis online</a> 20 mg cialis cut half
<a href=http://www.themoneyworkshop.com/index.php/component/users/?option=com_k2... 500mg and alcohol</a>

levitra srbija cenavardenafil image <a href=http://levitraonly.com>levitra prices</a> vardenafil itching
scalp folliculitis doxycyclinedoxycycline tablets vs capsules <a href=http://doxycycline.antibioticonph.com>doxycycline purchase</a> doxycycline aids
<a href=http://supplyconceptsinc.com/index.php?option=com_k2&view=itemlist&task=... prise cialis</h2><br /></a>

Secondary menu