|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








