Verbosity

Simplify the markup

Can we?

Find a good compact syntax

Can we?

Should we?

base uri

add a mechanism to set the base URI of documents created with p:inline. If possible the base URI can be set dynamically (e.g. from a variable), but if it's not possible the 'p:set-base-uri' step declared above is enough.

Functions

consider allowing definition and/or import of XPATH functions

consider allowing definition and/or import of XSLT/XQuery functions

define a built-in extension function that loads documents from readable ports, or allow a sequences of documents to be available as collections in the XPath dynamic context.
For instance to switch cases depending on the number of elements in the sequence you currently have to
- use p:count to get the size of the sequence
- re-pipe the flowing document
- p:choose with an XPath context piped to the result of the p:count
This is very verbose for a simple and common task. Mapping readable ports to collections would allow something like:
- p:when test="count(collection('my-step#my-port')) gt 0"