OK, maybe not so fine. This is odd.
if I use:
element.setAttributeNS(
XLINK_NAMESPACE_URI, SVGConstants.SVG_HREF_ATTRIBUTE, imageName);
The image is placed on the canvas just fine, but I get the same error message
about "xlink:href" missing when I load the document later.
If I use:
element.setAttributeNS(
XLINK_NAMESPACE_URI, "xlink:href", imageName);
I get the "xlink:href" error when I place the Image, but it works fine when I
load the document later.
What gives?
public static final String XLINK_NAMESPACE_URI =
"http://www.w3.org/1999/xlink";
Michael Bishop
________________________________ From: Bishop, Michael W. CONTR J9C880 [mailto:[EMAIL PROTECTED] Sent: Wed 11/30/2005 1:05 PM To: [email protected] Subject: RE: Error importing Images into an image tag? OK, yeah, it doesn't hurt anything. Just wondered how they ended up there. Using the namespace fixed the overall problem and images import just fine. Michael Bishop -----Original Message----- From: Archie Cobbs [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 12:59 PM To: [email protected] Subject: Re: Error importing Images into an image tag? Bishop, Michael W. CONTR J9C880 wrote: > That certainly did it. Any reason why it adds extra attributes that I > don't specifically set? Probably those are default values or something. I.e., semantically it's the same thing whether or not those other attributes are there. -Archie ________________________________________________________________________ __ Archie Cobbs * CTO, Awarix * http://www.awarix.com --------------------------------------------------------------------- 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]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
