Skip navigation
epubJunkie
Currently Being Moderated

DOCTYPE in SVG incompatible with epubcheck 3.0

Apr 11, 2013 4:35 PM

Tags: #svg #epubcheck #doctype

CS6 Illustrator by default inserts a DOCTYPE tag in SVG 1.1 output. This seems to be perfectly legal when looking at the SVG 1.1 spec. Rumor has it that it will no longer be legal in SVG 1.2, whenever that appears.

 

When epubcheck 3.0 checks an epub 3.0 document and encounters the DOCTYPE tag, it spews a bunch of errors:

 

java -jar epubcheck-3.0.jar -mode svg -v 3.0 charGlyph.svg

Epubcheck Version 3.0

 

 

WARNING: charGlyph.svg/: File is validated as a single file of type svg and version 3.0. Only a subset of the available tests is run.

ERROR: charGlyph.svg/charGlyph.svg: External DTD entities are not allowed. Remove the DOCTYPE.

ERROR: charGlyph.svg/charGlyph.svg(60,31): External entities are not allowed. External entity declaration found: %svg-model.mod

ERROR: charGlyph.svg/charGlyph.svg(65,33): External entities are not allowed. External entity declaration found: %svg-attribs.mod

ERROR: charGlyph.svg/charGlyph.svg(72,33): External entities are not allowed. External entity declaration found: %svg-framework.mod

ERROR: charGlyph.svg/charGlyph.svg(103,33): External entities are not allowed. External entity declaration found: %svg-datatypes.mod

ERROR: charGlyph.svg/charGlyph.svg(197,29): External entities are not allowed. External entity declaration found: %svg-qname.mod

ERROR: charGlyph.svg/charGlyph.svg(865,35): External entities are not allowed. External entity declaration found: %svg-core-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(923,40): External entities are not allowed. External entity declaration found: %svg-container-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(968,39): External entities are not allowed. External entity declaration found: %svg-viewport-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1018,36): External entities are not allowed. External entity declaration found: %svg-paint-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1139,38): External entities are not allowed. External entity declaration found: %svg-opacity-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1191,39): External entities are not allowed. External entity declaration found: %svg-graphics-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1268,40): External entities are not allowed. External entity declaration found: %svg-docevents-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1335,42): External entities are not allowed. External entity declaration found: %svg-graphevents-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1423,41): External entities are not allowed. External entity declaration found: %svg-animevents-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1480,36): External entities are not allowed. External entity declaration found: %svg-xlink-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1568,43): External entities are not allowed. External entity declaration found: %svg-extresources-attrib.mod

ERROR: charGlyph.svg/charGlyph.svg(1612,33): External entities are not allowed. External entity declaration found: %svg-structure.mod

ERROR: charGlyph.svg/charGlyph.svg(1961,35): External entities are not allowed. External entity declaration found: %svg-conditional.mod

ERROR: charGlyph.svg/charGlyph.svg(2102,29): External entities are not allowed. External entity declaration found: %svg-image.mod

ERROR: charGlyph.svg/charGlyph.svg(2203,29): External entities are not allowed. External entity declaration found: %svg-style.mod

ERROR: charGlyph.svg/charGlyph.svg(2292,29): External entities are not allowed. External entity declaration found: %svg-shape.mod

ERROR: charGlyph.svg/charGlyph.svg(2619,28): External entities are not allowed. External entity declaration found: %svg-text.mod

ERROR: charGlyph.svg/charGlyph.svg(3055,30): External entities are not allowed. External entity declaration found: %svg-marker.mod

ERROR: charGlyph.svg/charGlyph.svg(3198,31): External entities are not allowed. External entity declaration found: %svg-profile.mod

ERROR: charGlyph.svg/charGlyph.svg(3279,32): External entities are not allowed. External entity declaration found: %svg-gradient.mod

ERROR: charGlyph.svg/charGlyph.svg(3437,31): External entities are not allowed. External entity declaration found: %svg-pattern.mod

ERROR: charGlyph.svg/charGlyph.svg(3572,28): External entities are not allowed. External entity declaration found: %svg-clip.mod

ERROR: charGlyph.svg/charGlyph.svg(3681,28): External entities are not allowed. External entity declaration found: %svg-mask.mod

ERROR: charGlyph.svg/charGlyph.svg(3822,30): External entities are not allowed. External entity declaration found: %svg-filter.mod

ERROR: charGlyph.svg/charGlyph.svg(4637,30): External entities are not allowed. External entity declaration found: %svg-cursor.mod

ERROR: charGlyph.svg/charGlyph.svg(4723,33): External entities are not allowed. External entity declaration found: %svg-hyperlink.mod

ERROR: charGlyph.svg/charGlyph.svg(4854,28): External entities are not allowed. External entity declaration found: %svg-view.mod

ERROR: charGlyph.svg/charGlyph.svg(4926,30): External entities are not allowed. External entity declaration found: %svg-script.mod

ERROR: charGlyph.svg/charGlyph.svg(4997,33): External entities are not allowed. External entity declaration found: %svg-animation.mod

ERROR: charGlyph.svg/charGlyph.svg(5283,28): External entities are not allowed. External entity declaration found: %svg-font.mod

ERROR: charGlyph.svg/charGlyph.svg(5669,37): External entities are not allowed. External entity declaration found: %svg-extensibility.mod

 

Does Adobe regard this as an epubcheck bug? Has Adobe discussed this with the epubcheck people? At least one other opensource svg converter doesn't output a doctype.

 

TIA...

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points