[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|