tags:

views:

71

answers:

1

Hi, I have an XML in the form

<root>
<image> C:/images/image1.jpg </image>
</root>

Now i need to use this path (C:/images/image1.jpg) in my XSL-FO in such a way that it looks like,

<fo:external-graphic src="C:/images/image1.jpg" />

How i can achieve that in my XSL-FO using the path from XML??

+2  A: 
<xsl:template match="image">
  <fo:external-graphic src="{normalize-space()}" />
</xsl:template>
Tomalak
Thanks for your help.. But I need to add the double quotes also..
liaK
I think your example might be missing something then. Tomalek's code produces the output shown.
Nic Gibson
Yep.. Its working... Thanks fellas...
liaK