This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Question about Context Changes in XSLT Questions and Answers for David Carlisle
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Question about Context Changes in XSLT Questions and Answers for David Carlisle
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 5 Jan 2001 10:12:30 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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