<div id="vmap" style="width: 800px; height: 600px; position: relative; overflow: hidden; background-color: rgb(255, 255, 255);">
<svg height="600" width="800">
<image xlink:href="file://deutschland_hr_relief.png" width="800" height="600" y="0" x="0"></image>
<g transform="scale(0.7490636704119851) translate(237.99999999999997, 0)">
<path>
//pathdata
</path></g></svg></div>
HTML コードは、jquery スクリプトで作成されます。含めたい画像は、同じディレクトリ内のローカルです。xlink:href に絶対パス (file:/// を前に付けたもの) を指定しようとしましたが、 の有無にかかわらず、機能しません。パスとファイル名が正しいことは間違いありません。Xubunutu 14.04 + Firefox (最新) で動作します。
何が原因でしょうか?
Robert Longson のおかげで解決しました。
で作成した画像
document.createElementNS('http://www.w3.org/2000/svg','image');
this.bg_image.setAttributeNS(null,'x','0');
this.bg_image.setAttributeNS(null,'y','0');
this.bg_image.setAttributeNS(null,'height',this.height);
this.bg_image.setAttributeNS(null,'width',this.width);
this.bg_image.setAttributeNS("http://www.w3.org/1999/xlink",'xlink:href','deutschland_hr_relief.png');