Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 78625 invoked by uid 500); 3 Aug 2002 08:51:41 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Delivered-To: moderator for cocoon-users@xml.apache.org Received: (qmail 44564 invoked from network); 31 Jul 2002 08:03:46 -0000 Message-ID: <000801c23868$c827c900$647b0950@cyrilus> From: "Cyril Vidal" To: References: <006c01c23810$75b7b0c0$575ef8c1@cyrilus> <3D473A29.3040602@gmx.de> Subject: Re: pb with http request Date: Wed, 31 Jul 2002 10:02:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N OK thanks! It was because of spurious whitespaces before the xml declaration. It runs well now...;-) Cyril. ----- Original Message ----- From: "Joerg Heinicke" To: Sent: Wednesday, July 31, 2002 3:15 AM Subject: Re: pb with http request > This has nothing to do with the example, it's a common error message, > when having the Xril.ML declaration not as the absolutely first thing in the > XML file. There must not be any whitespaces or other characters in front > of the XML declaration and it has to be in the form as at > http://www.w3.org/TR/REC-xml#sec-prolog-dtd. Watch for case-sensitivity > too. Have a look in all the related files to fix the bug. > > cyril vidal wrote: > > Hy, > > > > I just was trying to run the example wrotten by Steve Punk in "Getting > > started with Cocoon 2" http://www.xml.com/lpt/a/2002/07/10/cocoon2.html > > > > More precisely, the last example that calculates a factorial from a > > numeric value submitted via HTTP POST. > > > > Here's the sitemap: > > > > > > > > > > > > > > > and here's the file mystylesheet.xsl that I've copied in integrality > > from the original source: > > > > > > > > This one seems to be ok, but I can't see whether there are any > whitespaces in the file of course. > > > > > > > > > > > > > > > > > > > > > > > > > When I run this by pointing my browser to http://localhost/mypage?input=5 > > > > I receive the following error message: > > > > *description* _org.apache.cocoon.ProcessingException: Exception in > > creating Transform Handler: org.xml.sax.SAXParseException: The XML > > declaration may only appear at the very beginning of the document._ > > > > _I _don't understand why this occurs. Can you help me please? > > > > Thanks in advance, > > > > Cyril Vidal > > Email: cyril@planetexml.com > > Web: http://www.planetexml.com > > Regards, > > Joerg > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: