cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Hailstone <matth...@waterford.org>
Subject Reuse of matches or pipelines
Date Tue, 14 May 2002 15:14:17 GMT
The two following matches are in a single pipeline. You'll notice that the 
second transform element in each match is practically the same. Is there 
any way that I can utilize the more generic second match during the 
execution of the first match by having two pipelines, or some other 
configuration setup? Obviously I'm new to this. Thanks in advance.

       <map:match pattern="*/*.query">
         <map:generate type="serverpages" src="documents/{1}/{2}.xsp"/>
         <map:transform src="stylesheets/query.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="base-url" value="/cocoon/eval"/>
         </map:transform>
         <map:transform src="stylesheets/menupage.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="request-url" value="{2}.query"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="css-stylesheet" value="default.css"/>
           <map:parameter name="base-url" value="/cocoon/eval"/>
         </map:transform>
         <map:serialize/>
       </map:match>
       <map:match pattern="*/*.*">
         <map:generate src="documents/{1}/{2}.xml"/>
         <map:transform src="stylesheets/{3}.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="base-url" value="/cocoon/eval"/>
         </map:transform>
         <map:transform src="stylesheets/menupage.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="request-url" value="{2}.{3}"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="css-stylesheet" value="default.css"/>
           <map:parameter name="base-url" value="/cocoon/eval"/>
         </map:transform>
         <map:serialize/>
       </map:match>


Matthew


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message