This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: variable as select for template
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] variable as select for template
- From: "cutlass" <cutlass at secure0 dot com>
- Date: Wed, 19 Sep 2001 15:14:33 +0100
- References: <07D07AD1C8CAD4119B0900D0B7E7E8E0649AB6@uhura.memiq.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
yes this is possible
the only things u have to worry about is that the variable is usually a node
set ( as u indicated ), and the current context of the node being used.
to make things simple i would test without using modes, once u have it
working properly then pop in the modes.
cheers, jim fuller
----- Original Message -----
From: "Dmitri Ilyin" <dmitri.ilyin@memIQ.com>
To: "XSL-List@lists. mulberrytech. com (E-mail)"
<XSL-List@lists.mulberrytech.com>
Sent: Wednesday, September 19, 2001 3:01 PM
Subject: [xsl] variable as select for template
> Hi *,
>
> I'd like to use
> xsl:variable in xsl:apply-templates select="" statement.
>
> eg
> create variable with node()
>
> <xsl:variable name="var1">
> <xsl:value-of select="select some node here"/>
> </xsl:variable>
>
> use it in
> <xsl:apply-templates mode="some_template" select ="$var1"/>
>
> Is it posible???
>
> thanks
>
> Dmitri
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list