I don't know how your document is configured, but try setting the transform in the SVG namespace.
Michael Bishop > -----Original Message----- > From: massimo citterio [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 23, 2008 12:10 PM > To: batik-users@xmlgraphics.apache.org > Subject: element use, attribute transform doesn't work > > if the element is in the svg file everything is ok > > <use xlink:href="/home/cits/source.svg#s_7" > transform="translate(100,300)" > > > if I try to use that from java code, I get the error > > The attribute "transform" of the element <use> is invalid > > code: > > > Element el = document.createElementNS(svgNS, "use"); > el.setAttributeNS(null, "id", id+"instance"); > el.setAttributeNS(null ,"transform", "translate(100,100)"); > el.setAttributeNS(org.apache.batik.util.XMLConstants.XLINK_NAM > ESPACE_URI, "href", link); > document.getElementById(id).appendChild(el); > > > any hint? > is the transform supported for the use element (as far as I > can understand from the website > http://xmlgraphics.apache.org/batik/status.html, it is) ? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]