Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

SerializationSpec

Specify serialization of query output.


Syntax

SerializationSpec

graphics/SerializationSpec.png

QuotedQName StringLiteral StringLiteral StringLiteral

Top of page

Description

A SerializationSpec is a query pragma that has the form of a QPI (query processing instruction), i.e., it is enclosed by "{?" and "?}". It specifies how Tamino returns the output of a query by applying a serialization method. One common effect is that Tamino does not wrap the output with the standard response wrapper using the document element ino:response.

The following methods for serializing the query output are available:

QuotedQName

Specify an output handler that performs serialization in place of the standard XQuery processor. It must have been registered as a server extension and can take zero or more parameters separated by whitespace. Since the name of the output handler is the value of method, it cannot be "text" or "xml" (names are case-sensitive).

text

The query output is treated as text. If it is not followed by a media type then "text/xml" is assumed and set as the Content-Type value in the HTTP response header.

xml

The query output is treated as XML. If it is not followed by a media type then "text/xml" is assumed and set as the Content-Type value in the HTTP response header. Although the query output is expected to be XML there are two exceptions that may violate the rules of an XML document:

ino:document

retrieve non-XML documents

Top of page

Examples

Top of page

Related Syntax Construct

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

Prolog

Top of page