Re: [xep-support] Generating Images with relative URL

From: Werner Donné <werner.donne@re.be>
Date: Sun Jun 19 2005 - 02:38:07 PDT

Hi Michael,

Your relative URL is not relative, because it starts with a slash.
I think it will work without the leading slash.

Best regards,

Werner.

Fritsch, Michael wrote:
>
> Hello,
> we are just upgrading from XEP 2.78 to 4.1 and now we have problems
> generating Images.
> In my XSL-FO I have the following line which should include the Image
> from a CMS system:
>
> <fo:external-graphic src="*/doc/generator/property=Image/id=66200.gif*" />
>
> This is a relative URI which should be expanded to
> _http://host:port/doc_....
> To do so, I'm using the following line in my Transformer class to set
> the systemID:
>
> String systemId = "_http://_"
> + generator.getServerName()
> + ":"
> + generator.getServerPort();
>
> System.out.println("Using System ID: " + systemId);
> // This prints the correct prefix of the URL
> Source saxSource = new SAXSource(_fo);
> saxSource.setSystemId(systemId);
> formatter.render(saxSource, printer);
>
> That is, I'm setting the systemID with the prefix of the URL.
> In XEP 2.78 everything worked fine but now I get the following error:
>
> [warning] Could not retrieve image from
> '_http:/doc/generator/property=Image/id=66200.gif_':
> java.net.ConnectException: Connection refused
>
> It seems that XEP does not use the systemID as a prefix but only http
> which is indeed no valid path to the image.
>
> Best regards,
> Michael
> --
> *Dr. Michael Fritsch*
> Technical Editor
>
> tel +49.40.325587.214
> fax +49.40.325587.999
> michael.fritsch@coremedia.com
>
> CoreMedia
> Ludwig-Erhard-Str. 18
> 20459 Hamburg, Germany
> <___www.coremedia.com_ <file://www.coremedia.com>>
>
>
>

-- 
Werner Donné  --  Re BVBA
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Sun Jun 19 03:03:24 2005

This archive was generated by hypermail 2.1.8 : Sun Jun 19 2005 - 03:03:27 PDT