Changes

Jump to navigation Jump to search
4 bytes added ,  12:31, 2 July 2020
m
Text replacement - "[http://www.w3.org/TR/xpath-functions-31" to "[https://www.w3.org/TR/xpath-functions-31"
==Adaptive Serialization==
The {{Code|adaptive}} serialization provides an intuitive textual representation for all XDM types, including maps and arrays, functions, attributes, and namespaces. All items will be separated by the value of the {{Code|item-separator}} parameter, which by default is a newline character. It is utilized by the functions <code>[[Profiling Module#prof:dump|prof:dump]]</code> and <code>[httphttps://www.w3.org/TR/xpath-functions-31/#func-trace fn:trace]</code>.
Example:
=Functions=
The following functions have been added in the [httphttps://www.w3.org/TR/xpath-functions-31/ XQuery 3.1 Functions and Operators] Specification:
==Map Functions==
* <code>fn:parse-json($input as xs:string, $options as map(*)) as item()?</code>
Parses the supplied string as JSON text and returns its item representation. The result may be a map, an array, a string, a double, a boolean, or an empty sequence. The allowed options can be looked up in the [httphttps://www.w3.org/TR/xpath-functions-31/#func-parse-json specification].
<syntaxhighlight lang="xquery">
</syntaxhighlight>
If the [http://site.icu-project.org/download ICU Library] is downloaded and added to the classpath, the full [httphttps://www.w3.org/TR/xpath-functions-31/#uca-collations Unicode Collation Algorithm] features become available in BaseX:
<syntaxhighlight lang="xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu