cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Gaffga (triplemind.com)" <cgaf...@triplemind.com>
Subject Re: map:aggregate with flow-content
Date Mon, 09 Mar 2009 18:06:27 GMT
is it possible, that map:aggregate processes it's elements in parallel?
coz this problem reminds me of the never solved issue
https://issues.apache.org/jira/browse/COCOON-2216
We had quite some hassle with the injected object model and only got it
working with some dirty patches to cocoon and our app.
symptoms were the same...

just my 2c
Christoph


Sebastian Kruse wrote:
> Hello,
> 
> 	I'm using Cocoon 2.2 with Tomcat 6.0.18 and have the following problem:
> 
> In a Cocoon-Sitemap there are XML files created by using Flowscript. (In
> the Flowscript-Function content gets fetched from an database and is
> sent via sendPage().)
> These files are combined by map:aggregate to one single XML file.
> Although the single files are all correct, the large combined file is
> messed up. Some sections are missing, others are switched.
> 
> The sitemap looks like this:
> 
> 	<map:match pattern="page.xml">
> 		<map:aggregate element="Content">
> 			<map:part src="cocoon:/content1.xml"/>
> 			<map:part src="cocoon:/content2.xml"/>
> 			<map:part src="cocoon:/content3.xml"/>
> 			<map:part src="cocoon:/content4.xml"/>
> 		</map:aggregate>
> 		<map:serialize type="xml"/>
> 	</map:match>
> 
> 	<map:match pattern="*.xml">
> 		<map:call function="{1}"/>
> 	</map:match>
> 
> 	<map:match pattern="*.jx" internal-only="true">
> 		<map:generate type="jx" src="documents/{1}.jx"/>
> 		<map:serialize type="xml"/>
> 	</map:match>
> 
> 
> If only one XML-Part is "aggregated" everything is ok, if all are
> aggregated the content of "content1.xml" and "content3.xml" are switched
> and "content4.xml" ist empty.
> 
> e.g.:
> 
> <content1>
> 	--here comes the content of <content3>
> </content1>
> <content2>
> 	--here comes the content of <content2>
> </content2>
> <content3>
> 	--here comes the content of <content3>
> </content3>
> <content4>
> 	--this one contains nothing
> </content4>
> 
> 
> Is this a bug or is aggregation of "flow-content" a bad idea?
> 
> Best regards,
> 
> Sebastian Kruse
> 
> 

-- 
Triplemind Internet GmbH
Berlinerstr. 2
DE-63065 Offenbach
Germany

http://www.triplemind.com
Mail info@triplemind.com
Tel  +49 69 82367670
Fax  +49 69 82367654

Unternehmensdaten: Triplemind OHG
Bankverbindung: Postbank Frankfurt,  BLZ: 50010060, Kto: 563581608
IBAN: DE28 5001 0060 0563 5816 08, BIC: PBNKDEFF
Eingetragen im HR Offenbach am Main B43729, USt-IdNr.: DE210080643

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message