apply template to cdm_NonUniformDomain