Elementname: ForAll

Beschreibung

Ruft die Kindelemente für alle Daten-Elemente auf, die auf das Muster bei select passen.

Erlaubte Attribute: limit, select, start

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

Elternelemente: AtPageCreation, AtPageShipout, B, Case, Color, Contents, Element, Fontface, ForAll, I, Li, Loop, NoBreak, Otherwise, Pagetype, Paragraph, Record, SaveDataset, SavePages, SetVariable, Span, Table, Td, Text, Textblock, Tr, U, URL, Ul, Until, While

Attribute

limit (Zahl, optional)

Die Anzahl der Kinder wird durch die Zahl begrenzt.

select (XPath Ausdruck)

Wählt die Kindelemente aus.

start (Zahl, optional, seit Version 2.3.67)

Der erste Eintrag der verarbeitet werden soll. Voreinstellung ist 1.

Beispiel

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

Erzeugt eine Tabellenzeile für alle Elemente eintrag im Datensatz data. So müsste in etwa ein entsprechender Eintrag in den Daten aussehen:

<data>
  <eintrag>a</eintrag>
  <eintrag>b</eintrag>
  <eintrag>c</eintrag>
</data>

Siehe auch

Switch

Befehlsübersicht

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