This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSLT 1.1 comments (node equality)
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XSLT 1.1 comments (node equality)
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 15 Feb 2001 11:29:18 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > a prefix form would be safer: same-node(a,b) although
> that's probably a
> > bad name since a and b would be node sets, even if they were "." .
> >
> I can't think of a better name off-hand - it's still testing for "same
> node", even within it's node-set arguments. Would it be an
> XPath or XSLT function?
In Saxon I called this function has-same-nodes(a, b), it returns true if the
difference between the two node-sets is empty. I think same-node(a, b) might
suggests a function that returns true if the intersection is non-empty.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list