Re: Output SVG embedded in XHTML with XSLT

Axel Hecht <[email protected]> Sat, 03 Feb 2007 01:57:12 +0100
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Jonas Sicking wrote:
> 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.


Looks like a Sablotron bug. wget -O- shows that the stuff starting from 
the PI doesn't really look good, maybe that's part of it.

Anyway, I suggest using a sablotron or a generic XSLT list, this list is 
really focused on Mozilla's XSLT engine, and that isn't involved in what 
you're doing.

Axel