Stylus Studio XML Editor

Table of contents

Appendices

8 Text Output Method

Text Output Method

The text output method outputs the instance of the data model by outputting the string-value of every text node in the instance of the data model in document order without any escaping.

A newline character in the instance of the data model MAY be output using any character sequence that is conventionally used to represent a line ending in the chosen system environment.

The media-type parameter is applicable for the text output method. See [serparam] for more information.

The encoding parameter identifies the encoding that the text output method MUST use to convert sequences of characters to sequences of bytes. Processors Serializers are REQUIRED to support values of UTF-8 and UTF-16. The default is implementation-defined. A serialization error occurs if the serializer does not support the encoding specified by the encoding parameter. The processor serializer MUST signal the error. If the instance of the data model contains a character that cannot be represented in the encoding that the processor serializer is using for output, the serializer SHOULD MUST signal a serialization error.

delEThe default encoding for the text output method is implementation-defined.

The delEnormalize-unicode addEnormalization-form parameter is applicable for the text output method. The values NFC and none MUST be supported by the processor serializer. A serialization error results if the value of the normalization-form parameter specifies a normalization form that is not supported by the processor serializer; the processor serializer MUST signal the error.

delGThe use-character-maps parameter is applicable for the xml output method.

The use-character-maps parameter is applicable for the chgCtext output method. See [character-maps] for more information.

addGThe byte-order-mark parameter is applicable for the text output method. See [serparam] for more information.