cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Dolg <>
Subject Re: C3: Xalan runtime error when using include and xslt transformers back to back in pipeline
Date Sun, 22 Mar 2009 13:49:25 GMT
Okay, here's what I did.


      <map:match pattern="data/done">
        <map:generate src="bug-fixing/BasicOperationResponse.xml" />
        <map:transform type="include" />
        <map:transform src="bug-fixing/referenceNodeCRUD.xslt" />
        <map:serialize type="xml" />


<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:i="">
    <i:include src="servlet:/aggregation/sub-request"/>
    <i:include src="servlet:/aggregation/sub-request"/>
    <i:include src="servlet:/aggregation/sub-request"/>

(I adjusted the URLs of the includes to something that already existed 
in the sample-app; shouldn't make a difference though)


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="" version="1.0">
  <xsl:output method="html"/>  

  <xsl:template match="/">
       <xsl:copy-of select="/response"/>

(just something very primitive)

When I call this pipeline (http:/localhost:8890/data/done) I get just 
the same exception:

<exception-report class="org.apache.cocoon.pipeline.ProcessingException" timestamp="Sun,
22 Mar 2009 14:33:39 +0100">
Can't parse url connection file:/C:/work/cocoon-3/trunk/cocoon-sample/src/main/resources/COB-INF/bug-fixing/BasicOperationResponse.xml
org.apache.cocoon.pipeline.ProcessingException: Can't parse url connection file:/C:/work/cocoon-3/trunk/cocoon-sample/src/main/resources/COB-INF/bug-fixing/BasicOperationResponse.xml
    at org.apache.cocoon.sax.util.XMLUtils.toSax(
    at org.apache.cocoon.sax.component.FileGenerator.execute(
    at org.apache.cocoon.pipeline.AbstractPipeline.invokeStarter(
    at org.apache.cocoon.pipeline.CachingPipeline.execute(
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

However if I remove the "<xsl:output method="html"/>" from the XLST 
everything works fine.

Hope this helps...


Sorry for all this text.
I wanted to send the files as attachments but last time I did this there 
was a turmoil because some people were afraid their hard disks might 
fill up or something...

View raw message