Re: Output SVG embedded in XHTML with XSLT

Jonas Sicking <[email protected]> Fri, 02 Feb 2007 16:12:36 -0800
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
l0b0 wrote:
> I'm using XSLT and PHP to generate all the pages on my site, and I'd
> like to start adding some SVG to the output. http://dev.l0b0.net/include/stylesheet/template.xsl
> now includes some SVG, but /only/ the contents of the "desc" element
> is output. I thought any non-XSLT markup inside a template would be
> output verbatim. I've googled and had a look through quite a few forum
> threads, but nobody seems to output XML in several namespaces. Any
> help would of course be very welcome.

I can't immediately see anything wrong with the stylesheet, but it is 
really big so it's very possible that I missed something.

Make sure your elements end up having the right namespace (This can be 
checked using the DOM inspector.

It would help if you attached a *small* testcase that included both an 
XSLT file and an xml file.