Hi,

> Thomas was right about the broken links...
> [very weird since it does not report a fileNotFoundException].
> when i use a full url path like below, it works...
> image1.setAttributeNS(
> org.apache.batik.util.XMLConstants.XLINK_NAMESPACE_URI , "xlink:href",
> "file:\\\\\\C:\\Documents and
> Settings\\Administrator\\Desktop\\SVGTest\\build\\a.jpg");
> 
> this is kinda 'ghetto' though and i am gonna be maybe sending these
> svg and pics files to the user with a saveSVGAandSourcePicsZip()
> function probably.so i need to work with relative urls...

For the info Batik is work fine with both Absolute and Relative URI.

Some tips regarding Relative URI:
- make sure the document base URL is correct, otherwise it couldn't
resolve the relative path. This is normally become a problem if you
create the document on fly rather than load from file.
- Do not forget the set xlink namespace in the element that required it
eg: image
- To keep things simpler (during development debuging) try to put the
relative external resources in the same dir as the doc, however batik
relative URI is work fine in any arbitary dir

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to