I have an xml(given below) in which If a node(ref_name_1, ref_name_2, ref_name_3) contains some text then we'll generate the corresponding node using xslt and assign a id number for example 1, 2 etc in the attribute. I tried to find out the solution but didn't find anything relevant to this one not even on stackoverflow so a little help would be highly appreciable.I have an xml(given below) in which If a node(r