xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbisch, Martin" <barbi...@sony.de>
Subject RE: use-Tags
Date Thu, 23 Jan 2003 11:51:42 GMT
Hello Uwe,


> Element newUseTag=document.createElement("use");
> newUseTag.setAttribute("xlink:href","#helper"+id.substring(1));
> newUseTag.setAttribute("xlink:type","simple");
> ...
>
> I am trying to instantiate the xlink attribute in different 
> way but that doesn't work until now.

Have you tried the namespace aware version of setAttribute?

  var XLINKNS = "http://www.w3.org/1999/xlink";
  newUseTag.setAttributeNS(XLINKNS, "type", "simple"); 

Also, some attributes cannot be changed dynamically. Then you can recreate
the element and replace it with the old one.

Cheers,

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message