<xsl:eval> and parameters
<xsl:eval> function1(5) </xsl:eval> is valid,
but what about
<xsl:eval> function1(<xsl:value-of select="name" />) </xsl:eval>
I want to pass the value of a node/attribute to a script-function.
Any suggestions?
Rohit
# 1 Re: <xsl:eval> and parameters
Depending on what lang your in you can use
jscript "this" or vbscript "me"
as in <xsl:eval> function1(this)</xsl:eval>
The this or me object represents the current xml node in the context
of the for-each that you are iterating over, at this point in the xsl sheet.
Rohit Wason wrote in message <38f6be36$1@news.dev-archive.com>...
>
><xsl:eval> function1(5) </xsl:eval> is valid,
>but what about
><xsl:eval> function1(<xsl:value-of select="name" />) </xsl:eval>
>I want to pass the value of a node/attribute to a script-function.
>Any suggestions?
>Rohit
TC at 2007-11-11 23:34:01 >

# 2 Re: <xsl:eval> and parameters
What about
<xsl:eval>function1(this.selectSingleNode("name").nodeTypedValue)</xsl:eval>
"TC" <trclark@home.com> wrote:
>Depending on what lang your in you can use
>jscript "this" or vbscript "me"
>as in <xsl:eval> function1(this)</xsl:eval>
>
>The this or me object represents the current xml node in the context
>of the for-each that you are iterating over, at this point in the xsl sheet.
>
>Rohit Wason wrote in message <38f6be36$1@news.dev-archive.com>...
>>
>><xsl:eval> function1(5) </xsl:eval> is valid,
>>but what about
>><xsl:eval> function1(<xsl:value-of select="name" />) </xsl:eval>
>>I want to pass the value of a node/attribute to a script-function.
>>Any suggestions?
>>Rohit
>
>
Chong at 2007-11-11 23:34:58 >
