Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

As I move down the entry elements,

Status
Not open for further replies.

mountainbiker

Programmer
Aug 21, 2002
122
GB
As I move down the entry elements, how can I test if I am in the final row (hightlighted below)?

[tt]<table frame=&quot;all&quot; pgwide=&quot;1&quot; >
<tgroup cols=&quot;2&quot; rowsep=&quot;0&quot; align=&quot;center&quot;>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<thead>
<row>
<entry>Column 1</entry>
<entry>Column 2</entry>
</row>
</thead>
<tbody>
<row>
<entry>1</entry>
<entry>1</entry>
</row>
<row>
<entry>2</entry>
<entry>4</entry>
</row>
<row>
<entry>3</entry>
<entry>9</entry>
</row>
</tbody>
</tgroup>
<tgroup cols=&quot;3&quot; rowsep=&quot;1&quot; align=&quot;center&quot;>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<tbody>
<row>
<entry>1</entry>
<entry>1</entry>
<entry>2</entry>
</row>
<row >
<entry>2</entry>
<entry rowsep=&quot;0&quot; colsep=&quot;0&quot;>2</entry>
<entry>4</entry>
</row>
<row>
<entry>3</entry>
<entry>2</entry>
<entry>9</entry>
</row>
</tbody>
</tgroup>
</informaltable><informaltable frame=&quot;all&quot; pgwide=&quot;1&quot; >
<tgroup cols=&quot;2&quot; rowsep=&quot;0&quot; align=&quot;center&quot;>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<thead>
<row>
<entry>Column 1</entry>
<entry>Column 2</entry>
</row>
</thead>
<tbody>
<row>
<entry>1</entry>
<entry>1</entry>
</row>
<row>
<entry>2</entry>
<entry>4</entry>
</row>
<row>
<entry>3</entry>
<entry>9</entry>
</row>
</tbody>
</tgroup>
<tgroup cols=&quot;3&quot; rowsep=&quot;1&quot; align=&quot;center&quot;>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<colspec colwidth=&quot;0.5in&quot;/>
<tbody>
<row>
<entry>1</entry>
<entry>1</entry>
<entry>2</entry>
</row>
<row >
<entry>2</entry>
<entry>2</entry>
<entry>4</entry>
</row>
<row>[/b}
<entry>3</entry>
<entry>2</entry>
<entry>9</entry>
</row>[/b}
</tbody>
</tgroup>
</table>[/tt]
 
using xsl you can check 'following-sibling'.
using Dom you can check 'nextSibling'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top