Description
The functx:exclusive-or function returns true if one (and only one) of two boolean values is true. If either value is the empty sequence, the empty sequence is returned.
Arguments and Return TypeName | Type | Description |
$arg1 |
xs:boolean? |
the first boolean value |
$arg2 |
xs:boolean? |
the second boolean value |
return value |
xs:boolean? |
XSLT Function DeclarationSee XQuery definition. | <xsl:function name="functx:exclusive-or" as="xs:boolean?"
xmlns:functx="http://www.functx.com">
<xsl:param name="arg1" as="xs:boolean?"/>
<xsl:param name="arg2" as="xs:boolean?"/>
<xsl:sequence select="
$arg1 != $arg2
"/>
</xsl:function>
|
ExamplesXPath Example | Results |
---|
functx:exclusive-or(true(),false()) |
true |
functx:exclusive-or(true(),true()) |
false |
functx:exclusive-or(4 > 3,1 > 2) |
true |
History |
Recommended Reading:
|