A lot of the standard steps don't accept sequences. E.g. p:wrap, p:delete, etc. Why not? It seems like an arbitrary limitation. Why not make all these steps accept sequences. They then just perform their magic on all members of the sequence (or do nothing in case of an empty sequence).
IMHO the fact that sequences are "special" is a left-over from the XProc 1 days. It is more in line with the XPath standard to think of a single document also as a sequence, but just with one member. If you look at it like that it makes sense to treat sequences of all sizes in the same way.
A lot of the standard steps don't accept sequences. E.g.
p:wrap,p:delete, etc. Why not? It seems like an arbitrary limitation. Why not make all these steps accept sequences. They then just perform their magic on all members of the sequence (or do nothing in case of an empty sequence).IMHO the fact that sequences are "special" is a left-over from the XProc 1 days. It is more in line with the XPath standard to think of a single document also as a sequence, but just with one member. If you look at it like that it makes sense to treat sequences of all sizes in the same way.