added localxmltemplate for generation