do-while

The <do-while> action causes the actions specified by <arg-actions> to be repeated while the conditions specified by <arg-conditions> evaluate to true.

Example

<do-set-local-variable name="counter">
  <arg-string>
    <token-text>1</token-text>
  </arg-string>
</do-set-local-variable>

<do-while>
  <arg-conditions>
    <and>
      <if-local-variable mode="numeric" name="counter" op="not-gt">10</if-local-variable>
    </and>
  </arg-conditions>
  <arg-actions>
    <do-trace-message color="yellow" level="0">
      <arg-string>
        <token-text>Counter = </token-text>
        <token-local-variable name="counter"/>
      </arg-string>
    </do-trace-message>
    <do-set-local-variable name="counter">
      <arg-string>
        <token-xpath expression="$counter + 1"/>
      </arg-string>
    </do-set-local-variable>
  </arg-actions>
</do-while>

1. Allowed Content

arg-conditions
conditions 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-conditions , arg-actions )

4. Parent Elements

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

Top Elements || All Elements || Tree


DirXMLScript DTD