EDN Admin
Well-known member
Hi,<br/>
<br/>
I have a scenario like.... If the image is present then display the image and fallowed by text like below:<br/>
<br/>
<div class1><br/>
<div class2><br/>
<br/>
Image<br/>
<br/>
<br/>
(some text)<br/>
<br/>
..................Main div close<br/>
<br/>
<br/>
If image is not there display only text.<br/>
<br/>
<div class1><br/>
<br/>
(some text)<br/>
<br/>
<br/>
<br/>
below is the xml:<br/>
<br/>
<br/>
<root><br/>
<br/>
<child1><br/>
<br/>
<body><br/>
<text><br/>
sometext<br/>
</text><br/>
<image><br/>
img<br/>
</image><br/>
</child1><br/>
<child2><br/>
...<br/>
<child2><br/>
<br/>
can we achieve this with XSLT?
View the full article
<br/>
I have a scenario like.... If the image is present then display the image and fallowed by text like below:<br/>
<br/>
<div class1><br/>
<div class2><br/>
<br/>
Image<br/>
<br/>
<br/>
(some text)<br/>
<br/>
..................Main div close<br/>
<br/>
<br/>
If image is not there display only text.<br/>
<br/>
<div class1><br/>
<br/>
(some text)<br/>
<br/>
<br/>
<br/>
below is the xml:<br/>
<br/>
<br/>
<root><br/>
<br/>
<child1><br/>
<br/>
<body><br/>
<text><br/>
sometext<br/>
</text><br/>
<image><br/>
img<br/>
</image><br/>
</child1><br/>
<child2><br/>
...<br/>
<child2><br/>
<br/>
can we achieve this with XSLT?
View the full article