functx:is-value-in-sequence
Whether an atomic value appears in a sequence
Description
The functx:is-value-in-sequence function returns a boolean value indicating whether or not an atomic value is equal (based on typed values) to a value in the sequence. If $value or $seq is the empty sequence, it returns false.
Parameters |
Description |
---|---|
value:string() |
the atomic value to test |
seq:string() |
the sequence of values to search |
Examples
XPath |
Results |
---|---|
functx:is-value-in-sequence(1,(1,2,3)) |
true |
functx:is-value-in-sequence(5,(1,2,3)) |
false |
functx:is-value-in-sequence(1.0,(1,2,3)) |
true |