cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/language/markup/xsp/java xsp.xsl
Date Wed, 26 Mar 2003 16:41:08 GMT
Marcus Crafter wrote:

>Hi Vadim,
>	Does the attached patch fix it ?

No. You forgot type cast :)

> I don't have a test case for the logic sheet.	

Take simple.xsp, replace fragment-variable with dom-variable:
   <capture:dom-variable name="page_part">
     <para>These 2 paragraphs were generated at the start of the XSP, 
and captured for insertion at the end.</para>

     <para>Brought to you by Cocoon at <xsp:expr>new 

Error I'm getting is:

Original Exception: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(
	at org.apache.xalan.transformer.TransformerIdentityImpl.characters(
	at org.apache.cocoon.xml.AbstractXMLPipe.characters(
	at org.apache.cocoon.generation.AbstractServerPage.characters(


Relevant lines from the source:
    // Create a DOMBuilder that will feed a DocumentFragment
    DocumentFragment fragment_N1001F =
    DOMBuilder builder_N1001F = new DOMBuilder(fragment_N1001F);
    try {
      this.contentHandler = builder_N1001F;
      this.lexicalHandler = builder_N1001F;
        this.characters("\n     ");

Seems like an issue with DOMBuilder. Anybody has an idea how to fix this?


View raw message