指定した名前で、<arg-string>で指定された文字列値、<arg-node-set>で指定されたXPath 1.0ノードセット、または<arg-object>で指定されたJava*オブジェクトのローカル変数を設定します。
<!-- 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 )