Skip to content

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, Li, LoadDataset, Loop, Message, NextFrame, NextRow, Paragraph, PlaceObject, ProcessNode, SaveDataset, SetVariable, Switch, Tr, Until, Value, While

Parent elements#

AtPageCreation, AtPageShipout, Columns, Contents, DefineMasterpage, Function, Ol, Record, SaveDataset, Table, Tablehead, Td, Textblock, Tr, Ul

Attributes#

limit (number, optional)
Limits the number of children to the given number.
select (XPath expressions)
Selects the child elements from the data XML
start (number, optional)
The first entry to process. Default is 1.

Example#

<Record element="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#