
April 1st, 2003, 10:16 AM
|
|
Contributing User
|
|
Join Date: Sep 2001
Location: NJ
Posts: 428
  
Time spent in forums: 11 h 34 m 8 sec
Reputation Power: 10
|
|
|
XSL: value-of as src attribute
I'm kind of new to XML and XSL so maybe my logic is off somewhere. But i have and xml file with an node that contains an image file name. I"m running and XSL transformation on this file, and I'd like the image file name to be the src attribute of my <img> tag. Which would look something like this in XSL in theory, although I know it isn't well formed.
PHP Code:
<img src="<xsl:value-of select="LoResImage"/>"/>
Like i said, i know this isn't valid XML, but i put it to show the idea of what i want to do. How can i achieve this end result? I did try this:
PHP Code:
<![CDATA[<img src="]]><xsl:value-of select="loResImage"/><![CDATA[">]]>
but of course that didn't work because that translates the < and > into < and > respectively. Any help here would be greatly appreciated. thanks
|