flyclassic22
Technical User
Hi, I would like to ask how to display an image with XSL from a xml file which content the tag
<image1>abc.gif</image1>
i know about
<image><xsl:attribute name="src"><xsl:value-of select="//image1"/></xsl:attribute></image>
but can i do any conditional statement to display the image only when the <image1> tag content values.
I mean let say my particular xml file does not contain any image in <image1> tag, it will have a broken link in that xsl. So is there anyway to avoid it.
Or is there any conditional statement that could detect if the <image1> tag exist before displaying? (this will be great for me)
Thanks alot
Regards..
<image1>abc.gif</image1>
i know about
<image><xsl:attribute name="src"><xsl:value-of select="//image1"/></xsl:attribute></image>
but can i do any conditional statement to display the image only when the <image1> tag content values.
I mean let say my particular xml file does not contain any image in <image1> tag, it will have a broken link in that xsl. So is there anyway to avoid it.
Or is there any conditional statement that could detect if the <image1> tag exist before displaying? (this will be great for me)
Thanks alot
Regards..