//node[5-10]

T

Timo Nentwig

Hi!

//node may match 20 nodes but I'm only interested in node 5 to node 10.
Is there any syntax to match only those nodes?

Timo
 
R

Richard Tobin

Timo Nentwig said:
//node may match 20 nodes but I'm only interested in node 5 to node 10.
Is there any syntax to match only those nodes?

(//node)[position() >= 5 and position() <= 10]

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top