cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
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=""
                           src="subsitemap.xmap"
                           check-reload="yes"/>
              </map:when>
            </map:select>
          </map:match>
       </map:pipeline>

Then in the subsitemap I put:

   <map:pipelines>

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

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

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

    </map:pipelines>

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                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message