SAXTransformerFactory tf = (SAXTransformerFactory)SAXTransformerFactory.newInstance();
TransformerHandler t = tf.newTransformerHandler(new StreamSource(
NanoGraph.class.getResourceAsStream("/stylesheets/embedded_svg.xsl")));
// render to System.out
t.setResult(new SAXResult(new NamespacePrefixSAXWriter(new OutputStreamWriter(System.out))));
System.out.flush();
image.storeAsSVG(t);
}