title: Ampersands (&) in xlink:href attributes of SVG images?
body: <p>I'm building an SVG document which contains various image tags. The <em>xlink:href</em> (source URL) attributes for the images contain query strings with ampersands. If I escape them as <em>%26</em> or the ascii encoding <em>&amp;#63;</em> they're not valid query strings and the server won't deliver the image. I can't escape them with CDATA because they're attributes (not nodes). I've tried creating an <em>xlink:href</em> node within the image tag but that get's ignored by the SVG parser. I want to use pure SVG (not SVG within HTML) so that I can convert to a JPG later, thus scripting is out... </p>
  
  <p>Any hints on how I can make the below work?</p>
  
  <pre><code>&lt;image x="0" y="0" width="306" height="306" xlink:href="http://host.com/image.jpg?token=asdf&amp;expiration=9384029&amp;etc=etc"/&gt;
  </code></pre>
  
  <p><em>Thanks!</em></p>