Re: [xep-support] why does XEP always take images from the output directory?

From: G. Ken Holman (
Date: Thu Nov 14 2002 - 09:48:53 PST

At 2002-11-14 17:43 +0200, Rajat Vig wrote:
>I ve an element in the style sheet like <fo:external-graphic
>The directory where the image is located is determined by an environment

You will have to pass the value of this environment variable to your
stylesheet as a parameter so that you can compose an absolute URI in the
formatting object itself.

>It keeps expecting the image in the same directory as the .fo file.

Yes, XSL-FO 1.0 url() points to RFC2396 which states "a relative identifier
refers to a resource by describing the difference within a hierarchical
namespace between the current context and an absolute identifier of the
resource.". The current context is the FO instance.

I hope this helps.

.......... Ken

Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
-                             North America:  Feb 3 - Feb 7,2003
G. Ken Holman     
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next conference training:                    2002-12-08,03-03,06
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service

This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST