XML Script logo next up prev
Sub-content stipulations (SCS)
Description

A sub-content stipulation (SCS) is used to select items from an array by stipulating a condition which must be met: only items for which the condition is true will be returned. The syntax for this is to enclose the condition in braces ('{' and '}') after the item name when giving an item list.

The condition is a standard expression, with one addition. It is possible to confuse the element on which the SCS is acting and the current data element. In order to overcome this, the '%' branch specifier must be used to refer to the current data element. If the '%' is omitted, the item list will be relative to the element the SCS is acting on.

Example

Syntax: {expression}

foo{.bar == 1}

The foo elements whose bar attribute is 1

Example

Syntax: {%item_list}

foo{%.fred == .barney}

The foo elements whose barney attribute equals the fred attribute of the current data element

Next...

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited