|
Subject: Re: [xsl] getting multiple values From: Francis Norton <francis@xxxxxxxxxxx> Date: Thu, 06 Sep 2001 08:41:43 +0100 |
You're using "nextNode()" twice in the loop, once in the body and once
in the while test. Each time you use it, you move forward a node, so you
move two nodes forwards every time you go through the loop.
Download the Microsoft MSXML documentation (MSXML SDK) and look at the
code samples for nextNode() there.
Francis.
P Vikram wrote:
>
> Hi
>
> Can anybody help.iam getting alternate values.Iam
> getting 2,4,6.
>
> testvar = testXML.documentElement.selectNodes("ID");
>
> idarray = new Array();
> var j =0;
> while (testvar.nextNode()){
> alert(testvar.nextNode().text);
>
> }
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] getting multiple values, P Vikram | Thread | Re: [xsl] getting multiple values, Oleg Tkachenko |
| Re: [xsl] referring to previous ele, Senthilkumar Arunach | Date | RE: [xsl] IE browsers, Chris Bayes |
| Month |