do-set-local-variable

指定した名前で、<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

Javaオブジェクトの引数です。

属性

属性

有効値

デフォルト値

disabled

false

name

NMTOKEN

変数の名前です。変数の拡張がサポートされます。

#REQUIRED

false

scope

policy | driver

変数のスコープです。

policy: 変数は、ポリシーの現在の呼び出しで、現在のポリシー内からのみ可視です。

driver: 変数は、ドライバーが停止されるまで、現在のドライバー内のすべてのポリシーから可視です。

変数の拡張がサポートされます。

ポリシー

内容の規則

( arg-string | arg-node-set | arg-object )

親要素

要素

説明

actions

rule

arg-actions