Skip to main content

Interface: FnContext

Defined in: lang-xquery/src/functions/fn-context.ts:6

XQuery functions receive this as the last argument (for better compatibility with extensions for other languages)

Properties

item

item: unknown

Defined in: lang-xquery/src/functions/fn-context.ts:8

The context item (. / fs:dot) for the current iteration step.


position

position: number

Defined in: lang-xquery/src/functions/fn-context.ts:10

1-based position of the context item within the current sequence.


size

size: number

Defined in: lang-xquery/src/functions/fn-context.ts:12

Total number of items in the current sequence (the value returned by fn:last()).