How do I use XSL to display an image in HTML from my XML file?

sporkatron

New member
I'm working on an assignment, and for my website I want to include images in my xml data. So how can I use XSL to get the value (image file name) from the XML such that I can display it as an image on my page / is it even possible. Nothings turned up from my extensive googling XD
Nevermind, more googling uncovered that you use curly braces around the element name to use it in an attribute value:
<img src="{image}" />
Yay :D
 
Back
Top