I have a XML like this
<root>
<name>Smith</name>
<info>
<name>image</name>
<value>smith.jpg</value>
</info>
<info>
<name>birth</name>
<value>2000-10-10</value>
</info>
<info>
<name>moreinfo</name>
<value>something1</value>
</info>
<info>
<name>moreinfo2</name>
<value>something2</value>
</info>
</root>
how XSLT to check if info/name/text() = image, then it will display info/name/value()?
<div>
<xsl:value-of select="root/name" />
birth: xxxx
</div>