I have a loop in xsl and depending upon the attribute value, i want to write some text.
XML is as follows:
<ROWS><ROW oid="28439"><EFL eid="8" fid="27672" count="2">
<MK id="3" val="0"/>
<MK id="11" val="0578678 "/> </ROW></ROWS>
XSL is as follows:
<xsl:for-each select="EFL/MK">
<xsl:value-of select="@id" />:
<xsl:value-of select="@val" />
</xsl:for-each>
I want to have the following output:
3:0 & 11:057868
"&" is needed if there are more than one "MK" tags. Count of "MK" tags is available in "Count" attribute of "Row" tag.
Can you please tell me how to put the following if condition in XSL:
if Count Atrribute available in Row tag has a value greater than 1 Then Display "&" EndIF
Thanks