You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ganael LAPLANCHE <gl...@jouve.fr> on 2002/10/01 14:42:09 UTC
How to test a parameter in the sitemap ?
Hi all,
How would you test an URL parameter (e.g.
http://foo.com:8080/myfile.xml?bar=hello) in the
sitemap ? How can I retreive 'hello' from the URL ?
Sorry for this stupid question, this must be very simple...
Gan.
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: How to test a parameter in the sitemap ?
Posted by Bobby Mitchell <bo...@niac.usra.edu>.
Ganael LAPLANCHE wrote:
>Hi all,
>
>How would you test an URL parameter (e.g.
>http://foo.com:8080/myfile.xml?bar=hello) in the
>sitemap ? How can I retreive 'hello' from the URL ?
>
>
>
I'm not sure about retreiving 'hello', but you can do this:
<map:match type="request-parameter" pattern="bar">
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="bar"/>
<map:when test="hello">
<do something/>
</map:when>
</map:select>
</map:match>
Look through all of the matchers and selectors available in the apidocs.
--
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>