Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Jun 25, 2024
1 parent 20fb0ad commit 3e0226b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions specifications/xquery-40/src/expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19581,7 +19581,7 @@ processing with JSON processing.</p>
</tr>
<tr>
<td valign="top"><code>$M?value::*</code></td>
<td valign="top"><eg>({},
<td valign="top"><eg>([],
[ "a", "b" ],
[ "c", "d" ],
[ "e", "f" ])</eg></td>
Expand Down Expand Up @@ -19915,8 +19915,7 @@ return lookup:entries($V)[ fn:atomic-equal(?key, $k) ] ]]></eg>
<var>E</var> is any expression
and <var>KS</var> is any <code>KeySpecifier</code>, is:</p>

<eg>(<var>E</var> =!> lookup:all-entries() => {?key : ?value})
? entry::<var>KS</var>.</eg>
<eg>(lookup:all-entries(<var>E</var>) ! {?key : ?value}) ? entry::<var>KS</var></eg>


<note>
Expand Down Expand Up @@ -20247,7 +20246,7 @@ return lookup:entries($V)[ fn:atomic-equal(?key, $k) ] ]]></eg>
=> map:put("parent", fn() { $container })
=> map:put("ancestors", fn() { $path })
=> map:put("root", fn() { foot($path) }
=> map:put("selection-keys", fn() { $key, $path key })
=> map:put("selection-keys", fn() { $key, $path ! .¶key })
};]]></eg>

<p>In the case where the function is called with a single container (map or array) as the argument:</p>
Expand All @@ -20257,9 +20256,10 @@ return lookup:entries($V)[ fn:atomic-equal(?key, $k) ] ]]></eg>
item within the value.</p></item>
<item><p>The entry itself is labeled with a property <code>path</code>
holding the container.</p></item>
<item><p>Two additional user-visible fields, <code>parent</code> and
<code>ancestors</code>, are added to the returned entry. Both are zero-arity
functions, and in this case both return the container.</p></item>
<item><p>Four additional user-visible fields (<code>parent</code>,
<code>ancestors</code>, <code>root</code>, and <code>selection-keys</code>)
are added to the returned entry. All are zero-arity
functions.</p></item>
</olist>

<p>Similarly, the function <code>lookup:all-entries</code> is refined as follows:</p>
Expand Down

0 comments on commit 3e0226b

Please sign in to comment.