http://www.w3.org/1999/XSL/Transform
b.writeText (text : string, [encoding : string]) : void
The method writeText is used to write the given text into the binary output stream. By default, it uses the configured literal encoding of the render engine. You may control the encoding by the usage of the optional parameter encoding.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b="http://onionworks.net/2004/renderengine/binary" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:output method="xml" />
<xsl:template match="/">
</xsl:stylesheet><xsl:value-of select="b.writeText('Hello world', 'ISO-8859-15')" />
<b:output mimeType="text/plain" />
</xsl:template>Textual output within a binary method
In this example "Hello World" is written as ISO encoded text into the binary output channel. In addition, the dynamic content type is set to text/plain.