This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RE: New ContextNode Question


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]