From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: xml statement in html and apache error Date: Thu, 07 Apr 2011 00:48:02 -0400 Message-ID: <7928.1302151682@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=48684 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7h93-0007m5-Oo for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 00:48:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7h92-0008Jg-B6 for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 00:48:37 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:61390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7h92-0008JB-43 for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 00:48:36 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LJ900LHTMO25O20@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 23:48:03 -0500 (CDT) In-reply-to: Message from Richard Riley of "Thu, 07 Apr 2011 05:36:50 +0200." 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: Richard Riley Cc: nicholas.dokos@hp.com, Emacs-orgmode mailing list Richard Riley wrote: > > I cant really give too many details or suggestions as to why it failed, > but the default xml string at the top of export to html files was > causing apache to fail. > > ,---- > | Parse error: syntax error, unexpected T_STRING in > | /home/shamrock/common-files/webs/richardriley.net/projects/emacs/index.html > | on line 1 > `---- > > I simply removed the html xml declaration, > > ,---- > | org-export-html-xml-declaration is a variable defined in `org-html.el'. > | Its value is > | (("php" . "")) > `---- > This looks wrong (even though unrelated to the problem): in my setup I get --8<---------------cut here---------------start------------->8--- org-export-html-xml-declaration is a variable defined in `org-html.el'. Its value is (("html" . "") ("php" . "\"; ?>")) --8<---------------cut here---------------end--------------->8--- so deleting the html entry should leave you with the second line. You seem to have a mash of the two entries instead. > reexported my private little web, reloaded apache and all was > well. Which was cool considering I hadnt exported it from the org data > for all of about 2 years! > > Far from thought out, almost certainly not "correct" I am sure, but got > my web back working. > > Possibly someone else can comment on cause/effect. > Well, I exported a toy project and despite the presence of the xml headers, my apache is not complaining at all. I also spot-checked a couple of files on orgmode.org and they have the xml header, but apache seems to deliver them without a problem. Which version of apache are you running? Mine is 2.2.16. Nick PS. The exercise also uncovered an org bug but I'll post that as a separate message.