Changes

Jump to navigation Jump to search
44 bytes added ,  14:53, 18 November 2015
{{Mark|Updated with Version 8.4}}: The method was aligned with the latest version of the specification.
The {{Code|adaptive}} serialization provides a 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>[http://www.w3.org/TR/xpath-functions-31/#func-trace fn:trace]</code>.
Example:
<pre class="brush:xquery">
declare option output:method 'adaptive';
<element id='id0'/>/@id,
declare option outputxs:method 'adaptive';token("abc"),
map { 'key': 'value' },
true#0
<pre class="brush:xml">
id="id0"
xs:token("abc"),
map {
"key": "value"
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu