Returns the context size from the dynamic context.
fn:last
( xs:integer
Returns the context size from the dynamic context. (See .)
The expression (1 to 20)[fn:last() - 1]
returns 19
.
A dynamic error is raised if the context size is absent.
Under most circumstances, the context size is absent only if the context item is absent. However, XSLT 3.0 with streaming defines situations in which the context item and context position are known, but the context size is unknown.