Or, in other words, how to get a fixed number of nodes through a XPath
query?
Sure, do e.g.
(originalXPath)[position() >= 1 and position() <= 20]
to get the first 20 nodes (if there are as many).
So using a predicate and the position function allows you to
select/filter out a certain number. If you just want a certain number
then e.g.
(originalXPath)[10]
gives you the tenth node.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/