<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>XSL patterns give me a node--how can I find it's position?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I am using the (IE5) XML DOM to search for a particular node.</FONT>
</P>
<P><FONT SIZE=2>I use a pattern like this: </FONT>
<BR><FONT SIZE=2>books/book[@bnum = 13241]</FONT>
</P>
<P><FONT SIZE=2>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. </FONT></P>
<P><FONT SIZE=2>Do I have to step through every element of books.childNodes and match it myself?</FONT>
</P>
<P><FONT SIZE=2>Thanks in advance,</FONT>
<BR><FONT SIZE=2>Ben Berck</FONT>
<BR><FONT SIZE=2>ESPS, Inc.</FONT>
</P>
</BODY>
</HTML>