add the templates and dtd