cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ines Robbers" <ml...@comprehend.de>
Subject AW: resource-exists problem
Date Tue, 11 Feb 2003 17:14:56 GMT
Hi Luca,

Thanks for your help!

* The "url" parameter is relative to the sitemap directory. 
* Therefore, if the jobs.xml existed in the test directory, you 
* would use value="test/jobs.xml" to properly assess its existence.

I managed to get it working.

<map:pipeline>
    <map:match pattern="test/*">
	 	<map:act type="resource-exists">
			<map:parameter name="url" value="{1}.xml"/>
			<!-- it's available -->
		  <map:generate src="{test/../1}.xml"/>
		  <map:transform src="test/style.xsl"/>
        <map:serialize/>
		 </map:act>
		 <!-- not found -->
		 <map:generate src="test/documentNotAvailable.xml"/>
		 <map:transform src="test/stylesheet.xsl"/>
		 <map:serialize/>
    </map:match>
</map:pipeline>


:-)



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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