> From: Peter Flynn [mailto:[EMAIL PROTECTED]] > > > Must admit I am not familiar with Cocoon-1, but you can setup wildcards > > in the sitemap so that all documents in a particular location are > > automatically displayed; you don't have to explicitly give the filename. > > Can it be set up to behave like a plain Web server, looking for (in > this case) index.xml by default if no filename is given?
<map:match pattern=""> <!-- it's a customary to have welcome.xml instead of index.xml ;) --> <map:redirect-to uri="welcome"/> </map:match> <map:match pattern="*"> <map:generate src="{1}"/> <map:transform src="my-xml2html.xsl"/> <map:serialize/> </map:match> If you add couple of lines to this snippet, you could check for existence of welcome.xml and serve directory listing if file is missing. PS I /believe/ you can get all this from the reading docs. Vadim > > Users *can* add their own files, with arbitrary names, without involving > > an administrator. > > Aha. Many thanks. That much is enough to persuade me to go further. > > ///Peter --------------------------------------------------------------------- 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]>