Tony Collen wrote:
On Tue, 25 Feb 2003, Goetz Botterweck wrote:


Is it possible to write sitemap rules which check for the existence of
files?

Somewhat like

<map:match pattern="path/*.html">
   if  "docs/path/{1}.xml" exists then
       <map:generate src="docs/path/{1}A.xml"/>

       <map:transform src="tranformation-a.xsl"/>
   else
       <map:generate src="docs/path/{1}B.xml"/>

       <map:transform src="transformation-b.xsl"/>
   end if
  <map:serialize type="xhtml-transitional"/>
</map:match>

Have you tried the resource-exists action?



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to