ForAll

Executes the given commands for all elements in the data XML file that match the contents of the attribute select.

Child elements

ClearPage, Column, ForAll, HTML, Li, LoadXML, Loop, Message, NextFrame, NextRow, Paragraph, PlaceObject, ProcessNode, SaveXML, SetVariable, Switch, Td, Tr, Until, Value, While

Parent elements

AtPageCreation, AtPageShipout, Case, Columns, Contents, DefineMasterPage, ForAll, Function, Loop, Ol, Otherwise, Record, SaveXML, Table, TableHead, Td, TextBlock, Tr, Ul, Until, While

Attributes

select (XPath expressions)
Selects the child elements from the data XML

Example

<Record match="data">
  <PlaceObject>
    <Table>
      <ForAll select="entry">
        <Tr><Td><Paragraph><Value select="string(.)"/></Paragraph></Td></Tr>
      </ForAll>
    </Table>
  </PlaceObject>
</Record>

Creates a table row for all elements entry in the data element data. The data XML should look similar to this:

<data>
  <entry>a</entry>
  <entry>b</entry>
  <entry>c</entry>
</data>

See also