diff --git a/Doc/Makefile b/Doc/Makefile
index e156560ffc45100fbf9e9718c263ea1b8967734d..c74b10fb9e02b33d9f1a13f537c2be07ef230be6 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -64,11 +64,14 @@ ${BUILDROOT}/${BUILDNAVI}/index.html: ${BUILDROOT}/${SCRIPTBASENAME}.xml
 	cd  ${BUILDROOT}; mkdir -p ${BUILDNAVI};\
           /usr/share/xmlmind/bin/xxetool convert -p eclipse.plugin.id  $(PLUGINID) ${PPARAM} db5.toEclipseHelp \
            ${SCRIPTBASENAME}.xml -u $(BUILDNAVI);\
+	perl -i -p -e '$$/=undef;s/\n[ \t]*<!DOCTYPE[^>]+\n[^>]*>$$//m' ${BUILDNAVI}/*.xml
+	cp -r META-INF ${BUILDROOT}/${BUILDNAVI} 
 
 ${BUILDROOT}/${BUILDNONAVI}/index.html: ${BUILDROOT}/${SCRIPTBASENAME}.xml
 	cd  ${BUILDROOT}; mkdir -p ${BUILDNONAVI};\
           /usr/share/xmlmind/bin/xxetool convert -p suppress.navigation 1 -p eclipse.plugin.id  $(PLUGINID) ${PPARAM} db5.toEclipseHelp \
           ${SCRIPTBASENAME}.xml -u $(BUILDNONAVI);
+	perl -i -p -e '$$/=undef;s/\n[ \t]*<!DOCTYPE[^>]+\n[^>]*>$$//m' ${BUILDNONAVI}/*.xml
 
 ${BUILDROOT}/${BUILDNAVI}/printversion.pdf: ${BUILDROOT}/${SCRIPTBASENAME}_print.xml
 	cd ${BUILDROOT};\
@@ -87,4 +90,4 @@ install:#jdoc
 clean:
 	rm -rf ${BUILDROOT}
 
-#end
+#end
\ No newline at end of file