Hi,

On Mon, 2005-04-04 at 02:10 -0400, Arian Hojat wrote:
> [snip]        
>         
>         Element image1 =
> svgDoc.createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI,
> "image");
>         image1.setAttributeNS(null, "xlink:href", "a.jpg");   

Change this to image1.setAttributeNS(xlinkNS,"xlink:href", "a.jpg");
Note: for this part do not use null as namespace.
You could use the defined constants at
org.apache.batik.util.XMLConstants.XLINK_NAMESPACE_URI or just type the
whole namespace.

>         image1.setAttributeNS(null, "x", "0");
>         image1.setAttributeNS(null, "y", "0");
>         image1.setAttributeNS(null, "width", "100%");
>         image1.setAttributeNS(null, "height","100%");

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to