ietf-wg-jsonpath / draft-ietf-jsonpath-base

Development of a JSONPath internet draft
https://ietf-wg-jsonpath.github.io/draft-ietf-jsonpath-base/
Other
59 stars 20 forks source link

consensus on the term "current node" #285

Closed goessner closed 1 year ago

goessner commented 1 year ago

The term "current node" is traditionally used with iterating over children of structured nodes in filter selectors.

Now it also appears in 3.3 Semantics chapter in a different context:

A segment performs its function on each of the nodes in its input
nodelist, during such a function execution, such a node is referred
to as the "current node".

To avoid confusion of readers, we might use a different term there. A good alternative would be "context node", which is also used by XPath in a similar context.

glyn commented 1 year ago

Perhaps a simple solution would be to avoid the use of the term in 3.3 as this term doesn't appear to be used elsewhere.

glyn commented 1 year ago

Please see the simplification in https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/pull/286.