[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: is it possible to resize an image to display small

Subject: Re: 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
Re:  is it possible to resize an image to display small
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.