XSL: Parsing XML to HTML - How do I use value-of an element data as an html attribute?

Posted by AtomR on Stack Overflow See other posts from Stack Overflow or by AtomR
Published on 2010-05-19T15:12:14Z Indexed on 2010/05/20 14:40 UTC
Read the original article Hit count: 268

Filed under:
|
|
|
<input src="LOGO.JPG" type="image" name="imagem">

I have an xml element that contains the image path that needs to be displayed in HTML after the parse. <xsl:value-of select="image"/> returns the string that is stored in the image element but how can I use it to make that string be the src atribute value in an html tag? I tried <input src="<xsl:value-of select="image"/>" type="image" name="imagem"> but obviously that doesn't work so how can it be done?

I hope I was clear in my question. Please help!

© Stack Overflow or respective owner

Related posts about xsl

Related posts about Xml