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.
Arguments and Return TypeName | Type | Description |
$value |
xs:anyAtomicType? |
the atomic value to test |
$seq |
xs:anyAtomicType* |
the sequence of values to search |
return value |
xs:boolean |
XSLT Function DeclarationSee XQuery definition. | <xsl:function name="functx:is-value-in-sequence" as="xs:boolean"
xmlns:functx="http://www.functx.com">
<xsl:param name="value" as="xs:anyAtomicType?"/>
<xsl:param name="seq" as="xs:anyAtomicType*"/>
<xsl:sequence select="
$value = $seq
"/>
</xsl:function>
|
ExamplesXPath Example | 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 |
See AlsoHistory |
Recommended Reading:
|