Hi again, is it possible to name an output-file dynamically in cocoon.
E.g. a pdf is created that has the name report_31_01_2003.pdf because its the 31 Jan 2003 (or report_GSM.pdf because I got a parameter with the value "GSM"). Is this possible at runntime? To keep up an other question, about why "<map:serialize type" doesn't like my {xxx}-"returns": >>In your particular case it'd be much better to return two values from the >>action, just you different keys in the HashMap to do it: >>results.put("xsl-choice", "style _16"); >>results.put("format", "fo2pdf"); >>and then use it in your sitemap like this: <map:match pattern="blabla"> <map:act type="allSelect"> <map:generate src="sampleoutput.xml"/> <map:transform src="stylesheets/{xsl-choice} _{format}.xsl"/> <map:serialize type="{format}"/> </map:act> </map:match> The " <map:transform src="{xsl-choice}_{format}.xsl"/> " part works great. But the " <map:serialize type="{format}"/> " doesnt work. I always get a "Resource not found" error. If I type in the type manually (e.g. " <map:serialize type="fo2pdf"/> ") it works. What could cause this problem? I wonder especially because the {format} in " <map:transform src ="stylesheets/{xsl-choice}_{format}.xsl"/> " works. Cheers Jonny ---------------------------------------------------------------------------------------------------- This electronic message contains information from the mmo2 plc Group which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>