current()
current()
The current
function can be used to get the context node in an XSLT instruction.
Syntax
current()
Returns
A node-set containing only the current node.
Notes
This function is an XSLT-specific addition to XPath. It is not a part of the core XPath function library.
For an outermost expression (an expression not occurring within another expression), the current node is always the same as the context node (which will be returned by the .
or self
syntax). The following two are symantically equivalent.
<xsl:value-of select="current()"/>
<xsl:value-of select="."/>
In an inner expression (e.g. in square brackets), the current node is still the same as it would have been in an outermost expression. Thus w