RE: [xsl] Variables

Subject: RE: [xsl] Variables
From: Dave Beattie <Dave.Beattie@xxxxxxxxxxx>
Date: Fri, 1 Aug 2003 11:45:24 +0100
If you're attempting to use the variable outside the loop, I assume you want
access to the last value of the variable the last time it was assigned. This
is really another variable.
How about

	<xsl:variable name="lastname"
select="Attribute_Groups/Attribute[position()=last()]/@Name" />



-----Original Message-----
From: AROSO Jose Antonio [mailto:jose.santos@xxxxxxxxxxx]
Sent: Friday, August 01, 2003 11:34 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Variables



Hi..


When I save something in a variable in a loop for-each i dont have access to
this variable out of the loop for-each.
How can i resolve this situation.
In the following example:

<xsl:for-each select="Attribute_Groups/Attribute">

	<xsl:variable name="aname" select="@Name" />
	........
</xsl:for-each>

How can i access the variable aname out of the loop for-each?


Best Regards

Jose





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

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


Current Thread