Hi Konstantin,
Thanks :) That is exactly what I was looking for. My sitemap looks as
follows:
<map:match pattern="http:**.*">
<map:generate src="http:/{1}.{2}"/>
<map:transform src="/path/to/getRSS.xsl"/>
<map:serialize type="html"/>
And it can process request such as:
"http://my.xml.server:8080/cocoon/mount/rssfeed/http://www.xmlhack.com/rss.php"
In Peace,
Saqib Ali
"Konstantin
Piroumian" To: <[EMAIL PROTECTED]>
<kpiroumian@a cc:
pache.org> Subject: Re: sitemap matcher woes
No Phone Info
Available
01/17/2003
01:47 AM
Please
respond to
cocoon-users
From: <[EMAIL PROTECTED]>
> Hi All,
>
> Currently my sitemap is setup like the following:
>
> <map :match pattern="w3c.rss">
> <map :generate src="http://www.w3.org/2000/08/w3c-synd/home.rss"/>
> <map :transform src="/path/to/getRSS.xsl"/>
> <map :serialize type="html"/>
> </map>
>
> So when I type the following line in my browser:
> http://my.server.com:8080/cocoon/mount/test/w3c.rss
>
> It gets me the content of the W3C RSS feed
>
>
> However, I wanna to configure my sitemap such that, when I request:
> http://my.server.com:8080/cocoon/mount/test/
> http://www.w3.org/2000/08/w3c-synd/home.rss
>
> It should work as well. So I tried to write the following:
>
> <map :match pattern="*.rss">
> <map :generate src="{1}.rss"/>
> <map :transform src="/path/to/getRSS.xsl"/>
> <map :serialize type="html"/>
> </map>
>
> But it doesn't work. Any ideas?
>
> Theoratically it should work... right???
No, it shouldn't. The '*' matches only a file name and not a path. Probably
you are looking for something like below:
<map :match pattern="**/*.rss"> - this will match any path/file.rss
or
<map :match pattern=""> - this will match any request without a path or a
file (default matcher)
or
<map :match pattern="**/"> - this will match any path.
and so on.
Konstantin
>
> In Peace,
> Saqib Ali
>
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>