title: Problem with dynamic SVG image generation
body: <p>I am trying to write a server side script (PHP) for generating an SVG image based on user input. I am using the following code:</p>
  
  <pre><code>&lt;?php
  
  echo '&lt;?xml version="1.0" standalone="no"?&gt;
  
  &lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
  
  &lt;head&gt;&lt;meta http-equiv="Content-Type" content="svg+xml" /&gt;&lt;/head&gt;
  
  &lt;svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"&gt;
  
  &lt;circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/&gt;
  
  &lt;/svg&gt;';
  
  ?&gt;
  </code></pre>
  
  <p>I read somewhere that the MIME type must be svg+xml so I tried setting it in content-type as you can see above. The correct code is being received by Firefox but the image is not being rendered. Does somebody know what to change here?</p>