Messages and Codes Reference Guide (PDF)

MarkLogic 10 Product Documentation
Messages and Codes Reference Guide
— Chapter 26

« Previous chapter
Next chapter »

SER Messages

SER-BADCHAR

W3C XQuery Standard Equivalent: err:SERE0008

Message Text

Character cannot be represented in desired output encoding: variable1

Cause

A character that cannot be represented in the desired output encoding appears in a context where character references are not allowed (for example, the character occurs in the name of an element), or a character cannot be serialized because it is not a legal UTF-8 or UTF-16 character.

Response

Determine the bad character and, if possible, replace it with a valid one (or just delete it). Or avoid serialization of the bad character in the current context.

SER-BADHTMLCHAR

W3C XQuery Standard Equivalent: err:SERE0014

Message Text

Invalid HTML character between #x7F and #x9F: variable1

Cause

The document being serialized as HTML contains an invalid HTML character between #x7F and #x9F.

Response

Avoid serialization of the invalid character as HTML. The document may be serializable as XML.

SER-BADHTMLPI

W3C XQuery Standard Equivalent: err:SERE0015

Message Text

Cannot use HTML output method when > appears in a PI

Cause

The character > appears in a processing instruction that is being serialized as HTML.

Response

Either try XML serialization, because it does not impose this restriction or remove the > character from the processing instruction.

SER-BOM

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter: byte order mark = variable1

Cause

An attempt was made to assign a value other than yes or no to the byte-order-mark (byteOrderMark in JavaScript) output option.

Response

Assign only yes or no values to the byte-order-mark (byteOrderMark in JavaScript) output option.

SER-CHARMAP

W3C XQuery Standard Equivalent: err:SEPM0016

W3C XSLT Standard Equivalent: err:XTSE1590

Message Text

Character map not found: {variable1}variable2

Cause

Serialization specifies a character map that does not exist.

Response

The output option specifying the character map should be removed, or the output option should instead specify one of the standard character maps normal, math, or pub, or supply the missing map, for example with the use-character-maps output option.

SER-CHARMAPBAD

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Character map not found

SER-DEFATTRS

Message Text

Invalid value for serialization parameter default attributes.: variable1

Cause

An attempt was made to assign a value other than yes or no to the default-attributes (defaultAttributes in JavaScript) output option.

Response

Assign a yes or no value to the default-attributes (defaultAttributes in JavaScript) output option.

SER-DOCTYPESYSMULTIELEMROOT

W3C XQuery Standard Equivalent: err:SEPM0004

Message Text

Cannot specify the options parameter doctype system with multiple element roots.

Cause

You are trying to specify a doctype-system (doctypeSystem in JavaScript) parameter with multiple element roots.

Response

Specify only a single element root for the doctype-system (doctypeSystem in JavaScript) parameter.

SER-DOCTYPESYSTEM

W3C XQuery Standard Equivalent: err:SEPM0009

Message Text

The doctype system parameter may not be specified with version!=1.0 and omit-xml-declaration=yes

SER-DOCTYPESYSTOPLEVTXT

W3C XQuery Standard Equivalent: err:SEPM0004

Message Text

Cannot specify the options parameter doctype system with top level text nodes.

SER-ENCODING

W3C XQuery Standard Equivalent: err:SESU0007

Message Text

Unsupported or invalid encoding: variable1

SER-ESCURIATTR

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter: escape uri attributes: variable1

Cause

You have entered an invalid option for the escape-uri-attributes (escapeUriAttributes in JavaScript) serialization parameter.

Response

Please enter either yes or no for the escape-uri-attributes (escapeUriAttributes in JavaScript) parameter.

SER-INCCONTYPE

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter:include content-type.: variable1

SER-INDENT

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter indent: variable1

Cause

You have entered an invalid value for the indent parameter.

Response

Enter either yes or no (all lower case) for the indent serialization parameter.

SER-INDENTUNYUPED

Message Text

Invalid value for serialization parameter: indent untyped: variable1

SER-MEDIATYPE

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter of a mime type representing the media type: variable1

SER-METHOD

W3C XQuery Standard Equivalent: err:SEPM0016

W3C XSLT Standard Equivalent: err:XTSE1570

Message Text

Invalid value for serialization parameter method: variable1

Cause

You have entered an invalid value for the serialization method.

Response

Please enter any one of the following for the method serialization parameter: xml,html,xhtml,text (all lower case).

SER-METHODNS

W3C XQuery Standard Equivalent: err:SEPM0016

W3C XSLT Standard Equivalent: err:XTSE1570

Message Text

Invalid namespace for serialization parameter method: variable1

SER-NORMFORM

W3C XQuery Standard Equivalent: err:SESU0011

Message Text

Unsupported normalization form: variable1

SER-OMITXMLDEC

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter omit-xml-declaration: variable1

Cause

You have provided an invalid option for the serialization parameter omit-xml-declaration (omitXmlDeclaration in JavaScript).

Response

Please enter either yes or no for the serialization parameter omit-xml-declaration (omitXmlDeclaration in JavaScript).

SER-STANDALONE

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter standalone: variable1

Cause

You have entered an invalid option for the serialization parameter standalone.

Response

Please enter either yes or no only for the standalone parameter.

SER-STANDALONEMULTIELEMROOT

W3C XQuery Standard Equivalent: err:SEPM0004

Message Text

Cannot specify a standalone parameter with multiple element roots

SER-STANDALONEOMITXMLDEC

W3C XQuery Standard Equivalent: err:SEPM0009

Message Text

The standalone parameter has a value other than 'omit' and variable1 = yes

Cause

You have entered an unacceptable value for the standalone serialization parameter, when the parameter omit-xml-declaration (omitXmlDeclaration in JavaScript) has the value yes.

Response

Only omit is an allowed value for the standalone parameter when omit-xml-declaration (omitXmlDeclaration in JavaScript) is set to yes.

SER-STANDALONETOPLEVTXT

W3C XQuery Standard Equivalent: err:SEPM0004

Message Text

Cannot specify a standalone parameter with top level text nodes

SER-UNDECPREF

W3C XQuery Standard Equivalent: err:SEPM0016

Message Text

Invalid value for serialization parameter: undeclare prefixes: variable1

SER-UNDECPREF2

W3C XQuery Standard Equivalent: err:SEPM0010

Message Text

Cannot undeclare prefixes with XML 1.0

SER-VERSION

W3C XQuery Standard Equivalent: err:SESU0013

Message Text

Unsupported or invalid XML or HTML version: variable1

« Previous chapter
Next chapter »
Powered by MarkLogic Server | Terms of Use | Privacy Policy