cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <baro...@nicolaken.com>
Subject Re: external-graphics in xsl and PDF
Date Thu, 03 Jan 2002 14:16:06 GMT
I'm crossposting on cocoon-dev and continuing discussion there.
Second list switch in so little time!  :-O

----- Original Message -----
From: "Torsten Curdt" <tcurdt@dff.st>
To: <cocoon-users@xml.apache.org>; "Nicola Ken Barozzi"
<barozzi@nicolaken.com>
Sent: Thursday, January 03, 2002 1:53 PM
Subject: Re: external-graphics in xsl and PDF


> Cool! Will invesitgate further. Maybe we can set the context
> path for fop processing then!!
>
> If you already have more insight in this please give me a direct
> mail or post to cocoon-dev.

Ok so Configuration is static and here is the relevant code taken from the
FOP ant task:

   org.apache.fop.configuration.Configuration.put("baseDir",

task.getFofile().getParentFile().toURL().toExternalForm());

It should be set in the Serializer setup.
What do you think is better to put as a relative value?
The problem is that Configuration is static for now, so I can to set the
base dir to the Constants.DEFAULT_CONTEXT_DIR or to a configured param;
anyway only one per VM. :-(
I think that the best is a configuration param, so that in the future when
Configuration is not static anymore we don't break contracts; the fixed conf
basedir is used for all if present, if not each file is resolved with its
relative url.
Comments?

Ken
--
Nicola Ken Barozzi                 xml-cocoon@nicolaken.com

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


> > Below I'm cross-posting a mail taken from fop-dev list.
> >
> > ----- Original Message -----
> > From: "Keiron Liddle" <keiron@aftexsw.com>
> > To: <fop-dev@xml.apache.org>
> > Sent: Thursday, January 03, 2002 9:18 AM
> > Subject: Re: image protocal in Fop on unix
> >
> >
> > > On 2002.01.02 21:23 "Savino, Matt C" wrote:
> > > > This works for me:
> > > >
> > > > <fo:external-graphic
> > > >
> >
src="file:///usr/local/weblogic/config/isappdev/applications/RVWebApp1/WEB-I
> > > > NF/lib/ClinTrialLogoGreenBig.gif" />
> > > >
> > > > If you figure out how to use a relative path, PLEASE let me know.
> > >
> > > The example in "docs/examples/fo/images.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.
>


Mime
View raw message