Elementname: Loop

Beschreibung

Wiederhole den Inhalt dieses Elements mehrfach.

Erlaubte Attribute: select, variable

Kindelemente: Action, Attribute, B, Barcode, Bookmark, Br, Column, Columns, Copy-of, DefineColor, DefineFontalias, DefineFontfamily, DefineTextformat, Element, Fontface, ForAll, Frame, Group, HSpace, Hyphenation, I, Image, Include, InsertPages, Li, LoadDataset, LoadFontfile, Loop, Message, NewPage, NextFrame, NextRow, Options, Output, Pageformat, Paragraph, PlaceObject, PositioningArea, PositioningFrame, ProcessNode, SaveDataset, SavePages, SetGrid, SetVariable, SortSequence, Sub, Sup, Switch, Table, Tablehead, Tablerule, Td, Tr, Trace, Until, Value, While

Elternelemente: AtPageCreation, AtPageShipout, B, Case, Color, Columns, Contents, Fontface, ForAll, I, Loop, NoBreak, Otherwise, Paragraph, PositioningArea, Record, SaveDataset, SavePages, SetVariable, Table, Td, Text, Textblock, Tr, U, Until, While

Attribute

select (XPath Ausdruck)

Die Anzahl der Schleifendurchläufe. Muss eine Zahl oder in eine Zahl konvertierbar sein.

variable (Text, optional)

Wenn angegeben, wird die Nummer des Schleifendurchlaufs in dieser Variablen gespeichert, ansonsten in _loopcounter.

Beispiel

<PlaceObject>
  <Table width="10">
    <Loop select="5" variable="i">
      <Tr><Td><Paragraph><Value select="$i"/></Paragraph></Td></Tr>
    </Loop>
  </Table>
</PlaceObject>

Siehe auch

ForAll

Befehlsübersicht

Version: 2.7.13 | Startseite | Befehlsreferenz | Andere Sprache: Englisch