Version 5.6.0

SortSequence

Sortiert eine Liste.

Kindelemente

(keine)

Elternelemente

AtPageCreation, AtPageShipout, Case, Contents, Element, ForAll, Loop, Otherwise, Record, SaveDataset, SavePages, SetVariable, Until, While

Attribute

criterion (Text)
Attributname, nach dem sortiert werden soll.
numerical (optional, seit Version 3.1.21)
Sortiere alphabetisch oder numerisch
  • yes: Sortiere numerisch
  • no: Sortiere alphabetisch (Voreinstellung)
order (optional, seit Version 3.1.22)
Wähle die Sortierreihenfolge
  • ascending: Benutze aufsteigende Sortierreihenfolge (Voreinstellung)
  • descending: Benutze absteigende Sortierreihenfolge
removeduplicates (Text, optional)
Wenn Duplikate gelöscht werden sollen, steht hier das Attribut mit dem Inhalt.
select (XPath-Ausdruck)
Datensatz, der sortiert werden soll

Beispiel

Daten:

<data>
  <elt value="one"/>
  <elt value="two"/>
  <elt value="three"/>
</data>

Layout:

<Record element="data">
  <SetVariable variable="unsorted" select="*"/>
  <SetVariable variable="sorted">
    <SortSequence select="$unsorted" criterion="value"/>
  </SetVariable>
  <PlaceObject>
    <Textblock>
      <ForAll select="$sorted">
        <Paragraph><Value select="@value"/></Paragraph>
      </ForAll>
    </Textblock>
  </PlaceObject>
</Record>