Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 28069 invoked from network); 24 Mar 2004 01:49:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 01:49:19 -0000 Received: (qmail 73391 invoked by uid 500); 24 Mar 2004 01:48:59 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 73343 invoked by uid 500); 24 Mar 2004 01:48:59 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 73328 invoked from network); 24 Mar 2004 01:48:59 -0000 Received: from unknown (HELO mail31.megamailservers.com) (216.251.36.31) by daedalus.apache.org with SMTP; 24 Mar 2004 01:48:59 -0000 X-Authenticated-User: lyteck.lynhiavu.com Received: from lyteck (c-24-10-50-137.client.comcast.net [24.10.50.137]) (authenticated bits=0) by mail31.megamailservers.com (8.12.10/8.12.9) with ESMTP id i2O1n6BC023615 for ; Tue, 23 Mar 2004 20:49:07 -0500 From: "Lyteck Lynhiavu" To: Subject: The XML declaration may only appear at the very beginning of the document Date: Tue, 23 Mar 2004 17:48:32 -0500 Message-ID: <000701c41128$f849b2c0$89320a18@lyteck> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01C410FF.0F73AAC0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C410FF.0F73AAC0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I am trying to publish xml to pdf. the process is established and works = most of the time. Would someone know why I sometimes get the cocoon error "The XML = declaration may only appear at the very beginning of the document." on perfecly = valid XML? Description:org.apache.cocoon.ProcessingException: Could not read = resource file:/D:/Publisher/jakarta-tomcat-4.0.1/webapps/cocoon/test/test.xml: org.xml.sax.SAXParseException: The XML declaration may only appear at = the very beginning of the document. The XML declaration is indeed at the top and a sample fragment is below: ]> I hope this is a common enough error with a resolution? The cocoon server is Windows to which I am supplying zipped xml/jpgs remotely via the browser. I don't have much information beyond that. Thanks very much, Lyteck ------=_NextPart_000_0008_01C410FF.0F73AAC0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Message
I am trying to=20 publish xml to pdf. the process is=20 established and works most of the = time.

Would = someone know why=20 I sometimes get the cocoon error "The XML declaration may only = appear at=20 the very beginning of the document." on perfecly valid = XML?

Description:org.apache.cocoon.ProcessingException:=20 Could not read resource=20 file:/D:/Publisher/jakarta-tomcat-4.0.1/webapps/cocoon/test/test.xml: = org.xml.sax.SAXParseException: The=20 XML declaration may only appear at the very beginning of the=20 document.

The XML = declaration is indeed at the top and a sample = fragment is=20 below:

<?xml=20 version=3D"1.0" encoding=3D"utf-8"?>
<!DOCTYPE book = PUBLIC "company=20 x//DTD company x Technical Publication//EN" "c:\documentum\xml=20 applications\companyx.dtd"
[<!ENTITY fr PUBLIC "-//company = x//Contact=20 fr//EN" "fr.xml">
<!ENTITY uk PUBLIC "-//company x//Contact = uk//EN"=20 "uk.xml">
]>
<!--ArborText, Inc., 1988-2001,=20 v.4002-->

I hope this is=20 a common enough error with a resolution?

The cocoon server is = Windows to which I=20 am supplying zipped xml/jpgs=20 remotely via the = browser. I=20 don't have much information beyond that.

Thanks very=20 much, Lyteck

------=_NextPart_000_0008_01C410FF.0F73AAC0--