XPath/XQuery position function

Summary

Returns the context position from the dynamic context.

Signature

fn:position(
) as xs:integer

Properties

This function is deterministic, context-dependent, focus-dependent, and special-streaming-rules.

Rules

Returns the context position from the dynamic context. (See .)

Error Conditions

A dynamic error is raised if the context item is absent.