Visit Mozilla.org

XPath:Functions:current

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents

The current function can be used to get the context node in an XSLT instruction.

[edit] Syntax

current()

[edit] Returns

A node-set containing only the current node.

[edit] Notes

This function is an XSLT-specific addition to XPath. It is not a part of the core XPath function library.

The current node is always the same as the context node. The following two are symantically equivalent.

<xsl:value-of select="current()"/>
<xsl:value-of select="."/>

[edit] Defined

XSLT 1.0 12.4

[edit] Gecko support

Supported.