Re: [xsl] Binding a variable within a "value-of select"

Subject: Re: [xsl] Binding a variable within a "value-of select"
From: António Mota <amsmota@xxxxxxxxx>
Date: Tue, 25 Oct 2005 13:43:02 +0100
I'm no expert, but maybe

<xsl:value-of select="WBSLServiceData/*[name()=$addorDef]/PostCode"/>

On 10/25/05, Khorasani, Houman <houman_khorasani@xxxxxxxxxxxxxx> wrote:
> Hello,
>
>
> Following problem:
>
> I have a variable called "addorDef". All I need now is to use the value
> of this variable within a path for another xsl:value-of.
>
> <xsl:value-of select="WBSLServiceData/$addorDef/PostCode"/>
>
> So a variabel within a variable.
>
> I was thinking to use the { } as a solution.
>
> <xsl:value-of select="WBSLServiceData/{$addorDef}/PostCode"/>
> or
> <xsl:value-of select="{WBSLServiceData/$addorDef/PostCode}"/>
>
> But none of them works...
>
> What am I missing?
>
> Many Thanks,
> Houman

Current Thread