index-of


The index-of() function returns a sequence of integers indicating the positions within a particular sequence where items equal to a specified value occur.

For example, «index-of(("a", "b", "c"), "b") » returns 2 .

Argument

Data Type

Meaning

sequence

xdt:anyAtomicType*

The sequence to be searched

value

xdt:anyAtomicType

The value to be found

collation (optional)

xs:string

The collation to be used when comparing strings

Result

xs:integer*

A list containing the positions within the supplied sequence where items that are equal to the specified value have been found




XSLT 2.0 Programmer's Reference
NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)
ISBN: 764569090
EAN: 2147483647
Year: 2003
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net