Iterator-Expression - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Guidelines
The iterator-count command specifies the number of times to run the specified
action for the current for-each action. During the loop, the var://service/
multistep/loop-count service variable is set to the current iteration of the loop.
The first iteration starts the count at 1.
This command is meaningful only when both of the following conditions are met:
v The action type that is specified by the type command is for-each.
v The iteration type that is specified by the iterator-type command is count.
Related Commands
iterator-type, loop-action, type
Examples
v Specifies that the transformer action runs 4 times.

iterator-expression

Specifies an XPath expression for the current for-each action.
Syntax
iterator-expression expression
Parameters
expression
Guidelines
The iterator-expression command specifies the XPath expression to apply to the
input context of a loop. The loop action runs one time for each item in the node set
that the XPath expression produces. The var://service/multistep/loop-iterator
service variable is set to the matching node.
This command is meaningful only when both of the following conditions are met:
v The action type that is specified by the type command is for-each.
v The iteration type that is specified by the iterator-type command is xpath.
Related Commands
input, iterator-type, loop-action, type
Examples
v Specifies that the transformer action runs one time for each item element in the
# type for-each
# iterator-type count
# iterator-count 4
# loop-action transformer
Specifies the XPath expression that the loop should use.
INPUT input context.
Chapter 59. Processing Action configuration mode
533

Advertisement

Table of Contents
loading

Table of Contents