Hello,
I'm trying to use xalan to transform a dom to another dom, which in
turn defines an svg scene for batik. But I want the second dom to be
built using batik's own DOM implementation.
I tried to pass a dom node from batik to a DOMResult during the
creation of DOMResult, but I only get "generic" dom elements, which are
ignored by the batik rendering process.
here is the xsl:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="button">
<rect x="10" y="20" width="150" height="100" style="fill:green"/>
</xsl:template>
</xsl>
I checked that the <rect> element appears in the result tree, and I
even added another (red) rectangle element by hand using batik dom
implementation.
I have no run-time error, but only the red rectangle (added by hand) is
displayed.
I guess this has something to do with namespaces (?).
any cues ?
s.
--
stéphane conversy
http://www.tls.cena.fr/~conversy