cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Bialecki" <ar...@digitalfairway.com>
Subject {0} sitemap parameter in regexp matcher
Date Tue, 30 Apr 2002 20:54:20 GMT

Is {0} not available when using sitemap matcher?
I have a sub-sitemap where

This works (wildcard):

   <map:match 
     pattern="product/category_edit.xml">
     <map:act type="update-ejb">
       <map:generate type="serverpages" src="{../0}"/>
     </map:act>
     <map:transform type="xinclude"/> 
     <map:transform src="product/category.xsl"/>
     <map:serialize/>
   </map:match>

but this doesn't (regexp):

   <map:match type="regexp"
     pattern="product/category_(view|edit)\.xml">
     <map:act type="update-entity">
       <map:generate type="serverpages" src="{../0}"/>
     </map:act>
     <map:transform type="xinclude"/> 
     <map:transform src="product/category.xsl"/>
     <map:serialize/>
   </map:match>

to make the generator find source I have to do:
src="product/category_{../1}.xml"

Any ideas ?


Artur...



---------------------------------------------------------------------
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