In Cocoon 2.0.4, I have a sitemap that is excerpted below. When a request comes in for a page such as, http://mysite.com/asdf the error is handled fine. However, when a request comes in for something like, http://mysite.com/resources/asdf/ the result of the ErrorGenerator is aggregated with toc.xml and transformed as if the aggregation had worked. I would like all 404 errors to be handled by a generic error handler, but haven't found a way when map:aggregate is involved. I tried the docs and the wiki to no avail. Any assistance would be much appreciated.
<map:match pattern="resources/*"> <map:redirect-to uri="{1}/"/> </map:match> <map:match pattern="resources/*/"> <map:aggregate element="Page"> <map:part src="xml/toc.xml"/> <map:part src="xml/site/resources/{1}.xml"/> </map:aggregate> <map:transform src="xsl/xhtml/resources/resource.xsl"/> <map:serialize type="xhtml"/> </map:match> <map:handle-errors type="404"> <map:transform src="xsl/xhtml/error.xsl"> <map:parameter name="errorNum" value="404"/> </map:transform> <map:serialize type="xhtml"/> <!--map:serialize type="xml"/--> </map:handle-errors> Thanks. - Justin Makeig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]