RE: [xsl] XSLT 1.1 comments (node equality)

Subject: RE: [xsl] XSLT 1.1 comments (node equality)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 11:29:18 -0000
> > 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:

Current Thread