Streamable path expressions

The expression used as an argument to the saxon:stream function must consist of:

  1. A call to the document() or doc() function, followed by

  2. A streamable pattern

Streamable patterns use a subset of XPath expression corresponding roughly to the rules for match patterns in XSLT (the reason for this is that both subsets are designed to make it efficient to test an individual node for membership of the selected set of nodes). There are some extensions and some restrictions.