how to renumbering positions in xslt
I would like to ask for any idea how to renumbering LINENUM and references in PARENTID by XSLT.
LINENUM should be in correct sequence. Currently there is 1,4,5 because there was used position() which is not correct. LINENUM could be blank if it is child and has refence number in PARENTID. If LINENUM is blank it should not be calculated in sequence. Also there could be only parent record without child.
There is simple xml example.