XSL patterns give me a node--how can I find it's position?

Ben Berck BBerck at ESPS.com
Thu Nov 11 17:44:49 GMT 1999


I am using the (IE5) XML DOM to search for a particular node.

I use a pattern like this: 
books/book[@bnum = 13241]

It correctly finds a match.  Now my question is, how do I determine the
position of the found book in "books"?  bnum is not in sequential, nor is it
in order.  I need to know which book it is within the books.childNodes
NodeList. 

Do I have to step through every element of books.childNodes and match it
myself?

Thanks in advance,
Ben Berck
ESPS, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19991111/4e8d7081/attachment.htm


More information about the Xml-dev mailing list