[oXygen-user] Trouble validating SVG document

Chris Lilley
Fri Oct 15 06:20:22 CDT 2010


On Thursday, October 14, 2010, 3:50:50 PM, Timothy wrote:

RT> I have an SVG document where the openeing SVG element is:
RT> <svg  version="1.0" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;"
RT> xmlns:graph="&ns_graphs;" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;"
RT>      width="497.611" height="591.554" viewBox="0 0 497.611 591.554"
RT>      style="overflow:visible;enable-background:new 0 0 497.611 591.554;"
RT> xml:space="preserve">

So, this has come from Adobe Illustrator, and it declares two Adobe namespaces as well as the SVG and XLink namespaces.

It does that via entity declarations in the internal DTD subset. I assume that your file still has these.

If you are using a DTD for validation, since DTDs are not namespace aware you will need to declare the namespace declarations (DTDs consider these to be attributes); either in the internal DTD subset or in your local copy of the SVG DTD.


-- 
 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups




More information about the oXygen-user mailing list