cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Homeijer <>
Subject Implementing FileExistSelector
Date Thu, 09 Aug 2001 10:07:21 GMT
In a part of the sitemap I want to check if a requested file exists,
if it doesn't i want to return the contents of a default file.

Is this the way I should implement something like that
or are the easier methods? :

<map:match pattern="annotation\*"
  <map:select type="fileexists">
     <map:parameter name="filename" value="annotation\{1}"/>

     <map:when test="fileexists">
          <map:generate src="annotation\{1}"/>
         <map:generate src="annotation\default.xml"/>
  <map:transform src="annotation.xsl"/>

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message