On Wed, May 25, 2005 at 09:22:27AM +0200, Jirka Kosek wrote:
> Result is correct. //listitem[2] will select all listitems that are
> second childs of its parent. It is because it is shorthand for
> /descendant-or-self::node()/child::listitem[2]. For your desired result,
> you should use (//listitem)[2].
*smacks his forehead* What a novice XPath mistake! I should have
examined my queries more carefully. Thanks for the insight, Jirka.
Take care,
John L. Clark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050525/78897dd1/attachment.sig