The behavior you're seeing is to be expected.
With the URL http://HOST/cocoon/test/test.html?test=test/test.xml,
the "test/test.xml" is a parameter, not part of the URL to be matched,
so the "**/*.xml" matcher you showed below will not match it.
You need the "test.html" matcher to process the "test" parameter, e.g.
<map:match pattern="test.html">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:read type="text/xml" src="../{test}"/>
</map:act>
</map:match>
You may need src="{test}" instead of "../{test}",
depending on where your sitemap is.
Lars
-----Original Message-----
From: Christian Rosenberger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 11:41 AM
To: [EMAIL PROTECTED]
Subject: Re: URL matcher & parameter problem
Sorry, wrong key ;-)
Again my problem:
Have a strange problem with the URL matcher and HTTP GET parameters.
My URL looks like this:
http://HOST/cocoon/test/test.html?test=test/test.xml
I want to get the "text.xml" file. The URL is called by a external program, so I can't
change it to
http://HOST/cocoon/test/test.xml
In my sitemap there is a sitemap matching test.html and also this section
<map:match pattern="**/*.xml">
<map:read typ="text/xml" src="{2}.xml"/>
</map:match>
The URL http://HOST/cocoon/test/test.html/test.xml returns the test.xml file, but with
request
parameters it doesn't return the xml, but the html file.
Any ideas?
Regards,
Christian
----- Original Message -----
From: Christian Rosenberger
To: [EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 6:38 PM
Subject: URL matcher & parameter problem
Hi!
Have a strange problem with the URL matcher and HTTP GET parameters.
My URL looks like this:
http://HOST/cocoon/test/test.html?test=test/test.xml
I want to get the "text.xml" file. The URL is called by a external program, so I can't
change it to
http://HOST/cocoon/test/test.xml
In my sitemap
there is a sitemap matching test.html and also this section
<map:match pattern="**/*.xml">
</map:match>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]