NXBT-866: set replace possible
NXBT-866: adapt test
NXBT-867: don't generate empty xmlns + remove trailing white space in migrated templates + remove blank line in formatted original templates to ease up diff