Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
I now have a working system, and in case anyone else has the same problem, this is what I had to do: 1. Use an absolutely minimal xsl:output element in the stylesheet: 2. Create my own serializer based on the standard text serializer, but with a new name and an explicit encoding paramet

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
Nailed it! I had this in my stylesheet: Changing it to ("type" instead of "method") solves the problem! But that shouldn't be, should it? According to XSLT 1.0 and 2.0, the attribute should be "method". Am I missing something here? Cheers, Martin Upayavira wrote: Martin Holmes wrote: I'm having

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
Hi there, When I switch to the XML serializer, I get an empty XML document: with no root element, and the wrong encoding. This is strange; something must be throwing the Xalan parser for a loop, but there's nothing weird at all in the XSL as far as I can see; it's adapted from another file which

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Upayavira
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: type="text/plain"

Re: Generating plain text on Cocoon 2.1.6

2005-05-02 Thread Martin Holmes
Upayavira wrote: you need to show more of the exception stack trace. the bit you showed wasn't the bit that actually held the error. Sorry -- here's the full thing: org.apache.cocoon.ProcessingException: Error executing pipeline.: java.lang.RuntimeException: java.lang.NullPointerException cause:

Re: Generating plain text on Cocoon 2.1.6

2005-05-02 Thread Upayavira
you need to show more of the exception stack trace. the bit you showed wasn't the bit that actually held the error. regards, upayavira - who's shift key has stopped working ;-0 Martin Holmes wrote: I'm having problems generating plain text output (utf-8) on Cocoon 2.1.6. I get a NullPointerExcep

Generating plain text on Cocoon 2.1.6

2005-05-02 Thread Martin Holmes
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: type="text/plain"