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

From: Fritsch, Michael <michael.fritsch@coremedia.com>
Date: Mon Jun 20 2005 - 01:57:07 PDT

Hello Werner,
thank you very much. Now it works! Sure, a URL with a starting slash is not relative but it worked with the XEP 2.78 version. It seems to me that the XEP 4.1 version is much more restrictive than the old one.
Best regards,
Michael

-----Ursprüngliche Nachricht-----
Von: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com] Im Auftrag von Werner Donné
Gesendet: Sonntag, 19. Juni 2005 11:38
An: xep-support@renderx.com
Betreff: Re: [xep-support] Generating Images with relative URL

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
-------------------
(*) 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 Mon Jun 20 02:19:46 2005

This archive was generated by hypermail 2.1.8 : Mon Jun 20 2005 - 02:19:46 PDT