Set correct XML namespaces in templates.