[162321] provide a new dtd file template <?xml version="1.0" encoding="UTF-8"?>
diff --git a/bundles/org.eclipse.wst.dtd.ui/plugin.xml b/bundles/org.eclipse.wst.dtd.ui/plugin.xml
index ec20712..8baf206 100644
--- a/bundles/org.eclipse.wst.dtd.ui/plugin.xml
+++ b/bundles/org.eclipse.wst.dtd.ui/plugin.xml
@@ -217,6 +217,10 @@
 			class="org.eclipse.wst.dtd.ui.internal.templates.TemplateContextTypeDTD"
 			id="dtd_new">
 		</contextType>
+  <include
+        file="templates/dtddefault-templates.xml"
+        translations="$nl$/templates/dtddefault-templates.properties">
+  </include>
 	</extension>
 
    <extension
diff --git a/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/templates/TemplateContextTypeDTD.java b/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/templates/TemplateContextTypeDTD.java
index 403c3ad..c63d593 100644
--- a/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/templates/TemplateContextTypeDTD.java
+++ b/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/internal/templates/TemplateContextTypeDTD.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
+ * Copyright (c) 2005, 2007 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -7,11 +7,13 @@
  * 
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     David Carver, STAR - added Encoding Content Resolver, bug 162321
  *******************************************************************************/
 package org.eclipse.wst.dtd.ui.internal.templates;
 
 import org.eclipse.jface.text.templates.GlobalTemplateVariables;
 import org.eclipse.jface.text.templates.TemplateContextType;
+import org.eclipse.wst.xml.ui.internal.templates.EncodingTemplateVariableResolverXML;
 
 /**
  * Base class for DTD template context types. Templates of this context type
@@ -29,5 +31,6 @@
 		addResolver(new GlobalTemplateVariables.User());
 		addResolver(new GlobalTemplateVariables.WordSelection());
 		addResolver(new GlobalTemplateVariables.Year());
+		addResolver(new EncodingTemplateVariableResolverXML());
 	}
 }
diff --git a/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.properties b/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.properties
new file mode 100644
index 0000000..89682b9
--- /dev/null
+++ b/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.properties
@@ -0,0 +1,13 @@
+###############################################################################
+# Copyright (c) 2007 STAR Standards for Technology in Automotive Retail
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+#     David Carver, STAR - initial API and implementation, bug 162321
+#     
+###############################################################################
+Templates.xmldeclaration.name=xml declaration
+Templates.xmldeclaration.desc=xml declaration
diff --git a/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.xml b/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.xml
new file mode 100644
index 0000000..b2c6422
--- /dev/null
+++ b/bundles/org.eclipse.wst.dtd.ui/templates/dtddefault-templates.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*******************************************************************************
+ * Copyright (c) 2007 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     David Carver - STAR - initial contribution, bug 162321
+ *******************************************************************************/
+ -->
+<templates>
+  <template name="%Templates.xmldeclaration.name" description="%Templates.xmldeclaration.desc" id="org.eclipse.wst.dtd.ui.internal.templates.xmldeclaration" context="dtd_new" enabled="true">&lt;?xml version="1.0" encoding="${encoding}"?&gt;</template>
+</templates>