I am doing parallel development on Cocoon-2.0.4 and Cocoon-2.1.

Saxon was working fine with both versions until one or two weeks ago
when it stopped working with new snapshots of Cocoon-2.1.

<side-note>
  The break happened about when the fixes for XSP's not recompiling
  were put in the CVS, so I have not been able to test those fixes yet
  on Cocoon-2.1.  On Cocoon-2.0.4 the recompiling fix almost works
  for me.  The cache timestamp seems to have a resolution of one minute.
  It works, but slows down the coding-testing cycle. Would this be hard
  to fix?
</side-note>

Problem details for Saxon not working with Cocoon-2.1:

Tested on 12-12-2002 Cocoon-2.1 snapshot with both:
  Saxon-7.3 (patched for element bug)
  Saxon-7.3.1 (baseline)

>From cocoon.xconf:

  <xslt-processor logger="core.xslt-processor">
     <parameter name="use-store" value="false"/> 
     <parameter name="incremental-processing" value="true"/>
  </xslt-processor>

  <component
    role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon"
    class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
    logger="core.xslt-processor-Saxon">
    <parameter name="use-store" value="true"/>
    <parameter name="incremental-processing" value="false"/>
    <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
  </component>

>From sitemap.xmap:

  <map:transformers default="xslt-Saxon">

      <map:transformer name="xslt-Saxon"
        src="org.apache.cocoon.transformation.TraxTransformer"
        logger="sitemap.transformer.xslt-processor-Saxon"
        pool-max="32" pool-min="8" pool-grow="2">
        <use-request-parameters>false</use-request-parameters>
        <use-browser-capabilities-db>false</use-browser-capabilities-db>
        
<xslt-processor-role>org.apache.cocoon.components.xslt.XSLTProcessor/Saxon</xslt-processor-role>
      </map:transformer>

When I request:
http://localhost:8080/cocoon/samples/welcome
This warning message shows up in the logs:

  WARN    (2002-12-13) 10:54.31:169   [sitemap.serializer.html] 
(/cocoon-1212-1/samples/xsp/hello) Thread-24/AbstractTextSerializer:
  Cannot know if transformer needs namespaces attributes - assuming NO.
  org.xml.sax.SAXException: Saxon requires an XML parser that reports the QName of 
each element
        at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:173)
        at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:131)
        at 
org.apache.cocoon.serialization.AbstractTextSerializer.needsNamespacesAsAttributes(AbstractTextSerializer.java:342)
        at 
org.apache.cocoon.serialization.AbstractTextSerializer.configure(AbstractTextSerializer.java:260)
        at 
org.apache.cocoon.serialization.HTMLSerializer.configure(HTMLSerializer.java:74)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)

When I request:
http://localhost:8080/cocoon/samples/xsp/hello
This error message shows in the browser:

  Error: 500
  Location: /cocoon-1212-1/samples/xsp/hello
  Internal Servlet Error:

  java.lang.StackOverflowError
        at net.sf.saxon.om.NamePool.allocate(NamePool.java:413)
        at net.sf.saxon.event.ContentEmitter.getNameCode(ContentEmitter.java:181)
        at net.sf.saxon.event.ContentEmitter.startElement(ContentEmitter.java:131)
        at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
        at 
org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.closeStartTag(SAXXMLOutput.java:312)
        at 
org.apache.xalan.xsltc.runtime.output.SAXXMLOutput.endElement(SAXXMLOutput.java:205)
        at error2html.returns2br()
        at error2html.returns2br()
This last line repeats probably about 100 times.

Tim



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to