cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratik Das <Prat...@skytechsolutions.co.in>
Subject selecting transform xsl based on document id
Date Tue, 31 Aug 2004 11:58:39 GMT
Can I set up a pipeline so that I can select the transform xsl based on  a 
wild card match of document id or any part of url. I want something 
like this:
<map:match pattern="lenyabody-*/*/*/*/**">
       <map:aggregate ....
        <map:select pattern="*" >
         <map:when test="act">
            <map:transform src="xslt/a.xsl"/>
         </map:when>
         <map:when test="def">
            <map:transform src="xslt/b.xsl"/>
         </map:when>
         <map:when test="ghy">
            <map:transform src="xslt/c.xsl"/>
         </map:when>
         <map:otherwise>
            <map:transform src="xslt/default.xsl"/>
         </map:otherwise>
      </map:match>

regards
Pratik
Mime
View raw message