cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Guttmann <Werner.Guttm...@msdw.com>
Subject Re: Use of <xsp:attribute> when calling a logicsheet
Date Thu, 11 Jan 2001 10:55:48 GMT
Donald,

tried both 'get-nested-content' and 'get-nested-string', and neither seems to yield
the resulkt expected.

Please find attached the generated java source when using get-nested-string as well
as the complete logicsheet.

Thanks for your help.

Werner.

Donald Ball wrote:

> On Wed, 10 Jan 2001, Werner Guttmann 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.
>
> try using get-nested-string from esql logicsheet. also, please send a
> message with your generated java source attached. i know get-nested-string
> will work, but i think get-nested-content should work for your simple
> usage.
>
> - donald

Mime
View raw message