I guess, my xslt is even worse then yours :)
I attached xslt to this post. You should download it and then add XSL processing instruction
<?xml-stylesheet type="text/xsl" href="toSvg.xslt"?>
to your jpdl file.
Then your need view your jpdl file with any svg enabled browser i.e. firefox
Yep, it's still ugly :) but it's fully client-side image generation, i.e. you need no process image png or jpg anymore