[xep-support] Generating Images with relative URL

From: Fritsch, Michael <michael.fritsch@coremedia.com>
Date: Fri Jun 17 2005 - 08:03:57 PDT

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
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);
    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
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,

Dr. Michael Fritsch
Technical Editor
tel +49.40.325587.214
fax +49.40.325587.999
Ludwig-Erhard-Str. 18
20459 Hamburg, Germany
(*) 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 Fri Jun 17 08:29:55 2005

This archive was generated by hypermail 2.1.8 : Fri Jun 17 2005 - 08:29:58 PDT