I was going to respond with some sample policy, but I am not sure what
you are trying to do.

1) What is the trigger event?
Two options: a) add a new value
b) Remove a value

2) What is the result you want?
proxyAddresses set to what? Looks like you are trying to build an LDIF
file from this XSLT which is not how you would do it in IDM.

Rather you would use the Add destination attribute or set destination
attribute (or removed destination attribute) tokens and build the string
you want.


On 7/3/2012 11:26 PM, ayeungied wrote:
>
> I the coding of the update-sv-attribue also
>
> <xsl:template name="update-sv-attribute">
> <xslaram name="cn"/>
> <xslaram name="mailou"/>
> <xslaram name="attr"/>
> <xslaram name="value"/>
> <xsl:if test="string-length($cn) > 0 and string-length($mailou) > 0
> and string-length($attr) > 0">
> <xsl:value-of select="concat('dn: CN=', string($cn), ',OU=',
> string($mailou), ',', $ObjContainer, $crlf)"/>
> <xsl:value-of select="concat('changetype: modify', $crlf)"/>
> <xsl:choose>
> <xsl:when test="string-length($value) > 0">
> <!-- replace with the new value -->
> <xsl:value-of select="concat('replace: ', $attr, $crlf)"/>
> <xsl:value-of select="concat($attr, ': ', $value, $crlf)"/>
> </xsl:when>
> <xsltherwise>
> <!-- remove the attribute -->
> <xsl:value-of select="concat('replace: ', $attr, $crlf)"/>
> </xsltherwise>
> </xsl:choose>
> <xsl:value-of select="'-'"/>
> <xsl:value-of select="$crlf"/>
> <xsl:value-of select="$crlf"/>
> </xsl:if>
> </xsl:template>
>
> The coding cannot be inserted to the rule set directly, would anyone
> can point me to the right direction?
>
> Thanks & Regards,
>
> Agnes
>
>