xsl:for-each
hello friends,
i have an xml file like this,
<Msge>
<md>
<itm attr1="abc">abc</itm>
.
.
</md>
<msg>
<thing>abc</thing>
</msg>
<msg>
<thing>def</thing>
</msg>
</Msge>
now i want to write an xsltstatement to compare the value of <thing> node and each value of <itm> node, and then display the attr1 value of the <itm> node.
i tried this condn
<xsl:for-each select="/Msge/md/itm">
<xsl:if test="<xsl:value-of select="/Msge/md/itm">=<xsl:value-of select="/Msge/msg/thing">">
<xsl:value-of select="/Msge/md/item/@attr1"/>
</xsl:if>
</xsl:for-each>
but i didnt get the ouptut.
how can i solve this problem.
regards
bharath
|