Re: [xsl] is it possible to resize an image to display smaller than the original

Subject: Re: [xsl] is it possible to resize an image to display smaller than the original
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 02 Apr 2012 23:07:35 +0100
On 02/04/2012 22:54, David Ryan wrote:
if I hardcode the file location in the url - it will work but I need
to pass that in the xml as this routine gets called for many different
xml's.

are you sure the
a) url in the file is correct (to be interpreded as a relative url when executed from the fo file)
b) your xpath is selecting the correct element?


In particular the examples you have posted in this thread have been very inconsistent

in various messages you have:

select="data/photoimg"/>
<photo>/RPT/0000718.jpg</photo>
<fo:external-graphic src="'url({photo})'"/>
<Photo>/RPT/0000718.jpg</Photo>
select="/data/Photo"/>


ie selecting <photo> or <Photo> and selecting a data child of the current element or the top level element, which must be called data, of the input file.


since I think I've only seen fragments rather than a runnable example hard to know, but make sure, that the generated fo file has
url(/some.path.to/a/picture.jpg)
and that the path is either absolute or if relative, correct relative the fo file when that is interpreted by the xsl-fo renderer.


David



--
google plus: https:/profiles.google.com/d.p.carlisle

Current Thread