Not really the right group, but..
<xsl:variable name="xpath" select="//link" />
<xsl:for-each select="$xpath">
</xsl:for-each>
should work
now, if you want the variable to be driven from ASP.NET, ur in a totally
different league. You pretty much need to rename your xsl to aspx, make your
xml file point to the aspx file, change the content type of yoru aspx file
to whatever xsl needs to be and then you can simply use something like
select="<%=myXPath%>"
Karl
--
http://www.openmymind.net/
"Redowl" <Re****@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
Hi,
Not sure if this is the right forum, but does anybody have any experience
of
using a XSLT variable in a xsl:for-each loop.
As in, I want to pass in a variable called source which itself holds the
root of the data I wish to loop through.
<xsl:for-each select = "$source">
' Do something
</xsl:for-each>