Quote:
Originally Posted by Jellby
Does it? When I started validating (I don't remember if it was epubcheck or flightcrew, or both) I got an error with inline SVG and DTD and, as far as I know, the XHTML 1.1 doctype does not allow inline SVG
Have a look here: http://www.daisy.org/epub/issues/cla...e-allowed-epub particularly at message #49
My understanding now is that DOCTYPE is not necessary, but if it's used it must be the right one for the content, and HTML+SVG is not valid in the XHTML 1.1 DOCTYPE. So, if you are going to use them, either you must include a custom DOCTYPE, or just remove the line, as it's not needed anyway.
|
Really, it does. It perhaps depends on the usage of SVG though. Perhaps if you use certain SVG commands it is not supported.
It probably depends on how you use the SVG. If you embed it, there is an SVG file added. In the SVG file there is no DOCTYPE. However, if I take the content of the SVG file (only the <svg> tags and everything in between), I can past it in a normal XHTML file with DOCTYPE without an issue. I must put the <svg> in <div> tags of course, but that is normal.
I usually don't do very complex things in SVG, which might be the reason why it works.