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="" 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:

    xml:space ( preserve ) #FIXED 'preserve';
    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="" 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:

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=>buy ciprofloxacin online</a> ciprofloxacin used treat tooth infectionscipro hc clinical trialsciprofloxacin side effects tinnitus
dog on ciprocipro registration companiesciprofloxacin rx 709 <a href=>cipro price</a> cipro is a dangerous druglithium and ciprofloxacinstrep throat treatment ciprofloxacin
<a href= overdose amoxicillin</a>

amoxicillin posologyamoxicillin pregnancy birth defectsstrep throat medication amoxicillin <a href=>generic amoxil</a> amoxicillin baby smell
azithromycin ok when breastfeedingcan take azithromycin phenylephrine <a href=>buy azithromycin</a> azithromycin linked to sudden deathazithromycin use in std
<a href= cialis in mexico</a>

cialis ou viagra levitrawhat is levitra like <a href=>buy levitra online</a> comparacion sildenafil vardenafillevitra potency
cialis buy in mexicocialis г© para mulherescialis fa effetto sulle donne <a href=>cialis canada</a> qual melhor viagra cialis levitraacquistare cialis milano
<a href= azithromycin useful</a>

chemical synthesis of azithromycinazithromycin kills std п»ї<a href=>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=></a> sildenafil powerpoint presentationfree viagra ukmedicina china viagra
<a href= e20 erfahrung</a>

amoxicillin making me nauseousamoxicillin bredspektret <a href=>where can you get amoxicillin</a> swollen face amoxicillinlincomycin amoxicillin
daily cialis problems <a href=>cialis daily</a> tadalafil generic namescialis switch platewie ist cialis einzunehmen
<a href= migraine headaches</a>

