You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thomas DeWeese <Th...@Kodak.com> on 2003/09/02 13:38:16 UTC

Re: setSVGDOcument() does not work

Tom Diamond wrote:
> Hello,
> 
> I do the following : I create a Document on the fly (create Elements, 
> adding Attributes, setting childs etc., etc.). If I try to display it in 
> a JSVGCanvas via the setSVGDocument() method I get the following 
> exception :
> [...]
> The URI in question is created by 
> "fontFaceUriElement.setAttributeNS(null, "xlink:href", 
> defaultFontPath);" 

    This is a FAQ, please read it from the Batik web site.
You need to provide the xlink namespace here instead of 'null'.

> where `defaultFontPath ` is the _absolute_ path to an 
> external svg file (containing a font).
> If I save the document first and then try to display it via the setURI() 
> method, everything works just fine.
> Any ideas?
> 
> I downloaded batik (http://xml.apache.org/batik/dist/) just a couple of 
> days ago, so I assume it is the last stable version. I work on Linux and 
> JDK 1.4.2 (SUN)
> 
> Tnx,
> 
> Tom.
> 




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