Put DTDs and namespaces in thymeleaf templates