RTF template coding, XSLT coding
- by sujith
I have the below requirement
<data>
<dataset1>
<number>1</number>
<name>red</name>
<number>2</number>
<name>Yellow</name>
<number>3</number>
<name>black</name>
<number>4</number>
<name>Violet</name>
</dataset1>
<dataset2>
<index>1</index>
<index>2</index>
<index>3</index>
<index>4</index>
</dataset2>
</data>
I need to loop through dataset2 take the index value, compare it with the value of number tag in dataset1. If a match occurs then display value of corresponding name tag. I need to get the output in rtf format. Please give BI tags or relevent xslt code to do the same. Thanks in advance.