Sets a local variable with the given name to the string value specified by <arg-string>, the XPath 1.0 node set specified by <arg-node-set>, or the Java* object specified by <arg-object>.
<!-- sets variable equal to the string value of the first value of Surname--><do-set-local-variable name="lastName"> <arg-string> <token-attr name="Surname"/> </arg-string> </do-set-local-variable><!-- sets variable equal to all the value elements of Surname --><do-set-local-variable name="lastName"> <arg-node-set> <token-attr name="Surname"/> </arg-node-set> </do-set-local-variable><!-- sets variable equal to an instance of java.util.Random --><!-- note that the prefix jrandom needs to have been mapped to --><!-- the URI http://www.novell.com/nxsl/java/java.util.Random --><!-- on the <policy> --><do-set-local-variable name="lastName"> <arg-object> <token-xpath expression="jrandom:new()"/> </arg-object> </do-set-local-variable>
( arg-string | arg-node-set | arg-object )
Element |
Description |
---|---|
Actions that are performed by a <rule>. |
|
Actions argument. |