Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 53065 invoked from network); 3 May 2005 08:32:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 08:32:32 -0000 Received: (qmail 50737 invoked by uid 500); 3 May 2005 08:31:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 50690 invoked by uid 500); 3 May 2005 08:31:07 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 50434 invoked by uid 99); 3 May 2005 08:31:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from odoko.co.uk (HELO odoko.co.uk) (80.68.92.132) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 01:31:05 -0700 Received: from elfriedeholmes.demon.co.uk ([80.177.165.206] helo=[10.0.0.3]) by odoko.co.uk with asmtp (Exim 4.34) id 1DSspN-0001PP-LN for users@cocoon.apache.org; Tue, 03 May 2005 09:32:25 +0100 Message-ID: <42773657.7060004@upaya.co.uk> Date: Tue, 03 May 2005 09:29:11 +0100 From: Upayavira User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Generating plain text on Cocoon 2.1.6 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Martin Holmes wrote: > I'm having problems generating plain text output (utf-8) on Cocoon > 2.1.6. I get a NullPointerException. The scenario is: > > > > > > > > > The XML files are UTF-8 and the XSL file starts out like this: > > > > > > name="cocoon-format">type="text/plain" > > > > > > The XSL works fine running locally in oXygen with Saxon 6.5.3. I've > tried removing the processing instruction, but it makes no difference. > I've also tried adding a UTF-8 text serializer to the sitemap like this: > > name="text" src="org.apache.cocoon.serialization.TextSerializer"> > UTF-8 > > > but no joy. > > I've included the top few lines of the stack trace below. Can anyone > suggest what the problem might be? Thanks for the other stack trace. Unfortunately, those ones are usually very difficult to debug, as the error shows up in Xalan as a null pointer exception, which was actually triggered by something much further back in the pipeline. Now, have you tried replacing with What do you see? Does it produce your text content, but wrapped in XML? Also, the processing instruction, to my knowledge, won't make any difference. It looks like a Cocoon 1.x instruction, that Cocoon 2 doesn't know about. Configuration like that happens in the sitemap, not in processing instructions. Regards, Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org