The problem comes in because of the Document Object Model.  You can't refer to document.all.DD.value because there is more than one document.all.DD.value.
You have to give your INPUTs different names or IDs.

Or... you could refer to them through the INPUT collection as document.all.tags("INPUT")[N-1].value (although this may be IE only -- I'm not sure). The first INPUT tag in this collection is referred to as "document.all.tags("INPUT")[0] hence the N-1 value.  Although then you'd need a counter to determine N.

--Mark

-----Original Message-----
From:	Gnosis. [SMTP:Gnosis_@compuserve.com]
Sent:	Wednesday, June 02, 1999 4:02 PM
To:	xsl-list
Cc:	Gnosis.
Subject:	MSXSL - Implied Table Loops

I have the following structure in my HTML that can
be repeated N-times. (cell is a short hand for all that <TR><TD> stuff).

The problem is for N = 1 this works fine, and my
script stuff that uses         document.all.AA.value
works fine, but then fails when N > 1.

Also of course  document.all.DD.length and

document.all.DD[i].value work great on the single
occurance.

Is this a fundamental limitation?  That you cannot have
repeating <TABLE> blocks and still reference the
sub-elements correctly, or is there a syntax 'trick' here
that will fix this for me?  Such as labelling the <DIV> block
uniquely and then using that as a outer index?

Thanks, DW.
================================================
 <DIV class="TableBlk">

 <TABLE>

       Cell  <INPUT  Name="AA" ......./>
       Cell  <INPUT  Name="BB" ......./>
       Cell  <INPUT  Name="BB" ......./>
</TABLE>

<TABLE>
       Cell  <INPUT  Name="CC" ......./>
       Cell  <INPUT  Name="DD" ......./>
       Cell  <INPUT  Name="DD" ......./>
       Cell  <INPUT  Name="DD" ......./>
</TABLE>

</DIV>

 <DIV class="TableBlk">

 <TABLE>

       Cell  <INPUT  Name="AA" ......./>
       Cell  <INPUT  Name="BB" ......./>
       Cell  <INPUT  Name="BB" ......./>
       Cell  <INPUT  Name="BB" ......./>
</TABLE>

<TABLE>
       Cell  <INPUT  Name="CC" ......./>
       Cell  <INPUT  Name="DD" ......./>
       Cell  <INPUT  Name="DD" ......./>
</TABLE>

</DIV>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list