From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Exporting HTML to MS Word Date: Wed, 02 Jun 2010 16:23:45 +0200 Message-ID: <87d3w9pl72.fsf@gmx.de> References: <20100602133149.GB21592@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60562 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJorQ-0000fo-Jm for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 10:24:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJorL-0003Cd-VW for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 10:24:00 -0400 Received: from mail.gmx.net ([213.165.64.20]:60754) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OJorL-0003Bv-Ex for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 10:23:55 -0400 In-Reply-To: <20100602133149.GB21592@thinkpad.adamsinfoserv.com> (Russell Adams's message of "Wed, 2 Jun 2010 08:31:49 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Russell Adams writes: > FYI, > > I've found with recent versions Word 2003 fails to open an HTML > export. It opens it in XML mode which none of my end users understand. > > If I delete the XML header at the top, and make the first line the > tag, it works fine. > > Perhaps that should be configurable in the export template? M-x customize-variable RET org-export-html-xml-declaration RET and set it to an empty string? If you need to remove the the DOCTYPE too, you could use the `org-export-html-final-hook' like this: (add-hook 'org-export-html-final-hook (lambda () (let ((kill-whole-line t)) (goto-char (point-min)) (kill-line 2)))) HTH, Sebastian