Subject: RE: RE: New ContextNode Question
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 14:40:18 +0100
|
> I'm a new arrival to XSLT Kingdom. I would like someone to
> explain in a
> layman terms the different between context and current node and their
> practical applications.
>
The current node is the node most recently selected by xsl:apply-templates
or xsl:for-each. When you go into an XPath expression, the context node is
the same as the current node; but within a predicate, e.g. item[.=3], the
context node is the node that the predicate is testing at the time.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|