title: d3 append an image with svg extension
body: <p>I'm trying to add an svg image with '.svg' extension to my chart (another svg image created with d3).</p>
  
  <p>This is the code:</p>
  
  <pre><code>d3.select("#chart1 svg")
    .append("svg:image")
    .attr("xlink:href", "img/icons/sun.svg")
    .attr("width", 40)
    .attr("height", 40)
    .attr("x", 228)
    .attr("y",53);
  </code></pre>
  
  <p>As you can see I'm setting "xlink:href" attribute, but d3 changes this to href in the browser:</p>
  
  <pre><code>&lt;image href="img/icons/sun.svg" width="40" height="40" x="228" y="53"&gt;&lt;/image&gt;
  </code></pre>
  
  <p>In fact, this code works perfectly if I use png extension. Any idea?</p>