I want to create an xsl: function with several parameters that can return boolean, I have problems:
<xsl:function name="my:isEqual">
Your problems begin even here. As written, nothing guarantees that this function will not return any type or sequence of XDM elements.
. xsl:function . . . .
, : :
<xsl:function name="my:isEqual">
<xsl:param name="Object1" />
<xsl:param name="Object2" />
XSLT 2.0 :
<xsl:function name="my:isEqual" as="xs:boolean">
<xsl:param name="Object1" as="element()?" />
<xsl:param name="Object2" as="element()?" />
, :
<xsl:if test="$Object1PostalCode = $Object2PostalCode">
!!!What to do here!!!
</xsl:if>
</xsl:function>
- true(), false():
<xsl:sequence select="$Object1PostalCode eq $Object2PostalCode"/>
</xsl:function>