Read this article: http://surguy.net/articles/client-side-svg.xml. It explains how to generate SVG plugin code within XHTML.