cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject AW: Cocoon2 : Managing URL-encoded parameters
Date Thu, 20 Sep 2001 08:00:18 GMT
The usual sitemap match (map:match pattern="xyz") tests
only the request uri. It does not take any parameter into
For testing parameters you can use the parameters matcher:

<map:match pattern="my-xml-document.xml">
   <map:match type="request" pattern="param">
        <!-- At this point {1} refers to the value of the parameter
    named "param"
        <map:generate src="xml_doc_number{1}.xml"/>


The example above should (if there is not a typo in it) test
the request against the uri "my-xml-document.xml", if this
test is successful, the request matcher gets the value of
the request parameter "param" and makes it available for
the included components, so a call "my-xml-document.xml?param=2"
would read "xml_doc_number2.xml".



Open Source Group                        sunShine - b:Integrated
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn                          mailto:

-----Urspr√ľngliche Nachricht-----
Von: Sparkes, Peter []
Gesendet: Donnerstag, 20. September 2001 09:41
An: ''
Betreff: RE: Cocoon2 : Managing URL-encoded parameters

I have the same problem.
---------- Peter Sparkes
Data Architect
Derwent Information
14 Great Queen St       Tel. +44 (0)20 7424 2084
London          Fax. +44 (0) 20 7344 2815
WC2B 5DF                Email.
UK                      Website:
> -----Original Message-----
> From: Olivier Boulanger []
> Sent: 19 September 2001 18:52
> To:
> Subject: Cocoon2 : Managing URL-encoded parameters
> Hi all,
> I have just installed cocoon 2. I first thought that defining
> a sitemap was
> a great idea, but i'm wondering by now if it's possible to manage
> URL-encoded parameters in an XML2HTML process (like i used to
> with cocoon
> 1).
> Considering an url like
> "localhost/my-project/my-xml-document.xml?param=1",
> what should be written in the sitemap file to make it work fine ?
> I've tried to define several kinds of "map:match" corresponding to my
> pattern, without any success...
> Thanks a lot in advance,
> Olivier Boulanger

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message