-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
The descriptions says:
If exactly one document appears on the source port, it is the context item when the test and select expressions are evaluated. In all other cases, the context item is undefined.
That could be interpreted to mean that this is a correct pipeline:
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="3.1">
<p:output port="result" />
<p:message test="true">
<p:with-option name="select" select="/doc" />
<p:with-input port="source"><doc >3</doc></p:with-input>
</p:message>
</p:declare-step>That would require making the select option a special case where the context is determined inside the step. I don't think we want to do that; the select option is a completely ordinary option. I think the spec is just carelessly worded, and, on reflection, for no good reason.
Just delete that paragraph, I think.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels