Element substitution in the source tree