This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
variable values in for-each loops
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: variable values in for-each loops
- From: Jonathan Asbell <jonathana at raremedium dot com>
- Date: Thu, 30 Mar 2000 15:46:25 -0500
- Reply-To: xsl-list at mulberrytech dot com
if you have:
THE XSLT:
<xsl:for-each select="name">
<xsl:variable name="teststring" expr="name[starts-with(.,a)]"/>
</xsl:for-each>
THE XML FILE:
<name>jon</name>
<name>andrew</name>
<name>bill</name>
<name>ann</name>
<name>mike</name>
What is the value of the variable in each case? How is it determined?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list