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(_dot_)santos(_at_)enabler(_dot_)com]
Sent: Friday, August 01, 2003 11:34 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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