Revert "HH-46075 remove xml deepcopy before xslt"

This reverts commit d096af472a7aaf5e08424d64c01b74b647d22920.