[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Current Context and document()
Marty McKeever wrote:
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:variable name="current" select="."/> <xsl:for-each select="document('foo.xml')/root/item"> <xsl:value-of select="$current/@name"/> </xsl:for-each> </xsl:template> J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|