Thank you for all responses!
Finally I use the request-parameter selector ; here my sitemap.
"traitement" is the action of my form that has two radio button with the name
"test" (value can be "cocoon" or other).
Following the value of "test" I make a different transformation.
My goal is to make a little service (in french) that can transform XML typed by
a user to HTML with the use of CSS.
<map:match pattern="traitement">
<map:generate type="stream">
<map:parameter name="form-name"
value="docxml"/>
</map:generate>
<map:select type="request-parameter">
<map:parameter name="parameter-name"
value="test"/>
<map:when test="cocoon">
<map:transform
src="xml2html.xsl"/>
<map:serialize type="html"/>
</map:when>
<map:otherwise>
<map:transform
src="linkwerk-xml2html.xsl"/>
<map:serialize type="html"/>
</map:otherwise>
</map:select>
</map:match>
-----Message d'origine-----
De : Jeroen Reijn [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 30 novembre 2006 13:45
À : [email protected]
Objet : RE: Correct selector
Hi Bertrand,
you could also use flowscript if you want to do more complex processing of the
form.
Kind regards,
Jeroen Reijn
-----Original Message-----
From: Mark Lundquist [mailto:[EMAIL PROTECTED]
Posted At: Thursday, November 30, 2006 12:49 PM
Posted To: Cocoon User List
Conversation: Correct selector
Subject: Re: Correct selector
On Nov 30, 2006, at 3:45 AM, Goetzmann Bertrand wrote:
> From a web page a user submits a form to a Cocoon pipeline. Depending
> on
> the value selected on the form (value of an option for example), I
> would
> like to do different processing.
> It seems I must use a selector, but witch one? The request-parameter
> selector?
Yep.
-ml-
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]