XML Script logo next up prev
Modifiers
Description

When you have more than one element with the same name, it is often useful to be able to specify which elements you want. There are two ways to do this: slices and sub-content stipulations (SCS). A slice allows you to specify numerically which elements you want, for example, you could specify the first and third to fifth elements. A sub-content stipulation allows you to specify elements which match certain criteria.

Slices and sub-content Stipulations are described in more detail further on.

Example

Syntax: [slice]

foo[3]

The third foo element

Example

Syntax: {SCS}

foo{.bar == 2}

The foo elements for which the bar attribute is 2

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