SortSequence
Sort a list.
Allowed attributes: criterion, numerical, removeduplicates, select
Child elements: (none)
Parent elements: AtPageCreation, AtPageShipout, Case, Contents, ForAll, Loop, Otherwise, Record, SaveDataset, SavePages, SetVariable, Until, While
Name of the attribute that is used as the sort key.
Sort alphabetical or numerical
yes: |
Sort alphabetical |
no: |
Sort alphabetical (default) |
If this attribute is used then it contains the name of the data-attribute that gets evaluated when duplicates are eliminated.
The data that should be sorted.
Data:
<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"></Value></Paragraph> </ForAll> </Textblock> </PlaceObject> </Record>