XML Entities used for namespace declarations prevent file loading in trunk and 0.48.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Follow-up to bug #1025185:
Problem:
--------
Third-party SVG files (the ones I encountered so far are all created
with Adobe Illustrator) may define namespace declarations as XML
entities. These files no longer load in Inkscape 0.48.4 and current
trunk after the fix for bug #1025185, no matter whether the preference
'/options/
is true or not.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://
<!ENTITY ns_svg "http://
<!ENTITY ns_xlink "http://
]>
<svg version="1.0" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink=
viewBox="0 0 1457.75 341.25" overflow="visible" enable-
or
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://
<!ENTITY ns_extend "http://
<!ENTITY ns_ai "http://
<!ENTITY ns_graphs "http://
<!ENTITY ns_vars "http://
<!ENTITY ns_imrep "http://
<!ENTITY ns_sfw "http://
<!ENTITY ns_custom "http://
<!ENTITY ns_adobe_xpath "http://
<!ENTITY ns_svg "http://
<!ENTITY ns_xlink "http://
]>
<svg version="1.1" id="Layer_1" xmlns:x=
xmlns="&ns_svg;" xmlns:xlink=
overflow=
Tested on OS X 10.7.4 with libxml2 2.7.8 and libxml2 2.8.0:
- not reproduced with Inkscape 0.48.3.1 and trunk <= r11930
- reproduced with Inkscape 0.48.4 and trunk >= r11931
(last tested with r11976)
Sample files (also attached as zip archive):
-------------
(Caution: when downloading any of the SVG files in Firefox, make sure to
save as Inkscape/SVG file and not as webpage, else only a copy with the
entities already substituted will be saved locally):
- <http://
- <http://
- <http://
- 'HDMI_Logo.svg' from
<https:/
- 'Spain_
<https:/
- <http://
This one loads despite namespace warning:
- <https:/
Changed in inkscape: | |
status: | Fix Released → Triaged |
Confirmed on Windows XP, Inkscape 0.48.4 and trunk revision 11986.