createGifEncoder () : nodeset

With this method pictures can be transformed into the GIF picture format. If the parameters are not specified, then the values “false” for the parameter “interlace” and “false” for the parameter “optimizeColorDepth” are set. No colour value is set for the parameter “transparentColor”, which represents the transparent colour of the picture.

The following example shows how the method is used, with the transfer of all possible parameters.

<xsl:stylesheet xmlns:xsl="" xmlns:ise="" xmlns:is="" xmlns:b="" xmlns:onion="" 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:createGifEncoder(true(),true(), is:createColor(255,255,255)))" />
<b:output mimeType="image/gif">
<b:webResponse expires="60" />
Example of GIF encoder