Adding common attribute to all chains in recursion
问题 A follow-up question to: Limit recursion with one deepest loop and assign exact id to all elements This code collects recursion. It is necessary that at the same time all recursion elements receive a COMMON-ID attribute with the value from the first element of the chain. This first element has also an attribue STATUS="0" . Other elements have STATUS="1" (for solution it may be useful). 1-source <root> <object id="a" id-3="COMMON-ID-1" STATUS="0"/> <object id="b" id-3="COMMON-ID-2" STATUS="0"/