http://onionworks.net/2006/imageservice/encoders

createTlaEncoder ([password : string]) : nodeset

With this method, a picture can be changed into the TLA picture format. It is possible to encode this picture format. The key is then necessary in order to look at the picture and carry out changes.

The use is shown in the following example.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ise="http://onionworks.net/2006/imageservice/encoders" xmlns:is="http://onionworks.net/2006/imageservice" xmlns:b="http://onionworks.net/2004/renderengine/binary" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no" />
<xsl:template match="/resource">
<xsl:variable name="workspace" select="is:createWorkspace(@src, true())" />
<xsl:variable name="doWrite" select="is:writeWorkspace($workspace, ise:createTlaEncoder('passwort'))" />
<b:output mimeType="image/tla">
<b:webResponse expires="60" dispositionType="attachment" filename="TlaEncoderBeispiel" />
</b:output>
</xsl:template>
</xsl:stylesheet>
Example of TLA Encoder

In this example, a picture in the TLA picture format is created with the password "passwort".