Re: [xsl] Problem with "except" operator

Subject: Re: [xsl] Problem with "except" operator
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 11 Feb 2009 15:31:19 +0100
G. Ken Holman wrote:

<xsl:template match="/">
<xsl:variable name="users" select="//Users/User/UserId" />
<xsl:variable name="friends" select="//Friends/Friend/UserId" />

<!-- debug output -->
<xsl:value-of select="$users [. != $friends]" />

For the (short) example data posted it does not matter but in general I think the above should be
<xsl:value-of select="$users[not(. = $friends)]"/>
as that is quite different from $users[. != $friends].




--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread