NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

insert-before

The insert-before() function returns a sequence constructed by inserting an item, or a sequence of items, at a given position within another sequence. For example, «insert-before(("a", "b", "c"), 2, "X") » returns «("a", "X", "b", "c") » .

Argument

Data Type

Meaning

sequence-1

item()*

The original sequence

position

xs:integer

The position in the original sequence where the new items are to be inserted

sequence-2

item()*

The items that are to be inserted

Result

item()*

The constructed sequence

Категории