This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: how to store attribute value?


> 	<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@ntlworld.com
work: Michael.Kay@softwareag.com 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]