cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <>
Subject Re: external-graphics in xsl and PDF
Date Sat, 05 Jan 2002 16:37:28 GMT
On Saturday, January 05, 2002 , Torsten Curdt wrote:
> So I'm +1 for the servlet context dir as basedir


BTW, I asked some days ago on the fop-dev list if this is the only way of
setting this parameter, because
in this mail I read:

----- Original Message -----
From: "Keiron Liddle" <>
To: <>
Sent: Thursday, January 03, 2002 9:18 AM
Subject: Re: image protocal in Fop on unix

> The example in "docs/examples/fo/ has relative urls for images
> (can't really have absolute urls for cvs and distributions!).
> The images are loaded properly.
> Of course if you are embedding fop then you will need to set the basedir
> via the config.

Haven't recieved a reply yet. So I supposed that the config it this static
stuff only.
In fact, looking in the Options class in FOP I found:

        // set base directory
        String baseDir = Configuration.getStringValue("baseDir");
        if (baseDir == null) {
            try {
                baseDir =
                Configuration.put("baseDir", baseDir);
            } catch (Exception e) {}
        if (errorDump) {
            //log.debug("base directory: " + baseDir);

So yes, it's static. :-/

I'm doing a patch for the current proposal, but I got stuck at a seemingly
trivial point.
How do I get the context path from a Serializer?
Is it
 something-more-deeply-nested ;-)

Heck, how many Contexts are there?

Nicola Ken Barozzi       

These are the days of miracle and wonder...
 don't cry baby, don't cry...
                                                  Paul Simon

View raw message