Description
The fn:remove function returns a copy of $target with the item at position $position removed. Position numbers start at 1, not 0.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type | Description |
$target |
item()* |
the sequence to remove an item from |
$position |
xs:integer |
the position to remove the item from |
return value |
item()* |
ExamplesXQuery Example | Results |
---|
remove( ('a', 'b', 'c'), 2) |
('a', 'c') |
remove( ('a', 'b', 'c'), 10) |
('a', 'b', 'c') |
remove( ('a', 'b', 'c'), 0) |
('a', 'b', 'c') |
History |
Recommended Reading:
|