Page 1 of 1

context for fo:external-graphic URL?

Posted: Fri Nov 06, 2009 9:08 pm
by dsewell
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?

Re: context for fo:external-graphic URL?

Posted: Fri Nov 06, 2009 9:11 pm
by dsewell
and I should have mentioned,

Code: Select all

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

Re: context for fo:external-graphic URL?

Posted: Wed Nov 11, 2009 12:49 pm
by sorin_ristache
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

Re: context for fo:external-graphic URL?

Posted: Wed Nov 11, 2009 8:06 pm
by dsewell
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.