Florent Georges wrote:
> Manuel Mall wrote:
> > Try if file:///C:/test/logo.svg works. That should
> > remove any ambiguity about what is the path and what is
> > the hostname in the URL.
> I'll try tomorrow (as I can't reproduce the problem
> outside the server). But as I said, the URI is generated
> by Saxon, by using the XPath 2.0 fn:resolve-uri(). So I
> can't really change the format of the URI.
> If I remember well, I gave also:
> java.net.UnknownHostException: C
> when trying to use a file in the D: drive (file:/D:/...).
> Maybe the base URI? I'll try to test some combinations of
> base URIs, drives and URI formats.
Mmh, strangely enough, you was right. file:///C:/... and
file:///D:/... are working, not file:/C:/... nor file:/D:/...
Once again, this occurs only on the server, not on my local
station, so I guess it's related to the version of the JRE or
some library (FOP are both 0.91beta).
I modified the initial example to access the following
URIS:
logo.svg
file:/C:/test/logo.svg
file:///C:/test/logo.svg
file:/D:/test/logo.svg
file:///D:/test/logo.svg
and copy this file in both C:/test and D:/test. Here are the
error output I get on C:/test/url-win.fo:
Error with opening URL '/C:/test/logo.svg': C
java.net.UnknownHostException: C
Image not available: url('file:/C:/test/logo.svg')
Error with opening URL '/D:/test/logo.svg': C
java.net.UnknownHostException: C
Image not available: url('file:/D:/test/logo.svg')
and on D:/test/url-win.fo:
Error with opening URL '/C:/test/logo.svg': D
java.net.UnknownHostException: D
Image not available: url('file:/C:/test/logo.svg')
Error with opening URL '/D:/test/logo.svg': D
java.net.UnknownHostException: D
Image not available: url('file:/D:/test/logo.svg')
The reported unknown host is not the drive letter in the
URI, but the drive letter of the base URI. I'm not sure if
it's expected.
I'm completely lost here :-(
Any idea?
Thanks, regards,
--drkm
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]