I have an XSL code that processes some nodes and if some condition is true, before doing apply-template select="." i need to modify current node(add and attribute).
How can i add an attribute to the node before calling apply-template select=".", or it is not possible at all ?