Skip to Content
XQuery
book

XQuery

by Priscilla Walmsley
March 2007
Intermediate to advanced content levelIntermediate to advanced
512 pages
21h 15m
English
O'Reilly Media, Inc.
Content preview from XQuery

Specifying Serialization Parameters

Serialization, described in Chapter 22, is the process of writing your query results out to an XML document. Certain syntactic differences may appear when working with different implementations, such as the encoding used, whether an XML declaration is included at the beginning of a document, or whether the results are indented.

The default values for many serialization parameters are implementation-defined. Some implementations will let you specify values for the serialization parameters in a user interface, programmatically, or even as custom option declarations in the query. However, they are not required to provide this capability. As such, there is no XQuery syntax to specify these parameters. Example 23-1 shows how Saxon allows for an implementation-specific option, named output, which allows a query author to set values for serialization parameters in the query itself.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XQuery, 2nd Edition

XQuery, 2nd Edition

Priscilla Walmsley
XPath and XPointer

XPath and XPointer

John Simpson
XQuery Kick Start

XQuery Kick Start

James McGovern, Per Bothner, Kurt Cagle, James Linn, Vaidyanathan Nagarajan
Learning XSLT

Learning XSLT

Michael Fitzgerald

Publisher Resources

ISBN: 0596006349Supplemental ContentErrata