Hi everyone,

I'm facing a problem where I need to send an e-mail with the help of an
e-mail template object. The number of replacement tokens can differ,
depending which message needs to be send. I need to find a way to
dynamically set my replacement tokens based upon operation-data:

<notification
src-dn="\IDVAULT-TREE-DEV\Meta\Organization\ManagementPasswordAudit"
timestamp="1222678114#179" type="mail">
<replacements event-id="pwdaudit#81">
<replacement name="#aanhef#">
<content lang="nl">mevrouw Simic</content>
<content lang="en">Ms Simic</content>
</replacement>
<replacement name="#date#">
<content lang="nl">21-08-2008</content>
<content lang="en">21-08-2008</content>
</replacement>
</replacements>
</notification>
</notifications>

In the above example operation data there are 2 replacement elements
that I need to convert to 4 replacement tokens. The problem is that
arg-string name attribute and the value needs to be set dynamically
based on the elements and attributes within the operation-data.
Example:

<arg-string name="#aanhef#nl">
<token-text>mevrouw Simic</token-text>
</arg-string>
<arg-string name="#aanhef#en">
<token-text>Ms Simic</token-text>
</arg-string>
<arg-string name="#date#nl">
<token-text>21-08-2008</token-text>
</arg-string>
<arg-string name="#date#en">
<token-text>21-08-2008</token-text>
</arg-string>

Any idea how to this with DirXML script? Thanks in advance!

Sebastiaan


--
sveldhuisen
------------------------------------------------------------------------
sveldhuisen's Profile: http://forums.novell.com/member.php?userid=18142
View this thread: http://forums.novell.com/showthread.php?t=345348