From: Thomas W. <tho...@gm...> - 2008-09-16 03:17:18
|
Martin, Yes, it should be without the percentage sign. Thanks. I found the reason for the error message and I think it could be of value for others who use Cocoon sitemaps. In my sitemap file I have two refference to running-context.xq: <map:match pattern="run/*/*"> <map:generate src="running-context.xq" type="xquery"> <map:parameter name="p1" value="{%1}"/> <map:parameter name="p2" value="{%2}"/> </map:generate> <map:serialize encoding="UTF-8" type="xml"/> </map:match> <map:match pattern="running-context"> <map:generate src="running-context.xq" type="xquery"> <map:parameter name="p1" value="p-1-test-value"/> </map:generate> <map:serialize encoding="UTF-8" type="xml"/> </map:match> The second pattern does not pass p2 parameter and that is why the papeline gives an error message. I hope this will help. Regards, Thomas |