Hi Marty:
Try saving the current node to a variable at the top of your template...
<xsl:variable name="curNode" select="."/>
And then refer to it later on...
<xsl:value-of select="$curNode/@name"/>
HTH!
Dion
-----Original Message-----
From: Marty McKeever [mailto:marty(_dot_)mckeever(_at_)goingv(_dot_)com]
Sent: Friday, February 21, 2003 1:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
When iterating through elements in an external document('foo.xml'),
how can i access the current node of the internal DOM? I thought
current()
would work, but apparently not.
<xsl:template match="form">
<xsl:for-each select="document('foo.xml')/root/item">
<xsl:value-of select="."/>
<!-- value of foo.xml/root/item[i] -->
<xsl:value-of select="current()/@name"/>
<!-- attribute of the matched form element ?? -->
</xsl:for-each>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list