XSL: Parsing XML to HTML - How do I use value-of an element data as an html attribute?
- by AtomR
<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!