Trying to create a subset of a nodeset as follows. When I then go to loop
through jobCodesToUse there aren't any values, although in the trace I can
see where it is evaluating to true on the condition where it should be
adding "current-node." Subset of trace posted below shows there isn't
anything being added to jobCodesToUse - suspect syntax of adding
current-node. Thanks for any help.

<rule>
<description>Set Job Code subset</description>
<actions>
<do-set-local-variable name="jobCodesToUse" scope="policy">
<arg-node-set>
<token-xpath expression="empty"/>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-local-variable name="jobCode"/>
</arg-node-set>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="nocase" name="current-node"
op="lt">301</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-set-local-variable name="jobCodeFlag" scope="driver">
<arg-string>
<token-text xml:space="preserve">TRUE</token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="jobCodesToUse" scope="driver">
<arg-node-set>
<token-local-variable name="jobCodesToUse"/>
<token-local-variable name="current-node"/>
</arg-node-set>
</do-set-local-variable>
</arg-actions>
</do-if>
</arg-actions>
</do-for-each>
</actions>
</rule>
***


07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action:
do-for-each(arg-node-set(token-local-variable("jobCode"))).
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
arg-node-set(token-local-variable("jobCode"))
07:46:17 9B02F220 Drvrs: DISD Loopback ST: token-local-variable("jobCode")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Token Value: {<value> @timestamp
= "1185577413#1" @type = "string",<value> @timestamp = "1185821896#1" @type
= "string"}.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Arg Value: {<value> @timestamp =
"1185577413#1" @type = "string",<value> @timestamp = "1185821896#1" @type =
"string"}.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Performing actions for
local-variable(current-node) = <value> @timestamp = "1185577413#1" @type =
"string".
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action: do-if().
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Evaluating conditions.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: (if-local-variable 'current-node'
lt "301") = TRUE.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Performing if actions.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action:
do-set-local-variable("jobCodeFlag",scope="driver","TRUE").
07:46:17 9B02F220 Drvrs: DISD Loopback ST: arg-string("TRUE")
Thursday, Aug 2, 2007
07:46:17 9B02F220 Drvrs: DISD Loopback ST: token-text("TRUE")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Arg Value: "TRUE".
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action:
do-set-local-variable("jobCodesToUse",scope="driver",arg-node-set(token-loca
l-variable("jobCodesToUse")+token-local-variable("current-node"))).
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
arg-node-set(token-local-variable("jobCodesToUse")+token-local-variable("cur
rent-node"))
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
token-local-variable("jobCodesToUse")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Token Value: {}.
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
token-local-variable("current-node")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Token Value: {<value> @timestamp
= "1185577413#1" @type = "string"}.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Arg Value: {<value> @timestamp =
"1185577413#1" @type = "string"}.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Performing actions for
local-variable(current-node) = <value> @timestamp = "1185821896#1" @type =
"string".
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action: do-if().
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Evaluating conditions.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: (if-local-variable 'current-node'
lt "301") = TRUE.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Performing if actions.
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action:
do-set-local-variable("jobCodeFlag",scope="driver","TRUE").
07:46:17 9B02F220 Drvrs: DISD Loopback ST: arg-string("TRUE")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: token-text("TRUE")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Arg Value: "TRUE".
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Action:
do-set-local-variable("jobCodesToUse",scope="driver",arg-node-set(token-loca
l-variable("jobCodesToUse")+token-local-variable("current-node"))).
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
arg-node-set(token-local-variable("jobCodesToUse")+token-local-variable("cur
rent-node"))
07:46:17 9B02F220 Drvrs: DISD Loopback ST:
token-local-variable("jobCodesToUse")
07:46:17 9B02F220 Drvrs: DISD Loopback ST: Token Value: {}.