rmpat77 wrote:
> I kinda get what you're saying, although I'm not exactly sure how to
> include the URL. The thing that bothers me is that, one of those JPGs
> is dynamically chosen i.e based on what selection is made in the
> form.
Thomas DeWeese wrote:
>> What you want to do is add:
>>
>> input.setURI("<some URI that makes sense>");
>> before calling:
>> t.transcode(input, output);
The purpose of the URI above is to provide the base for the
resolution of the JPEG URI's. If you just give the URI of the
Servlet it will just work. I suggest you read up on the resolution
of relative URI/URL's.
base: "http://foo.bar.com/blah/blah/baz.jsp"
Relative (from image's xlink:href): "images/pin.jpg"
Result: "http://foo.bar.com/blah/blah/images/pin.jpg"
Alternately if the image is located at "C:\web\blah\images\pin.jpg"
You could use "file:///C:/web/blah/foo.svg" (where 'foo.svg' is
_totally_ made up just so it has something to strip off). The
problem is if the install moves (and it will) then this will break,
so you would need to make it some kind of configuration parameter for
the JSP.
> If it could help, may I email you my source files?
> do let me know
It wouldn't help here, I know what your problem is and I
have explained it to you about as well as I can.
rmpat77 wrote:
>> So this is passing in a Reader (essentially a text version of
>>an InputStream). As I think you should be able to see there
>>is no way to know what should be used as the baseURL to resolve
>>relative URLS with (so it can't find your images).
>>
>>
>> The 'best' thing would probably be to use a 'file:' url that
>>points to an appropriate location in the servers file system
>>(this has some maintenance issues with it, but will be fastest since
>>it would then access the files directly). The other option
>>is to use the URI of the servlet (which I'm sure you can get),
>>this is in many ways cleaner but means that Batik will fetch the
>>images over http or the like.
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/