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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to