cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject Re: cocoon:/ protocol bug in 2.2?
Date Fri, 03 Sep 2004 12:48:35 GMT
Carsten Ziegeler wrote:
> Hmm, I just tested latest trunk from SVN and it works for me.
> For example our samples:
> http://localhost:8888/samples/sources/xsl-cocoon 
> or the portal work very well and they all use the cocoon:/
> protocol.
> Can you provide a test-case?

In the base sitemap I put:

       <map:pipeline internal-only="false">
         <map:match pattern="*.xml">
            <map:select type="exists">
              <map:when test="subsitemap.xmap">
                <map:mount uri-prefix=""

Then in the subsitemap I put:


       <map:pipeline internal-only="false">
          <map:match pattern="test2.xml">
            <map:generate src="index2.xml" />
            <map:serialize type="xml" />

       <map:pipeline internal-only="false">
          <map:match pattern="test.xml">
            <map:generate src="cocoon:/index2.internal" />
            <map:serialize type="xml" />

       <map:pipeline internal-only="true">
          <map:match pattern="*.internal">
            <map:generate src="{1}.xml" />
            <map:serialize type="xml" />


Then test2.xml gives output, test.xml does not.

Note that if I remove the match in the base sitemap, both tests work 
even if the internal pipeline in the subsitemap is still hidden from 
direct calls.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message