Am Mittwoch, 4. Juni 2014, 17:04:14 schrieb Eric Abrahamsen: > Eric S Fraga <e.fr...@ucl.ac.uk> writes: > > On Tuesday, 3 Jun 2014 at 22:14, AW wrote: > > > > [...] > > > >> Hi, > >> > >> thank you, I started again digging into this strange thing and the > >> culprit > >> seems the first line of the html-file: > >> > >> <?xml version="1.0" encoding="utf-8"?> > >> > >> If I remove this line, no error. And removing simply > > > > Have a look at > > > > ,----[ C-h v org-html-xml-declaration RET ] > > > > | org-html-xml-declaration is a variable defined in `ox-html.el'. > > | Its value is > > | (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") > > | > > | ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" > > | ?>\"; ?>"))> | > > | Documentation: > > | The extension for exported HTML files. > > | %s will be replaced with the charset of the exported file. > > | This may be a string, or an alist with export extensions > > | and corresponding declarations. > > | > > | This declaration only applies when exporting to XHTML. > > | > > | You can customize this variable. > > | > > | [back] > > Seems like simply exporting as html5 might solve the problem.
Yes, it does, thank you. But the price is that tabulars lose the frames and lines. I did not invest whether due to export without those elements or because Word had issues with html5. So I think I stick for the time being with customization of org-html-xml- declaration.