The XSL file and where it's stored is irrelevant because the XSL
transformation doesn't have anything to do with the image.

It's what FOP considers it's "base directory" that matters.  Using FOP
0.20.2 in a servlet, I had to set a base directory for FOP to look for
images using this code:

org.apache.fop.configuration.Configuration.put("baseDir", "file:C:\\FOP\\");

If you use FOP from the command line, I would assume it uses the current
directory as the "base directory", but I don't know for sure.

Then, in the XSL-FO, you can use relative file paths from the base directory
for FOP to find images:

<fo:external-graphic src="images\chart1.png"/>


Hope this helps,
Scott


-----Original Message-----
From: Mitchell, Scott(LIT) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: RE: which graphic formats are supported ?


the image is quite small so should fit in the area specified.  If I have the
image in the same directory as the xsl file, is this how it should be
referenced?

        <fo:external-graphic  height="116mm" width="152mm"
        src="file:icase_header2.jpg"/>



> -----Original Message-----
> From: Scott Moore [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 08, 2002 3:58 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      RE: which graphic formats are supported ?
> 
> It seems from previous postings that the image will be resized to fit the
> width, but not the height.  Make sure you have enough space to display the
> image.  Try increasing the height until you see it.
> 
> Scott
> 
> -----Original Message-----
> From: Mitchell, Scott(LIT) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 08, 2002 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: RE: which graphic formats are supported ?
> 
> 
> I am using the code...
> 
> <fo:external-graphic  height="116mm" width="152mm"
> src="file:../actions/icase_header2.jpg"/>
> 
> This is not picking the file up and displaying it.
> 
> 
> Any ideas?
> 
> > -----Original Message-----
> > From:       Nick Winger [SMTP:[EMAIL PROTECTED]]
> > Sent:       Tuesday, January 08, 2002 5:03 PM
> > To: Apache Mailinglist (E-Mail)
> > Subject:    which graphic formats are supported ?
> > 
> > hi !
> > 
> > 
> > in the  <fo:external-graphic>  tag:
> > 
> > which graphic formats are supported ? e.g.: jpg ? and ...
> > 
> > 
> > greetings
> > 
> > Nick Winger
> > 
> > (Software-Developer)
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to