Hi Experts,
i have a requierment where i need to take value from same segment when condition matches.
Input:
<E1EDP05 SEGMENT="1">
<ALCKZ>+</ALCKZ>
<KSCHL>YT14</KSCHL>
<KOTXT>TP: TotalValue</KOTXT>
<BETRG>35.92</BETRG>
<KPERC>100.000</KPERC>
<MWSKZ>JS</MWSKZ>
<KOBAS>6.48</KOBAS>
</E1EDP05>
<E1EDP05 SEGMENT="1">
<ALCKZ>+</ALCKZ>
<KSCHL>YTGT</KSCHL>
<BETRG>6.48</BETRG>
<KRATE>220.00</KRATE>
<KOBAS>2.944</KOBAS>
</E1EDP05>
when KSCHL = YT14 then i need to take <BETRG>35.92</BETRG> value and when KSCHL = YTGT then i need to take <BETRG>6.48</BETRG> value
i am using below code
<xsl:for-each select="$nodes_in[KSCHL ='YT14 ']">
<xsl:value-of select= '$nodes_in/BETRG' />
</xsl:for-each>
but i am getting ALL values of BETRG
kindly help