Re: [xsl] obtaining tree fragments from node-set value

Subject: Re: [xsl] obtaining tree fragments from node-set value
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 11 May 2005 11:48:55 +0100
David Carlisle wrote:

<xsl:variable name="x"
select="MainClass/SubClass/Value[contains(.,'ParentValue')]"/>

..
<xsl:when test="$x"/>
ref: <xsl:value-of select="@ref/>


I just tried out your solution but <xsl:value-of select="@ref/> doesnt return any value. Since '$x = ParentValue' in this case, @ref becomes inaccessible directly, which is my problem. Is there any other way of retreiving the value of @ref?

Thanks
Rahil

Current Thread