saxon:stream

Provides streamed input

stream($input as item()*) ➔ item()*

Arguments

 

$input

item()*

The input to be streamed

Result

item()*

Details

Namespace: http://saxon.sf.net/

Conceptually, this function returns a copy of its input. The intent, however, is to evaluate the supplied argument in "streaming mode", which allows an input document to be processed without building a tree represention of the whole document in memory. This allows much larger documents to be processed using Saxon than would otherwise be the case.

For further details see Streaming of Large Documents.

Notes on the Saxon implementation

Obsolescent in XSLT, since the xsl:stream instruction provides equivalent functionality; but still useful in XQuery. Available only in Saxon-EE.