XML Script logo
region, replace - usage of
Usage

Region takes two elements, and returns them as text, including all intervening text and elements in a top to bottom fashion. I.e. If the first parameter is after the second parameter then nothing will be returned. If 'inclusive' is false, the first and last elements are excluded from the output, if 'inclusive' is true, they are included. The elements have to have the same direct parent and have to exist. If a parameter passed in is not indexed then it refers to the first occurrence of the element.

Replaces' first three parameters are the same as region. The forth parameter is what to replace the region selected with. If 'inclusive' is false and the two elements are next to each other then the replacement will go in-between the two elements.

Examples

Example of region

Example of replace

Version

1.1

Ref

t.71

Date

24 January 1999

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