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_NAMESPACE_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]

Reply via email to