xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas.Ha...@blum.com
Subject Antwort: Re: xlink:href
Date Wed, 14 Mar 2007 15:02:36 GMT
Hi,

I tried it with XMLConstants.XML_NS_URI (which I think is what you meant, 
because I could not find a constant named XMLConstants.XLINK_NAMESPACE_URI
) but it had no effect. The error still occurs.

Regards
Thomas



Tonny Kohar <tonny@kiyut.com> 
14.03.2007 15:33
Bitte antworten an
batik-users@xmlgraphics.apache.org


An
batik-users@xmlgraphics.apache.org
Kopie

Thema
Re: xlink:href






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
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
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