From 6e789a203c3367b6d0f001570a33ea7164e6fae4 Mon Sep 17 00:00:00 2001
From: Michael Kay
Date: Sun, 5 May 2024 22:51:10 +0100
Subject: [PATCH] Add fn:partition, and change a couple of examples
---
.../xpath-functions-40/src/function-catalog.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/specifications/xpath-functions-40/src/function-catalog.xml b/specifications/xpath-functions-40/src/function-catalog.xml
index 810ef26db..c2ed7f5a1 100644
--- a/specifications/xpath-functions-40/src/function-catalog.xml
+++ b/specifications/xpath-functions-40/src/function-catalog.xml
@@ -19579,7 +19579,7 @@ chain((1, 2, 3, 4), $product3)
@@ -30646,7 +30646,7 @@ path with an explicit file:
scheme.
-
+
@@ -30668,7 +30668,7 @@ path with an explicit file:
scheme.
the sequence of arrays.
If the $split-when
function returns true
, the current partition is wrapped as an array and added to the result,
and a new current partition is created, initially containing the item J only. If the $split-when
- function returns false
, the item J is added to the current partition.
+ function returns false
or ()
, the item J is added to the current partition.
More formally, the function returns the result of the expression:
fold-left($input, (), fn($partitions, $next, $pos) {
if (empty($partitions) or $split-when(foot($partitions)?*, $next, $pos))