From 024fa7407938be7f825b0518601eaa36d7057b3f Mon Sep 17 00:00:00 2001 From: Michael Kay Date: Tue, 26 Nov 2024 18:40:33 +0000 Subject: [PATCH] csv-to-xml returns document node --- .../src/function-catalog.xml | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/specifications/xpath-functions-40/src/function-catalog.xml b/specifications/xpath-functions-40/src/function-catalog.xml index 19666dac7..506105993 100644 --- a/specifications/xpath-functions-40/src/function-catalog.xml +++ b/specifications/xpath-functions-40/src/function-catalog.xml @@ -26484,7 +26484,7 @@ return csv-to-arrays( - + @@ -26510,23 +26510,25 @@ return csv-to-arrays( { - if (exists($colNames)) { - { $colNames ! { . } } - }, - { - for $row in $parsedCSV?rows - return { - for member $field at $col in $row - return { - if ($colnames[$col]) { - attribute column { $colnames[$col] } - }, - $field - } - } - } -}]]> +return document { + { + if (exists($colNames)) { + { $colNames ! { . } } + }, + { + for $row in $parsedCSV?rows + return { + for member $field at $col in $row + return { + if ($colnames[$col]) { + attribute column { $colnames[$col] } + }, + $field + } + } + } + } +}]]>

The namespace prefix used in the names of elements (or its absence) is .

@@ -26539,7 +26541,7 @@ return {

The base URI of the element nodes in the result is .

-

A schema is defined for the structure of the returned element: see A schema is defined for the structure of the returned document: see .

The result of the function will always be such that validation against this schema would succeed. @@ -26548,7 +26550,6 @@ return { that is, whether the elements and attributes in the returned tree have type annotations that reflect the result of validating against this schema.

-

The returned element node has no parent node.

@@ -26833,7 +26834,7 @@ return { -

New in 4.0

+

New in 4.0