tags:

views:

29

answers:

1

Hi there,

I want to add an image to my PDF output. The problem ist, that

<fo:external-graphic src="url('URL here')"/>

will accept nothing but an URL. The link to the image I want to add however is derived from another value inside the XML document being transformed.

Is there any way to generate image URL dynamiclly?

Thanks in advance sebastian

+4  A: 

Use Attribute Value Template

An attribute value template consists of an alternating sequence of fixed parts and variable parts. A variable part consists of an XPath expression enclosed in curly brackets ({}). A fixed part may contain any characters, except that a left curly bracket must be written as {{ and a right curly bracket must be written as }}.

Alejandro
Here's an example: http://stackoverflow.com/questions/3840326/set-a-image-url-dynamically-into-a-xsl-file/3912335#3912335
DevNull
@DevNull: good example. I'll add this as duplicate.
Alejandro