Hi Arian, Tonny,
Thomas was right about the broken links... [very weird since it does not report a fileNotFoundException].
If it threw a fileNotFoundException you wouldn't get a rendering. I believe the user agent is notified at some point.
when i use a full url path like below, it works... [...] i need to work with relative urls...
Tonny Kohar wrote:
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.
This is almost certainly the problem here. When you create the TranscoderInput you can provide a uri to use as the base URI of the document being transcoded: TranscoderInput.setURI(String uri)
You can also use the 'xml:base' attribute on elements in the document to set the base URI for URL resolution.
- 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
