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.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]