context for fo:external-graphic URL?

Here should go questions about transforming XML with XSLT and FOP.
dsewell
Posts: 115
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

context for fo:external-graphic URL?

Post by dsewell » Fri Nov 06, 2009 9:08 pm

I'm encountering an odd problem. I have an XSLT file that is producing XSL-FO output for transformation to PDF. In my transformation scenario, both XML input file and the XSLT file are in the same directory. I have an FO statement

Code: Select all

<fo:external-graphic src="url('{graphic/@url}')"/>
When I ran this on my home system, the URL resolved fine and the PDF contained the graphic. On my work system, the URL does not resolve: no graphic. I have to use

Code: Select all

<fo:external-graphic src="url('/absolute/path/to/{graphic/@url}')"/>
for the graphic to be included.

Any idea why, or what I should check in my oXygen preferences?

dsewell
Posts: 115
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Re: context for fo:external-graphic URL?

Post by dsewell » Fri Nov 06, 2009 9:11 pm

and I should have mentioned,

Code: Select all

graphic/@url
resolves to the base filename of the included graphic (with no path information).

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: context for fo:external-graphic URL?

Post by sorin_ristache » Wed Nov 11, 2009 12:49 pm

Hello,

Do you use the same transformation scenario on both computers? If not what are the differences between the two scenarios? If yes can you post a sample XML file and a sample XSLT stylesheet for reproducing the problem?


Regards,
Sorin

dsewell
Posts: 115
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Re: context for fo:external-graphic URL?

Post by dsewell » Wed Nov 11, 2009 8:06 pm

thanks for the response--unfortunately I'm travelling for a few days. If I can't resolve the issue locally I'll post something next week.

Post Reply