You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Pratik <pr...@skytechsolutions.co.in> on 2004/08/19 12:11:25 UTC

Creating matches in lenya pipeline

I managed to solve the template problem. I have created multiple templates 
deriving from a single base template. Now my problem is using different 
templates based on different urls. I am defining my pipelines in publication-
sitemap giving match as **/RFI*.* as given below. By this I want all documents 
whose name starts with RFI to use jobFormTemplate. Similarly I have defined 
other templates which I want to pick up based on document names. But somehow 
only one template is getting called and rest are ignored. Can anyone help me 
out with this. Thanks in advance. 
Pratik 
    <map:pipeline> 
      <map:match pattern="lenyabody-**/RFI*.*"> 
        <map:aggregate element="cmsbody"> 
          <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/> 
          <map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
envelope:document-path}"/> 
        </map:aggregate> 
        <map:transform src="xslt/jobFormTemplate.xsl"> 
          <map:parameter name="root" value="{page-envelope:context-prefix}/{2}/
{3}"/> 
        </map:transform> 
..... 
.... 
        <map:serialize type="xml"/> 
      </map:match> 

    </map:pipeline> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org