This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Question about Context Changes in XSLT Questions and Answers for David Carlisle


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]