129: Context item generalized to context value#368
Conversation
|
Very appreciated! I didn’t find anything dubious, and it’s pleasant to see that the context item and position can also be utilized for context values (when using the new array predicate). It’s mostly the path expressions that I believe need more discussion:
document { <xml><a/><a/></xml> }//a => { /xml }
|
| role="parse-test" | ||
| >E2</code>. Evaluation of E1 continues with its original focus unchanged.</p> | ||
|
|
||
| <p diff="add" at="2023-02-20">The examples above all process a sequence of items |
There was a problem hiding this comment.
Unclear what examples are meant in the preceding paragraph. The term "all" is ambiguous (object of "above" or modifier of "examples"). Better?: "In each of the preceding situations, a sequence...is processed one item at a time." Consider changing other cases of "example" in this paragraph to "situation"
|
For those who have time to check out this topic: I have reworked the initial comment of #129 by adding explanatory comments and aligning it with the features from the latest version of the specs. |
|
Replaced by a new PR |
|
Overtaken by PR #970 |
This is a first cut proposal to generalize the context item to a context value, allowing (for example) array predicates.
The proposal covers XPath and XQuery only at this stage; it doesn't address the consequences for XSLT.
Careful review requested!
Addresses issue #129 and issue #367.