On Monday 04 March 2002 15:55, Stefano Bonnin wrote:
> How can I define a very simple pipeline that gets the initial URI and
> present a simple HTML file?
. . .
> <map:pipeline>
> <map:match pattern="">
> <map:redirect-to uri="myApplication/myfile.html"/>
> </map:match>
> </map:pipeline>
That's only the beginning, it will redirect the / URL to
myApplication/myfile.html.
Then, the redirect causes the client (browser) to make another request
to myApplication/myfile.html, which your sitemap must process.
Here's one way of doing it:
<map:match pattern="myApplication/*.html">
<map:generate src="myApplication/{1}.html"/>
<map:serialize type="html"/>
</map:match>
Hope this helps!
--
Bertrand Delacr�taz (codeconsult.ch, jfor.org)
buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
disclaimer: eternity is very long. mostly towards the end. get ready.
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>