According to https://www.w3.org/TR/xproc/#c.xquery p:xquery gets only one input document and parameters (which can only be atomic, right?)

If my query has multiple input documents (from previous steps), do I really have to store them first and load them inside the query?