home contribute faq download

FunctX XSLT Functions

fn:current

Return the current item

Google
Webdatypic.com

Description

The fn:current function returns the current item. For an outermost expression, the current item is always the same as the context item, which can be represented with ".". However, within a predicate, or on the right-hand side of the / operator, the current item is generally different from the context item. Note: this is an XSLT-only function; it is not available in XQuery or XPath.

Arguments and Return Type

NameType
return value item()

Examples

XSLT ExampleResults
See the example from the XSLT 2.0 recommendation.

History

Published OnLast UpdatedContributor(s)
2007-03-172007-03-17W3C, XSLT 2.0, http://www.w3.org/TR/xslt20/
Datypic XSLT Services

Recommended Reading:

XQuery