|
Subject: Re: [xsl] How can I use a variable out of it scope ? From: "frank Stein" <freeposte@xxxxxxxxxxx> Date: Wed, 31 Jan 2001 14:26:27 |
From: "viewga" <viewga@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Re: [xsl] How can I use a variable out of it scope ? Date: Wed, 31 Jan 2001 11:44:26 +0200
You can use some trick like that: (thats not exactly what you want, but ...) <xsl:template match="level1"> <xsl:variable name="myVar">Something</xsl:variable> <xsl:call-template name="level2"> <xsl:with-param name="upperLevelVar"><xsl:value-of select="$myVar" /></xsl:with-param> </xsl:call-template> </xsl:template>
<xsl:template name="level2"> <xsl:param name="upperLevelVar"/> <!-- doing with upperLevelVar --> </xsl:template>
<IMG SRC="images/open.gif">
<xsl:attribute name="onDblClick">
SetNode('<xsl:value-of select="$upperLevelVar"/>');
</xsl:attribute>
</IMG>_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How can I use a variable , Michael Beddow | Thread | Re[2]: [xsl] How can I use a variab, viewga |
| [xsl] method to parse date time sta, Walter Torres | Date | Re: [xsl] Q: Passing constructed el, David Carlisle |
| Month |