Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 74efd57

Browse files
committedMar 25, 2025··
Correct the $negate example
1 parent 6ecf3a0 commit 74efd57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎specifications/xpath-functions-40/src/function-catalog.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21616,7 +21616,9 @@ return $norm('data-base') eq $norm('DATABASE')</eg></fos:expression>
2161621616
<fos:result>true()</fos:result>
2161721617
</fos:test>
2161821618
<fos:test>
21619-
<fos:expression><eg>let $negate($predicate) := compose(($predicate, not#1))
21619+
<fos:expression><eg>let $negate := fn($predicate) {
21620+
compose(($predicate, not#1))
21621+
}
2162021622
return filter(("tic", "tac", "toe"), $negate(contains(?, "a")))</eg></fos:expression>
2162121623
<fos:result>"tic", "toe"</fos:result>
2162221624
</fos:test>

0 commit comments

Comments
 (0)
Please sign in to comment.