This document uses the err
prefix which represents the
same namespace URI (http://www.w3.org/2005/xqt-errors) as defined in
[XML Path Language (XPath) 3.1]. Use of this
namespace prefix binding in this document is not normative.
It is an error if an item in S6 in sequence normalization is an attribute node or a namespace node.
It is an error if the serializer is unable to satisfy the rules for either a well-formed XML document entity or a well-formed XML external general parsed entity, or both, except for content modified by the character expansion phase of serialization.
It is an error to specify the doctype-system parameter, or to
specify the standalone parameter with a value other than
omit
, if the instance of the data model contains text
nodes or multiple element nodes as children of the root
node.
It is an error if the serialized result would contain an
NCNameNames that contains a character that is not
permitted by the version of Namespaces in XML specified by the
version
parameter.
It is an error if the serialized result would contain a character
that is not permitted by the version of XML specified by the
version
parameter.
It is an error if an output encoding other than UTF-8
or UTF-16
is requested and the serializer does not support that
encoding.
It is an error if a character that cannot be represented in the encoding that the serializer is using for output appears in a context where character references are not allowed (for example if the character occurs in the name of an element).
It is an error if the omit-xml-declaration
parameter
has the value yes
,
true
or 1
,
and the standalone
attribute has a value other than omit
; or the
version
parameter has a value other than 1.0
and the doctype-system
parameter is
specified.
It is an error if the output method is xml
or
xhtml
, the value of the undeclare-prefixes
parameter is
one of,
yes
,
true
or 1
,
and the value of the
version
parameter is 1.0.
It is an error if the value of the normalization-form
parameter specifies a normalization form that is not supported by the
serializer.
It is an error if the value of the normalization-form
parameter is fully-normalized
and any relevant construct
of the result begins with a combining character.
It is an error if the serializer does not support the version of
XML or HTML specified by the version
parameter.
It is an error to use the HTML output method if characters which are permitted in XML but not in HTML appear in the instance of the data model.
It is an error to use the HTML output method when >
appears within a processing instruction in the data model instance
being serialized.
It is an error if a parameter value is invalid for the defined domain.
It is an error if evaluating an expression in order to extract the setting of a serialization parameter from a data model instance would yield an error.
It is an error if evaluating an expression in order to extract the
setting of the use-character-maps
serialization parameter
from a data model instance would yield a sequence of length greater
than one.
It is an error if an instance of the data model used to specify the settings of serialization parameters specifies the value of the same parameter more than once.
It is an error if a numeric value being serialized using the
JSON output method cannot be represented in the JSON grammar
(e.g. +INF
, -INF
, NaN
).
It is an error if a sequence being serialized using the JSON output method includes items for which no rules are provided in the appropriate section of the serialization rules.
It is an error if a map being serialized using the JSON output method
has two keys with the same string value, unless the
allow-duplicate-names
has the value
yes
,
true
or 1
.
It is an error if a sequence being serialized using the JSON output method is of length greater than one.