emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Richard Riley <rileyrg@googlemail.com>
Cc: nicholas.dokos@hp.com,
	Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: xml statement in html and apache error
Date: Thu, 07 Apr 2011 00:48:02 -0400	[thread overview]
Message-ID: <7928.1302151682@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Richard Riley <rileyrg@googlemail.com> of "Thu, 07 Apr 2011 05:36:50 +0200." <jy4o6ag2b1.fsf@news.eternal-september.org>

Richard Riley <rileyrg@googlemail.com> 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" . "<?xml version=\"1.0\" encoding=\"%s\"?>"))
> `----
> 

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" . "<?xml version=\"1.0\" encoding=\"%s\"?>")
 ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))
--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.

  reply	other threads:[~2011-04-07  4:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07  3:36 xml statement in html and apache error Richard Riley
2011-04-07  4:48 ` Nick Dokos [this message]
2011-04-07  9:18   ` Richard Riley
2011-04-07 14:00     ` Nick Dokos
2011-04-07 17:52       ` Nick Dokos
2011-06-26 18:15     ` David Maus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7928.1302151682@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrg@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).