xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steffen Jacobs <...@informatik.uni-kiel.de>
Subject Re: xlink:href
Date Wed, 14 Mar 2007 15:13:20 GMT
Hello there,

after a brief look, I think it should be
imageElement.setAttributeNS(xlinkNS, "href", ...);

Regards,
Steffen Jacobs

> Hi,
>
> On Wed, 2007-03-14 at 10:57 +0100, Thomas.Hagen@blum.com wrote:
>   
>> Hello, 
>>
>> I have a problem displaying SVGDocuments with an embedded image in a
>> JSVGCanvas. 
>>
>> imageElement.setAttributeNS(null, "xlink:href",
>> "data:image/jpg;base64," + Base64.encode(ip.getImageAsByteArray())); 
>> svgRoot.appendChild(imageElement); 
>>     
>
> Have you try
> String xlinkNS = XMLConstants.XLINK_NAMESPACE_URI;
> imageElement.setAttributeNS(xlinkNS,"xlink:href",....)
>
> on the namespace part use the xlink namespace not null.
>
> Regards
> Tonny Kohar
>   


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


Mime
View raw message