[Wylug-help] Embedding SVG directly in XHTML (Viewing in Firefox 3)

Dave Fisher wylug-help at davefisher.co.uk
Fri Aug 8 13:58:34 BST 2008


Hi,

I can embed external SVG files in a web page using the <object> tag
(albeit, with an extra SVG viewBox attribute and an extra HTML style
attribute, to make Inkscape SVG files work properly).

And I can load and view the same modified Inkscape SVG files directly in
Firefox 3, e.g.
  
  http://somedomain.co.uk/drawing.svg

But I really want to put the SVG code directly into XHTML, to avoid
unnecessary HTTP requests.

It's obviously do-able with hand-written SVG:

  http://developer.mozilla.org/en/docs/SVG_In_HTML_Introduction

But I can't make it work with Inkscape-created SVG drawings.

Does anyone else have some relevant experience of this, or know of good
documentation that I can look through?

Dave




More information about the Wylug-help mailing list