http://onionworks.net/2006/imageservice

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="http://onionworks.net/2004/renderengine/binary" xmlns:is="http://onionworks.net/2006/imageservice" xmlns:ise="http://onionworks.net/2006/imageservice/encoders" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" 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}" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
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.