Closed GoogleCodeExporter closed 9 years ago
I knew I would get this report, and I was pretty sure it would come from you
since I got this error on the books you made that I used while testing. :)
The error is sound, it's just that the <svg> element is not allowed to be a
direct child of the <body>. See the OPS spec, section 2.5:
http://www.idpf.org/doc_library/epub/OPS_2.0.1_draft.htm#Section2.5.3
"svg elements may be used anywhere XHTML img elements could be used"
and similar text can be found throughout the spec. Bottom line, <svg> can go
where <img> can go, and <img> is not allowed to be a child of the <body>.
So just wrap it in a <div>.
Original comment by Strahinja.Markovic@gmail.com
on 3 Oct 2010 at 9:46
I see...
Just a question, do you use the NVDL definition in Appendix A (can it be used
at all?)?
Original comment by jel...@gmail.com
on 3 Oct 2010 at 10:06
Issue 4 has been merged into this issue.
Original comment by Strahinja.Markovic@gmail.com
on 3 Oct 2010 at 11:18
No, I wrote a custom XML Schema. As I've said, just wrap the <svg> in a <div>.
The NVDL schema does not perform structural validation for SVG, it just
"routes" validation of SVG to the SVG RNG schema.
Original comment by Strahinja.Markovic@gmail.com
on 3 Oct 2010 at 11:23
Original comment by Strahinja.Markovic@gmail.com
on 3 Oct 2010 at 11:23
Original issue reported on code.google.com by
jel...@gmail.com
on 3 Oct 2010 at 9:13