Gianluca Sartori schrieb:

I have this sitemap:

   <map:match pattern="**/*">
        <map:aggregate element="contents">
        <map:part src="contents/{1}/{2}.xml"/>
        <map:part src="cocoon:/toc/{2}"/>
        </map:aggregate>
        <map:serialize type="xml"/>
   </map:match>

   <map:match pattern="toc/*">
        <map:generate src="contents/toc.xml"/>
        <map:transform type="xslt" src="stylesheets/toc.xsl">
                <map:parameter name="current-page" value="{1}"/>
        </map:transform>
        <map:serialize type="xml"/>
   </map:match>

Cocoon gives no errors and returns a blank page. I tryed to substitute
"/" in the pattern "toc/*" with "." resulting in the pattern "toc.*" and
cocoon produced the expected output.

Why this happens? Is it my fault or cocoon fault?

Thaks,
Gianluca



I´m quite new to Cocoon but I think you should have changed the order of the matches. Otherwise the request cocoon:/toc/{2} which is send by the first match is again going to the first match and tries to load contents/toc/{2}.xml that might probably not available

The second match is never executed.

Helmut


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to