xproc / Vnext

Assembly point for all issues for a next version of XProc
1 stars 0 forks source link

Clarify specification of p:for-each #37

Open xml-project opened 1 year ago

xml-project commented 1 year ago

The current specification says:

The p:for-each will apply that subpipeline to each document in the sequence in turn.

The phrasing "in turn" might suggest, that p:for-each has to be implemented iterative, so that its guaranted, that the subpipeline with document 1 is excecuted before document 2's subpipeline. The specification for xsl:for-each does not suggest this restriction:

The xsl:for-each instruction processes each item in a sequence of items, evaluating the sequence constructor within the xsl:for-each instruction once for each item in that sequence.

I wonder whether it would be better to align with XSLT's concept.

gimsieke commented 1 year ago

I agree.

ndw commented 1 year ago

Yes. I don't think the phrase "in turn" is intended to suggest that strictly sequential processing is required.