Application Integration
- Application Integration
- All Products
fn:index-of(seqParam, srchParam, collation)
Argument | Required/Optional | Description |
|---|---|---|
seqParam
| Required | The sequence of atomic values to be searched. This sequence
can include strings, numbers, and booleans. |
srchParam | Optional | The item for which you want to find the index positions within
$seqParam . |
collation | Optional | A string specifying the collation to use when comparing
strings, if required. If omitted, the default collation is used. |
|
|
|---|---|
fn:index-of( ('a', 'b', 'c'), 'a') | 1 |
fn:index-of( ('a', 'b', 'c'), 'd') | () |
fn:index-of( (4, 5, 6, 4), 4) | (1, 4) |
fn:index-of( (4, 5, 6, 4), 04.0) | (1, 4) |
fn:index-of( ('a', 5, 6), 'a') | 1 |
fn:index-of( (), 'a') | () |
fn:index-of( (<a>1</a>, <b>1</b>),
<c>1</c> ) | (1, 2) |