RE: [xsl] Question about Context Changes in XSLT Questions and An swers for David Carlisle

Subject: RE: [xsl] Question about Context Changes in XSLT Questions and An swers for David Carlisle
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 5 Jan 2001 10:12:30 -0000
> When I tested the XPath:A/C[position()=2] and A/*[position()=2 
> and self::C],
> they gave me the same results. So are they the same or not?

They are not the same.

A/C[position()=2] finds the second C child, 
A/*[position()=2 and self::C] finds the second child element provided it's a
C.

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread