xsl-list
[Top] [All Lists]

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

2012-04-02 17:43:29
please don't take things off list.

It is a good idea when debugging to get the xslt to generate the xsl-fo
_as a file_ and look at that in a text editor to check you have
generated what you intend rather than allowing it to pass straight to
the fo renderer, and perhaps fail with syntax errors. In this case, from

<fo:external-graphic src="'url(photoimg)'" content-height="50pt"
content-width="50pt"/>

you would find this has generated

<fo:external-graphic src="'url(photoimg)'" content-height="50pt"
content-width="50pt"/>

with that literal string as the URL so that is looking for a file with
single quotes and brackets in its name.

You want

<fo:external-graphic src="url({photoimg})" content-height="50pt"
content-width="50pt"/>


where the {} is a attribute value template syntax causing the xpath to be evaluated at that point rather than taken as literal text.

or perhaps some/path/to/photoimg depending on where that element is
relative to the current node at that point in the xslt.


David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--