You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Michel Lehon <Mi...@Outwares.com> on 2001/09/18 16:32:45 UTC

Image location

Hi,

I'm currently trying to figure out where fop is looking for images (but I'd
like to know how external resource are located).
I'd like to be able to load images with relative paths, however I'm using
fop from a servlet (through the Driver class).
I'm firing SAX events myself to Fop's ContentHandler.

and I'd like the relative path be be taken/derived from the SystemID of the
SAXSource.

How could I acheive that, or how can I set Fop's basedir at runtime for the
relative paths ?

Thanks.

Michel Lehon.
Outwares.


> -----Original Message-----
> From: Keiron Liddle [mailto:keiron@aftexsw.com]
> Sent: Tuesday, 18 September, 2001 12:03
> To: fop-dev@xml.apache.org
> Subject: Re: ETA on 0.20.2
>
>
> We should probably have a 0.21 release sometime in the next two weeks.
>
> Things that will need doing are:
> - testing for any unnoticed problems
> - building and putting the release on the server
> - update the website to reflect the new version
> - changes list, todo list, status etc.
>
> We could have a hold on new features or major changes for a few days and
> then when everything is done it will be available.
> So who is going to help out?
>
> On Mon, 17 Sep 2001 13:35:28 Louis.Masters@log-net.com wrote:
> > Any ETA on  0.20.2?  I really need markers to implement running headers.
> > Thanks,
> > Lou
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: Image location

Posted by Michel Lehon <Mi...@Outwares.com>.
Hi,

Some more info on my problem.
I've taken a look at FopImageFactory.java to see how it was handling
relative path for images
It seems like it tries to use the Configuration's baseDir value.
My problem is that the path i'd like to use as the base for relative urls is
dependent on the
request my servlet got (the ServletPath is important),
I tried setting the SystemID of the XML input (through the Locator), but
that does not change anything.
The same technique (setting the systemID works with Xalan to set the
relative paths).

Any ideas ?
Am I clear or is this completly impossible to understand (I have a hard time
explaining) ?

Thanks.

Michel Lehon
Outwares

> -----Original Message-----
> From: Michel Lehon [mailto:Michel.Lehon@Outwares.com]
> Sent: Tuesday, 18 September, 2001 16:33
> To: fop-dev@xml.apache.org
> Subject: Image location
>
>
> Hi,
>
> I'm currently trying to figure out where fop is looking for
> images (but I'd
> like to know how external resource are located).
> I'd like to be able to load images with relative paths, however I'm using
> fop from a servlet (through the Driver class).
> I'm firing SAX events myself to Fop's ContentHandler.
>
> and I'd like the relative path be be taken/derived from the
> SystemID of the
> SAXSource.
>
> How could I acheive that, or how can I set Fop's basedir at
> runtime for the
> relative paths ?
>
> Thanks.
>
> Michel Lehon.
> Outwares.
>
>
> > -----Original Message-----
> > From: Keiron Liddle [mailto:keiron@aftexsw.com]
> > Sent: Tuesday, 18 September, 2001 12:03
> > To: fop-dev@xml.apache.org
> > Subject: Re: ETA on 0.20.2
> >
> >
> > We should probably have a 0.21 release sometime in the next two weeks.
> >
> > Things that will need doing are:
> > - testing for any unnoticed problems
> > - building and putting the release on the server
> > - update the website to reflect the new version
> > - changes list, todo list, status etc.
> >
> > We could have a hold on new features or major changes for a few days and
> > then when everything is done it will be available.
> > So who is going to help out?
> >
> > On Mon, 17 Sep 2001 13:35:28 Louis.Masters@log-net.com wrote:
> > > Any ETA on  0.20.2?  I really need markers to implement
> running headers.
> > > Thanks,
> > > Lou
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org