diff --git a/specifications/xpath-functions-40/src/function-catalog.xml b/specifications/xpath-functions-40/src/function-catalog.xml index 5200a2b98..b8049abb0 100644 --- a/specifications/xpath-functions-40/src/function-catalog.xml +++ b/specifications/xpath-functions-40/src/function-catalog.xml @@ -21524,7 +21524,7 @@ return $M(collation-key("a", $C)) Determines whether the first row of the CSV should be treated as a list of column names and returned as a csv-columns-record in the columns entry of the returned map. Permitted values are a map of type - map(xs:integer, xs:string) or an xs:boolean. + map(xs:string, xs:integer) or an xs:boolean. item() false @@ -21544,7 +21544,7 @@ return $M(collation-key("a", $C)) the returned parsed-csv-structure-record. Implementations must not exclude the first row from the rows entry of the parsed-csv-structure-record. - A csv-columns-record is + A csv-columns-record is constructed using the supplied map and returned as the header entry of the parsed-csv-structure-record. The supplied map is used as the names entry, and a sequence of strings for the @@ -21758,7 +21758,7 @@ return $M(collation-key("a", $C)) `Alice,Aachen{$crlf}Bob,Berlin{$crlf}` - map { "column-names": map { 1: "Person", 2: "Location" } } + map { "column-names": map { "Person": 1, "Location": 2 } }

Specifying column names explicitly:

@@ -21807,7 +21807,7 @@ return $M(collation-key("a", $C))

Filtering columns, with column-names: map { ... }

- csv-to-xdm($csv-uneven-cols, map { "column-names": map { 1: "Person", 3: "Amount" }, "filter-columns": (2,1,4) })?columns + csv-to-xdm($csv-uneven-cols, map { "column-names": map { "Person": 1, "Amount": 3 }, "filter-columns": (2,1,4) })?columns map { "names": map { "Person": 1, "Amount": 3 }, "fields": ("Person", "", "Amount") @@ -21934,7 +21934,7 @@ return $M(collation-key("a", $C)) Determines whether the first row of the CSV should be treated as a list of column headers and returned as ]]> elements in the ]]> element. Permitted values are a map of type - map(xs:integer, xs:string) or an xs:boolean. + map(xs:string, xs:integer) or an xs:boolean. item() false @@ -21946,7 +21946,7 @@ return $M(collation-key("a", $C)) element.
Implementations must not include a ]]> element in the output. - The supplied map is used to + The supplied map is used to construct a sequence of ]]> elements to populate the ]]> element. The xs:integer denotes the column number, and the xs:string the column name. Gaps @@ -22027,7 +22027,7 @@ return $M(collation-key("a", $C))

An empty CSV with explicit column names:

- csv-to-xml("", map { "column-names": map { 1: "name", 3: "city"}) + csv-to-xml("", map { "column-names": map { "name": 1, "city": 3 })