http://marc.theaimsgroup.com/?t=108188013100001&r=1&w=4&n=4
Your description seems to point on the same issue, though I can not understand it from the code itself. I promised to have a look on it, but didn't found the time until now.
Joerg
On 16.04.2004 08:13, Derek Hohls wrote:
I have recently upgraded from C2.0.04 to 2.1.3 and now I find that a file which uses cinclude has stopped working properly.
The pipeline is:
<map:match pattern="mng/graph*/graph-Date-*">
<map:aggregate element="document">
<map:part src="cocoon:/app-date"/>
<map:part src="cocoon:/app-graphs-{2}"/>
</map:aggregate>
<map:transform src="styles/app2year.xsl"/> <!-- step 1 -->
<map:transform type="cinclude"/> <!-- step 2 -->
<map:serialize type="xml"/> </map:match>
At the end of transform step 1 the file looks like:
<?xml version="1.0" encoding="ISO-8859-1" ?> <page xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg">
<content>
<p>
<cinclude:include
src="cocoon:/mng/graphX/graph-Multi?gtype=bar&noheader=true&point=101&vgroup=13&area=1&startmn=01&endmn=12&year=2004&month=03&startyr=2004&endyr=2004"
/> <br /> <caption number="1.1.1"></caption> </p>
<p>
<cinclude:include
src="cocoon:/mng/graphX/graph-Multi?gtype=bar&noheader=true&point=100&vgroup=13&area=1&startmn=01&endmn=12&year=2004&month=03&startyr=2004&endyr=2004"
/> <br /> <caption number="1.1.2"></caption> </p>
<p>
<cinclude:include
src="cocoon:/mng/graphX/graph-Multi?gtype=bar&noheader=true&point=103&vgroup=13&area=1&startmn=01&endmn=12&year=2004&month=03&startyr=2004&endyr=2004"
/> <br /> <caption number="1.1.3"></caption> </p>
</content>
</page>
Each of the individual cocoon resource calls
(cocoon:/mng/graphX/graph-Multi...) work just fine (as they always have) and generate 3 different images
BUT, after transform step 2, I get:
<?xml version="1.0" encoding="ISO-8859-1" ?> <page xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg">
<content>
<p>
<img xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0"
border="0" src="svg-images/5bbd7e330ee1ddb5.jpg" /> <br /> <caption number="1.1.1"></caption> </p>
<p>
<img xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0"
border="0" src="svg-images/5bbd7e330ee1ddb5.jpg" /> <br /> <caption number="1.1.2"></caption> </p>
<p>
<img xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0"
border="0" src="svg-images/5bbd7e330ee1ddb5.jpg" /> <br /> <caption number="1.1.3"></caption> </p>
</content>
</page>
and it can be seen that each img refers to the SAME jpeg file.
Any ideas on how to solve this??
Thanks Derek
PS This also happens under 2.1.4, running on the UNIX production machine.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
