<map:match pattern="*/foo"> <map:aggregate element="foo"> <map:part src="foo.xml" /> </map:aggregate> <map:match pattern="bar/foo"> <map:aggregate element="bar"> <map:part src="bar.xml" /> </map:aggregate> </map:match> </map:match>
It's not possible in this way. <map:aggregate> is the generator and you can not add the stuff step by step. You are to much programming in the sitemap, but the sitemap is declarative.
What you are trying to do is to add bar.xml only when bar/foo is matched, but foo.xml always?
Can you try the following, I don't know if it works:
<map:match pattern="*/foo"> <map:aggregate element="root"> <map:part src="foo.xml" element="foo"/> <map:part src="cocoon:/bar.xml" element="bar"/> </map:aggregate> ... </map:match>
<map:match pattern="cocoon:/bar.xml"> <map:select type="parameter"> <map:parameter name="parameter-selector-test" value="{../1}"/> <map:when test="bar"> <map:generate src="bar.xml"/> </map:when> <map:otherwise> <!-- maybe it's possible to remove this otherwise completely --> <map:generate src="nothing.xml"/> </map:otherwise> </map:select> </map:match>
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]