Hi, On Sun, 2005-11-20 at 19:22 +0000, Ronan Oger wrote: > Does anyone have any idea why this does not work: > > Element x = doc.getDocumentElement(); > > Element target = doc.createElementNS( > SVGDOMImplementation.SVG_NAMESPACE_URI, > "image"); > > target.setAttributeNS(null, "x", String.valueOf(X)); > target.setAttributeNS(null, "y", String.valueOf(Y)); > target.setAttributeNS(null, "width", String.valueOf(Width)); > target.setAttributeNS(null, "height", String.valueOf(Height)); > target.setAttributeNS(null, "id", String.valueOf(spriteID)); > target.setAttributeNS(null, "xlink:href", > String.valueOf(spriteFile))
You need to do something like target.setAttributeNS(XMLConstants.XLINK_NAMESPACE_URI, "xlink:href",filename); Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
