Arbitrarily breaking up a table

Subject: Arbitrarily breaking up a table
From: Linus-Lin <LLin@xxxxxxxxxxxxxxx>
Date: Fri, 8 Sep 2000 17:32:26 -0400
I have the following structure
<TABLE>
  <HEADERROW>
	<HEADER>a</HEADER> <HEADER>b</HEADER> <HEADER>c</HEADER>
  </HEADERROW>
  <DATAROWS>	
     <DATAROW>
	<DATA>1</DATA> <DATA>1</DATA> <DATA>1</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>2</DATA> <DATA>2</DATA> <DATA>2</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>3</DATA> <DATA>3</DATA> <DATA>3</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>4</DATA> <DATA>4</DATA> <DATA>4</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>5</DATA> <DATA>5</DATA> <DATA>5</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>6</DATA> <DATA>6</DATA> <DATA>6</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>7</DATA> <DATA>7</DATA> <DATA>7</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>8</DATA> <DATA>8</DATA> <DATA>8</DATA>
     </DATAROW>
     <DATAROW>
	<DATA>9</DATA> <DATA>9</DATA> <DATA>9</DATA>
     </DATAROW>
  </DATAROWS>
</TABLE>

Normally a bunch of applied templates could easily create one table with 9
rows. 

What I need is to generate three tables from the same XML each with its own
table header.

First table would (arbitrarily) have 5 consective rows (rows 1-5).
Second table would have 2 consecutive rows (6-7).
Third table would have 2 consective rows (8-9).

Can some help with scheme????



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


Current Thread