I have successfully generated a random number in a Loopback driver on
several occasions, the first line of which uses the following code

<do-set-local-variable name="lvRandomNumberSeed" notrace="true"
scope="policy">
<arg-object>
<token-xpath expression="random:new()"/>
</arg-object>
</do-set-local-variable>
...

I have copied the same code to an eDir to eDir driver and tried placing
it in the create or command transforms and get the following error. Why
?

13:32:27 80BCEBA0 Drvrs: Stage PT: Action:
do-set-local-variable("lvRandomNumberSeed",scope="policy",arg-object(token-xpath("random:new()"))).
13:32:27 80BCEBA0 Drvrs: Stage PT:
arg-object(token-xpath("random:new()"))
13:32:27 80BCEBA0 Drvrs: Stage PT: token-xpath("random:new()")
13:32:27 80BCEBA0 Drvrs: Stage PT:
DirXML Log Event -------------------
Driver: \DEV-VAULT\resources\IDM\Driver Set\Vault-to-staging
Channel: Publisher
Object: \DEV-STAGING\Users\HD\HDF (Users\Active\HDF)
Status: Error
Message: Code(-9131) Error in
vnd.nds.stream://DEV-VAULT/resources/IDM/Driver+Set/Vault-to-staging/Publisher/pub-CommandTransform#XmlData:207
: Error evaluating XPATH expression 'token-xpath("random:new()")' :
com.novell.xml.xpath.XPathEvaluationException: function 'random:new' not
found.

Thanks for your help


--
chall
------------------------------------------------------------------------
chall's Profile: http://forums.novell.com/member.php?userid=34675
View this thread: http://forums.novell.com/showthread.php?t=419451