[xsl] [XPath 2.0] Two XPath expressions to the same node, yielding different results with "instance of text()"

Subject: [xsl] [XPath 2.0] Two XPath expressions to the same node, yielding different results with "instance of text()"
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Wed, 7 Oct 2009 16:53:47 -0400
Hi Folks,

Why does this XPath expression return true:

/FitnessCenter/Member[1]/MembershipFee/node() instance of text()

whereas this returns false:

//MembershipFee[1]/node() instance of text()

Both reference the node within the first MembershipFee element; so I would
think they should both return true.

/Roger

Current Thread