This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Looping and assigning into variable
- From: Peter Davis <pdavis152 at attbi dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 28 Mar 2002 13:39:12 -0800
- Subject: Re: [xsl] Looping and assigning into variable
- References: <5B0CCB54E5375746A1725934B8409F2701A20B03@seapriv2>
- Reply-to: xsl-list at lists dot mulberrytech dot com
On Thursday 28 March 2002 11:29, Meiyu Lin wrote:
> I tried
> categorySelect[techInd] = <xsl:value-of select="category" />
> The results for the vars are undefined. Could you tell me what did I do
> wrong? Thank you.
I'd like to see the output of your stylesheet before I guess at this too
much, but I'm wondering what the initial value of "techInd" and "appInd" are.
Do you have: "var techInd = 0, appInd = 0;" anywhere? If you do, please
post some example input/output. If not, then that means that "techInd" is
being initialized to "undefined", which also means that "techInd++" probably
wouldn't work.
--
Peter Davis
Of ______course it's the murder weapon. Who would frame someone with a
fake?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list