Robby Pelssers wrote:
I actually do the same but not 1 one go... I split my transformations in
multiple sequential includes and that gives me no problem:
<map:match pattern="datasheet_mockup">
<map:generate src="data/datasheet_mockup.xml" label="step-1"/>
<map:transform type="cinclude" label="step-2"/> <!-- Include
<PackageID> -->
<map:transform src="xslt/includePackageAndProductXml.xslt"
label="step-3"/>
<map:transform type="cinclude" label="step-4"/> <!-- Include
actual Package and Product xml -->
<map:transform src="xslt/addGroupId.xslt" type="saxon"
label="step-5"/>
<map:transform src="xslt/createMapAndTopics.xslt" type="saxon"
label="step-6"/>
<map:transform type="cinclude" label="step-7"/> <!-- include
BoxDimensions -->
<map:transform src="xslt/replaceBoxDimensions.xslt" type="saxon"
label="step-8"/>
<map:transform src="xslt/cleanup.xslt" type="saxon"/>
<map:serialize type="xml"/>
</map:match>
Maybe this won't work for your usecase but it's worthwile considering.
Robby
-----Original Message-----
From: Anish [mailto:[email protected]]
Sent: Tuesday, December 08, 2009 1:10 PM
To: [email protected]
Subject: Problem with <i:include>
Hi All
I'm trying to include content from a pipeline into an XSLT using:
<i:include src="cocoon://root/sub/mypattern.html"
xmlns:i="http://apache.org/cocoon/include/1.0">
while executing it gives:
java.lang.StackOverflowError
java.util.HashMap.get(HashMap.java:343)
org.apache.cocoon.environment.AbstractEnvironment.getAttribute(AbstractE
nvironment.java:444)
org.apache.cocoon.environment.wrapper.EnvironmentWrapper.getAttribute(En
vironmentWrapper.java:415)
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.getAttrib
ute(MutableEnvironmentFacade.java:227)
There is a recursive call in the XSLT which again calls same pipeline to
include, to avoid that I have set (in the pipeline):
<map:parameter name="recursive" value="false"/>
Still it's causing the stack to overflow. I'm using Cocoon 2.1.10 on
Tomcat 5.5.17.
Please suggest.
Thanks Robby,
Actually I was using "include"
(org.apache.cocoon.transformation.IncludeTransformer) transformer. I'm
not very much clear about the difference between "include" and
"cinclude" (org.apache.cocoon.transformation.CIncludeTransformer).
Also I don't need recursive call. At the time of include I just want to
include it once (the first level only).
Please suggest.
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]