RE: [xsl] how to store attribute value?

Subject: RE: [xsl] how to store attribute value?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 6 Aug 2002 17:11:54 +0100
> 	<xsl:variable name="test_var" select="<xsl:value-of 
> select="@root_attribute"/>"></xsl:variable>

The inventiveness of users on this list never ceases to amaze me. Why
didn't you write

<xsl:variable name="test_var" select="@root_attribute"/>

?

But actually you want

<xsl:variable name="test_var" select="../@root_attribute"/>

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread