Thanks kay,the above proposed solution doesnt work for me.sorry for not being clear.I will try to explain again
R,N,Y values are determined from the input XML by the value of colorInd.
when colorInd=0 It is N
=1 It is Y
=2 It is R
And in decision table in ColorInd column where you see (Eg: R>=1,N>=0,Y=1 and N>=0) are all different conditions to display those code1,code2,code3 values.
so in order to validate those different coditions and display dynamically according to those conditions first i need to determine the count of R's count of N's and count of Y's in the input XML.If the Ind=1 ,Once i determine the occurences of these RNY values i need to apply the different conditions and display corresponding values
For example if (R>=1 and N>=0) i.e when R occurs one or more times and N occurs 0 or more times in input xml . i need to display TB N5 AB
Input XML
Code:
<Users>
<User>
<Ind>1</Ind>
<Color>
..
<ColorInd>1</ColorInd>
</Color>
<Color>
..
<ColorInd>2</ColorInd>
</Color>
.....
<!-- Color node can occur n times-->
</User>
</Users>
sorry i posted the wrong xml in my previous post "placed Ind at wrong level"
so If Ind is "0" or "99" i can directly display corresponding code1,2,3 values and need not to verify any conditions
Let me know if iam not clear.
Thanks a lot