do-for-each

The <do-for-each> action causes the actions specified by <arg-actions> to be repeated once for each node in <arg-node-set> with the local variable current-node set to a node-set containing only that node. If the current-node is an <entitlement-impl> element, then the actions will also be marked as if they were also enclosed in <do-implement-entitlement>. If the current-node is a <query-token> element returned by <token-query>, then that token is used to automatically retrieve the and process the next batch of query results.

Examples

<do-for-each>
  <arg-node-set>
    <token-added-entitlement name="Group"/>
  </arg-node-set>
  <arg-actions>
    <do-add-dest-attr-value class-name="Group" name="Member">
      <arg-dn>
        <token-local-variable name="current-node"/>
      </arg-dn>
      <arg-value type="dn">
        <token-dest-dn/>
      </arg-value>
    </do-add-dest-attr-value>
  </arg-actions>
</do-for-each>

1. Allowed Content

arg-node-set
node set argument
arg-actions
actions argument

2. Attributes

AttributeValue(s)Default Value
disabled true   |  false
true if this element is disabled
false
notrace true   |  false
false

3. Content Rule

( arg-node-set , arg-actions )

4. Parent Elements

actions
  actions that are performed by a <rule>
arg-actions
  actions argument

Top Elements || All Elements || Tree


DirXMLScript DTD