Forming a union of two sets requires being able to compare the members of the
set for equality. For the union operation in XPath, the relevant equality
comparison operator is "is", that is comparing nodes by identity. Two different
nodes with the same content are different nodes.
Michael Kay
Saxonica
On 12 Nov 2015, at 12:03, Ihe Onwuka ihe(_dot_)onwuka(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
If a nodeset contains multiple elements with the same value then unioning the
nodeset with itself will not eradicate those duplicates.
If I have a nodeset containing
<a>1</a>
<a>2</a>
which I use as a lookup, then a nodeset created just by looking up the value
1, 5 times will not contain <a>1</a> once and not 5 times.
The latter case is because a nodeset cannot contain multiple copies of the
same node.
Please correct my thinking here.
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <-list/293509> (by email <>)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--