Changes

Jump to navigation Jump to search
42 bytes removed ,  03:01, 5 March 2014
no edit summary
Serialization parameters define how XQuery items and XML nodes are textually output, i.e., ''serialized''. (For input, see [[Parsers]].)
They have been formalized in the [http://www.w3.org/TR/xslt-xquery-serialization-30 W3C XQuery Serialization 3.0] document.
In BaseX, they can be specified in several ways:by…
* by including them in the [[XQuery_3.0#Serialization|prolog of the XQuery expression]],* by specifying them in the XQuery functions [[File_Module#file:write|file:write()]] or [[XQuery_3.0#Functions|fn:serialize()]],*: . The serialization parameters can either be are specifiedas…** as children of an {{Code|<output:serialization-parameters/>}} element, as defined for the [http://www.w3.org/TR/xpath-functions-30/#func-serialize fn:serialize()] function;** as map, which contains all key/value pairs:
**: <pre class="brush:xml">map { "method": "xml", "cdata-section-elements": "div", ... }</pre>
* by using the {{Code|-s}} flag of the BaseX [[Command-Line Options#BaseX Standalone|command-line]] clients,* by setting the [[Options#SERIALIZER|SERIALIZER]] option before running a query,* by setting the [[Options#EXPORTER|EXPORTER]] option before exporting a database, or* by setting them as [[REST#Parameters|REST]] query parameters<br/>
=Parameters=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu