setProperty (obj : nodeset, propertyName : string, value : any) : void

Properties of objects can be set and overwritten with this method. It is not possible to create a generally applicable list of possible properties, since each object has specific properties. In the following example, a property of the TiffEncoder is changed:

<xsl:stylesheet xmlns:b="" xmlns:is="" xmlns:ise="" xmlns:xsl="" xmlns:onion="" version="1.0">
<xsl:template match="image">
<xsl:if test="image/@original">
<xsl:variable name="workspace" select="is:createWorkspace($imageSource, $fromDataSource)" />
<xsl:variable name="encoder" select="ise:createTiffEncoder()" />
<xsl:variable name="writecolorprofile" select="is:setProperty($encoder, 'WriteImageColorProfile', 'true')" />
<xsl:value-of select="is:writeWorkspace($workspace, $encoder)" />
<b:output mimeType="{$mimeType}" />
Example: setProperty

In this example, a picture which was saved in the colour model CMYK is transformed into the colour model RGB. For the transformation it is necessary to set the setting “WriteImageColorProfile” to true() for the encoder.