Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify specification of p:for-each #37

Open
xml-project opened this issue May 19, 2023 · 2 comments
Open

Clarify specification of p:for-each #37

xml-project opened this issue May 19, 2023 · 2 comments

Comments

@xml-project
Copy link
Member

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
Copy link

I agree.

@ndw
Copy link

ndw commented May 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants