Skip to content

Commit

Permalink
Merge pull request #1150 from michaelhkay/1142-drop-items-equal-restr…
Browse files Browse the repository at this point in the history
…ictions

1142 Drop restriction disallowing items-equal with unordered
  • Loading branch information
ndw authored Apr 16, 2024
2 parents f95bd9a + 5e52cc4 commit 33d07e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions specifications/xpath-functions-40/src/function-catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14568,9 +14568,7 @@ return for-each(1 to 10, $mapping otherwise void#0)</eg></fos:expression>
or <code>false</code> to indicate that two items are or are not
equal, overriding the normal rules that would apply to those items;
or it can return an empty sequence, to indicate that the normal
rules should be followed. If this option is present then the
<code>ordered</code> option <rfc2119>must</rfc2119> be <code>true</code> and the
<code>unordered-elements</code> option <rfc2119>must</rfc2119> be an empty sequence.
rules should be followed.
</fos:meaning>
<fos:type>function(item(), item()) as xs:boolean?</fos:type>
<fos:default>fn:void#0</fos:default>
Expand Down Expand Up @@ -15110,6 +15108,10 @@ declare function equal-strings(
means that <code>items-equal(A, B)</code> and <code>items-equal(B, C)</code> should
imply <code>items-equal(A, C)</code>.</p>

<p>Setting the <code>ordered</code> option to <code>false</code> or supplying the
<code>unordered-elements</code> option may result in poor performance when comparing
long sequences, especially if the <code>items-equal</code> callback function is supplied.</p>

</fos:notes>
<fos:examples>
<fos:variable name="at" id="v-deep-equal-at" as="element()"><![CDATA[<attendees>
Expand Down

0 comments on commit 33d07e6

Please sign in to comment.