Skip to content

Commit

Permalink
Copy edits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Dec 3, 2024
1 parent 6c349b8 commit 0fa6594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions specifications/xpath-datamodel-40/src/xpath-datamodel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ a property called its <term>ordering</term>, which takes one of the three values
in the map is <termref def="dt-implementation-dependent"/>.</p></item>
<item><p><term>Sorted</term> ordering means that the keys in the map
are considered to be sorted, and entries are retrieved in order of their keys.</p></item>
<item><p><term>Fifo</term> (first-in, first-out) order means that the map
<item><p><term>Insertion</term> ordering (first-in, first-out) means that the map
maintains an ordering of entries based on the order in which entries were added,
with new entries being added at the end, after existing entries.</p></item>
</ulist>
Expand Down Expand Up @@ -1608,8 +1608,8 @@ a property called its <term>ordering</term>, which takes one of the three values
<p><termdef id="dt-strictly-comparable" term="strictly comparable">Two atomic items
<var>K1</var> and <var>K2</var> are <term>strictly comparable</term> if
(a) the function call <code>fn:compare(<var>K1</var>, <var>K2</var>, $CC)</code> (where <code>$CC</code>
is the Unicode codepoint collation) does not fail with a type error, and (b) if one of the values
has a timezone component, then the other also has a timezone component.</termdef></p></item>
is the Unicode codepoint collation) does not fail with a type error, and (b) either both of the values
have a timezone component, or neither of them has a timezone component.</termdef></p></item>
<item><p>If the ordering is <code>insertion</code>, then the order of entries in the returned
map reflects the order of entries in the supplied <code>$map</code>. If the key of
the new entry was present in <code>$map</code> then the new entry replaces that entry retaining
Expand Down
6 changes: 3 additions & 3 deletions specifications/xquery-40/src/expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19331,8 +19331,8 @@ processing with JSON processing.</p>
<note>
<p>A map with <code>sorted</code> ordering can be created by applying the <code>map:sort</code>
function.</p>
<p>A map with <code>fifo</code> ordering can be created by use of the functions <code>map:build</code>,
<code>map:merge</code>, or <code>map:of-pairs</code> with the option <code>{ "ordering": "fifo" }</code>.</p>
<p>A map with <code>insertion</code> ordering can be created by use of the functions <code>map:build</code>,
<code>map:merge</code>, or <code>map:of-pairs</code> with the option <code>{ "ordering": "insertion" }</code>.</p>
</note>

<example>
Expand Down Expand Up @@ -20549,7 +20549,7 @@ return $array?[count(.) ge 2]</eg>
of the expression is a map containing those entries of the input map for which
the <termref def="dt-predicate-truth-value"/> of the <code><var>FILTER</var></code> expression is true.
The <code>ordering</code> property of the result is the same as the <code>ordering</code>
property of the input map, and in the case of <code>sorted</code> or <code>fifo</code>
property of the input map, and in the case of <code>sorted</code> or <code>insertion</code>
ordering the relative order of entries in the result retains the relative order of entries
in the input.
</p>
Expand Down

0 comments on commit 0fa6594

Please sign in to comment.