Re: [xsl] Imagine that the semantics of comparison operations was this

Subject: Re: [xsl] Imagine that the semantics of comparison operations was this
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 2 Mar 2025 15:30:54 -0000
On 02/03/2025 16:24, Roger L Costello costello@xxxxxxxxx wrote:
To achieve the same functionality with XSLT and XPath, we would do this:

<xsl:variable name="isDifferent" select="$FIRST ne $SECOND"
as="xs:boolean"/>
<xsl:variable name="APPEND" as="xs:string?">
     <xsl:if test="$isDifferent eq true()">
         <xsl:sequence select="concat($FIRST, $SECOND)"/>
     </xsl:if>
</xsl:variable>


I would express that as

B  <xsl:variable name="APPEND" as="xs:string?" select="($FIRST ||
$SECOND)[$isDifferent]"/>

Current Thread