o pastila viagra [url=]buy viagra online[/url] intialainen viagraonline viagra forumsdonde puedo comprar viagra generico
levitra nas--l bir ila+зlevitra bayer glaxosmithklinelevitra tricare [url=]levitra cost[/url] duracion del efecto del vardenafil
[url= cialis aiuta l'eiaculazione precoce</h2><br />[/url]

zithromax and amoxicillin interactionamoxicillin dosage table <a href=>buy amoxil online</a> doxycycline amoxicillin and ceftin
acheter cialis quebec <a href=>where to buy tadalafil</a> desventajas de tomar cialistadalafil sin receta medicaefectos secundarios pastilla cialis
<a href= way buy cialis</a>

levitra generico spedizione velocevardenafil in pulmonary hypertensionlevitra interaction simvastatin <a href=></a> posologia do levitralevitra bayer corporationcanadian pharmacy generic levitra
can take azithromycin flucan azithromycin cure stdszithromax dosage pediatric pneumonia <a href=>buy azithromycin</a> what does zithromax taste likeazithromycin dosage mg chlamydia
<a href= is zithromax for cats</a>

levitra vs cialis side effects <a href=>levitra cost</a> effetti di levitralevitra adelaide
viagra skateboard wheels <a href=></a> viagra
<a href= viagra hyderabad</a>

new viagra commercial song п»ї<a href=>buy viagra</a> safe take viagra age 18viagra as aphrodisiacviagra fencing
ciprofloxacin for soft tissue infectionscipro trademark registercipro eye children <a href=>buy cipro</a> cipro irlanda highlights
<a href= generico viagra</h2><br /></a>

din number for cialisgyгіgyszerгўrak cialis <a href=>buy cialis online</a> cialis aifacialis with priligy
taking amoxicillin no reason <a href=>order amoxicillin online</a> amoxicillin dental extraction
<a href= du cialis au canada</a>

not take while amoxicillinamoxicillin metabolism interactions <a href=>buy amoxil</a> amoxil antibiotic side effects infantsamoxicillin dosage for animals
doxycycline combination metronidazoledoxycycline std treatment <a href=>order doxycycline</a> doxycycline bestdoxycycline low plateletsdoxycycline horse s
<a href= super p-force</a>

doxycycline hydrochloride tablets what for <a href=>order doxycycline online</a> antibiotics online doxycyclinekeflex or doxycyclinedoxycycline sandoz
doxycycline diphtheroidsdoxycycline type of drug <a href=>buy doxycycline</a> can take doxycycline coffee
<a href= preise schweiz</a>

amoxicillin administered orallyamoxicillin or z pak <a href=></a> maculopapular rash amoxicillinamoxicillin dose urinary tract infection
azithromycin cyproheptadine <a href=>where can i get zithromax</a> does zithromax work on bronchitisazithromycin nejm 2011azithromycin delay
<a href= safe heart patients</h2><br /></a>

will amoxicillin affect cerazetteamoxicillin capsules during pregnancy safe <a href=>order amoxicillin online</a> baby taking amoxicillin has diarrhea
brand cialis cheap <a href=>cialis generic</a> tadalafil citrate buy
<a href= 20 mg coupon</a>

ciprofloxacin breastfeedingprice cipro ear drops <a href=>ciprofloxacin price</a> rhabdomyolysis ciprofloxacin
photos of amoxicillin rash <a href=>amoxicillin price</a> child throws up after amoxicillinamoxicillin fruit juice
<a href= left out of refrigerator</a>

cialis 20mg australia sydney <a href=>where to buy cialis online</a> shape of cialis pillpde5 cialishow cialis works
el ciprofloxacin contiene penicilinaciprofloxacin and tb <a href=>generic cipro</a> ciprofloxacin cilastatin
<a href= getting you high</a>

natural viagra dubai spice souk <a href=>buy viagra online</a> maxman vs viagra
accro viagraforum viagra soft tabsviagra cialis einnehmen <a href=>buy viagra</a> do doctors give viagra samplesviagra п‡п‰пѓо№п‚ пѓп…оѕп„о±оіо·
<a href= treat ear infections</a>

can babies have tylenol amoxicillin [url=]buy amoxicillin online[/url] amoxicillin making me vomit
ciprofloxacin damla [url=]buy cipro online[/url] cipro pain pillciprofloxacin zyfloxdiverticulitis and cipro
[url= trimox amoxil[/url]

buy azithromycin onlinezithromax suspension administrationazithromycin san ftbl 500mg <a href=></a> azithromycin neisseria
cialis lithium interactioncomments on cialisviagra and cialis ads <a href=>generic tadalafil 20mg</a> cialis z egiptu
<a href= online with no prescription</a>

ciprofloxacin moleculeciprofloxacin hcl zantac <a href=>buy cipro online</a> ciprofloxacin tablet msdsciprofloxacin ophthalmic solution pediatric
sinus infection not responding azithromycinazithromycin site of actionwhat can zithromax treat <a href=>buy zithromax</a> zithromax side effect back pain
<a href= viagra levitra cialis alcohol</h2><br /></a>

doxycycline testical pain <a href=>buy doxycycline online</a> gia thuoc doxycyclinesigma doxycycline hydrochloridedoxycycline eyes
doxycycline dosage stidoxycycline tablets take <a href=>buy doxycycline online</a> vibrox capsules doxycycline used
<a href= amoxicillin taken alcohol</h2><br /></a>

prix pilule de viagra <a href=>generic viagra</a> viagra kostenlos kaufen
can tan while taking amoxicillin <a href=>order amoxil online</a> cough syrup and amoxicillin
<a href= cialis with prescription</a>

food eat while ciprociprofloxacin hydrochloride and dexamethasone <a href=>generic ciprofloxacin 500mg</a> cipro ophthalmic ointmentciprofloxacin urine discolorationciprofloxacin diarrhГ©e du voyageur
recommended dosage amoxicillin toothacheamoxicillin side effects on toddlersamoxicillin bestellen <a href=>where can you get amoxicillin</a> amoxicillin esi
<a href= cialis vez semana</h2><br /></a>

price of doxycycline malariacan take zantac doxycyclineimplanon and doxycycline <a href=>http://doxycycline.antibioticonph.... doxycycline drug fevercan doxycycline stop working
azithromycin and alcoholzithromax effetti collaterali <a href=>zithromax purchase</a> azithromycin for otitis media
<a href= vienna cipro</a>

meteo isola di ciprowill cipro treat strep <a href=>order cipro online</a> navarria hotel ciprocipro urinary retentiontraghetti ancona cipro
makes tadalafil india <a href=>buy cialis</a> cialis tadalafil 2008cialis huimaustadalafil 5 mg once daily
<a href= treated for acne</a>

doxycycline liver cirrhosis <a href=>doxycycline generic</a> doxycycline online pricedoxycycline and sun exposuredoxycycline effects blood
using cialis every day <a href=>purchase cialis online</a> 20 mg cialis cut half
<a href= 500mg and alcohol</a>

levitra srbija cenavardenafil image <a href=>levitra prices</a> vardenafil itching
scalp folliculitis doxycyclinedoxycycline tablets vs capsules <a href=>doxycycline purchase</a> doxycycline aids
<a href= prise cialis</h2><br /></a>

Secondary menu