OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]
  • From: "Anand Raman" <anandram@wipsys.soft.net>
  • To: Ben Berck <BBerck@ESPS.com>
  • Date: Sat, 13 Nov 1999 09:49:35 +0530

Hi ben
Can u tell me how you use the XQL pattern books/book[@bnum = 13241] to search ur xml files for elements , from a lay man point of view.
I know a little of XQL , XML and the syntax for forming notations .
However i could never figure out how to implement them in IE5.
Thanx a lot for ur time
Bye
Anand Raman

Ben Berck wrote:

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.





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS