cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Use of <xsp:attribute> when calling a logicsheet
Date Wed, 10 Jan 2001 19:28:53 GMT
Werner Guttmann <Werner.Guttmann@msdw.com> wrote:
>Followed your advise and switched to using elements for specifying the 
>service
>to be affected and the action to be taken. The following xml fragment
>
><manage:manageSubsystem>
>     <manage:service>MQ</manage:service>
>     <manage:action>stop</manage:action>
></manage:manageSubsystem>
>
>works as planned. If I try to use the request taglib to substitute "MQ" and
>"stop" with values passed in via the HTTP request
>
><manage:manageSubsystem>
>     <manage:service>
>         <request:get-parameter name="service" default="MQ" />
>     </manage:service>
>     <manage:action>
>         <request:get-parameter name="action" default="stop" />
>     </manage:action>
></manage:manageSubsystem>
>
>I still do not get the results as expected.
>
>Here's the relevant code from my logicsheet:
>
>   <xsl:template match="manage:manageSubsystem">
>     <xsl:variable name="service">
>       <xsl:call-template name="get-nested-content">
>         <xsl:with-param name="content" select="manage:service"/>
>       </xsl:call-template>
>     </xsl:variable>
>     <xsl:variable name="action">
>       <xsl:call-template name="get-nested-content">
>         <xsl:with-param name="content" select="manage:action"/>
>       </xsl:call-template>
>     </xsl:variable>
>     <paragraph>
>       About to <xsl:value-of select="$action"/> service <xsl:value-of
>select="$service"/>.
>     </paragraph>
>   </xsl:template>
>
>Output still is
>
>About to service .
>
>, i.e. $service and $action are blank.
>

I _think_ you have to wrap <request:get-parameter> with <xsp:expr>. I have 
to admit I don't really understand this.



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message