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 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>
|
Element |
Description |
|---|---|
|
String argument. |
|
|
Node set argument. |
|
|
Java object argument. |
|
Attribute |
Possible Values |
Default Value |
|---|---|---|
|
disabled |
true | false True if this element is disabled. |
false |
|
name |
NMTOKEN Name of the variable. Supports variable expansion. |
#REQUIRED |
|
notrace |
true | false True if this element should not be traced during execution of the policy. |
false |
|
scope |
policy | driver Scope of the variable. Policy: Variable is visible only within the current policy during the current invocation of the policy. Driver: Variable is visible to all policies within the current driver until the driver is stopped. Supports variable expansion. |
policy |
( arg-string | arg-node-set | arg-object )
|
Element |
Description |
|---|---|
|
Actions that are performed by a <rule>. |
|
|
Actions argument. |