Jan Tošovský: > So problem is not setting xml:base, it was all the time correct, but > handling paths if external objects are specified in <defs> section. > Anybody can try to open enclosed image using Squiggle to prove it.
In your test document, the xml:base="" value applies not only to the URL on the <image>, but also to the one on the <use>. So the document is equivalent to: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 100 100"> <defs> <image id="img" width="100" height="100" xlink:href="http://www.google.com/images/nav_logo4.png"/> </defs> <use x="0" y="0" xlink:href="http://www.google.com/#img"/> </svg> You can place the xml:base="" on the <defs> element to scope its effect to that subtree, so that the <use> element’s local URI reference doesn’t get resolved against the base. -- Cameron McCormack ≝ http://mcc.id.au/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
