XQuery -Sequence Function- position Function - XQuery

The position function is used in FLOWR expression which helps in getting the position of an item in a sequence.

Syntax

Example

XQuery Expression

Output

Verify the Result

In order to test the above-mentioned functionality, replace the contents of books.xqy (mentioned in Environment Setup chapter) with the above XQuery expression and execute the XQueryTester java program to verify the result.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XQuery Topics