This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: New ContextNode Question
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE: New ContextNode Question
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 26 Jul 2001 14:40:18 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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