trying to get last from the tag if data of last line is equal to personal means then need to populate as 1100 else what ever data presented that it should to be populated
here is my below xml:
<tag>
<name>20K</name>
<value>540211000000100155001
0100155XXXXXX
0100156XXXXX
0100157XXXXXXX
0100159XXXXXXXX
personal</value>
</tag>
how to use a logic in xslt can any one guide me
I. Here is a short and simple way to do this in XSLT 2.0:
When this transformation is applied to the provided XML document:
the wanted, correct result is produced:
II. XSLT 1.0 solution
when this transformation is applied to the same XML document (above), again the same correct result is produced: