
April 21st, 2003, 11:40 AM
|
|
Contributing User
|
|
Join Date: Sep 2001
Location: NJ
Posts: 428
  
Time spent in forums: 11 h 34 m 8 sec
Reputation Power: 10
|
|
|
xsl translation and row span
lets say i have a xml doc defined something like this.
PHP Code:
<one text="1">
<two text="2">
<three text="3"/>
<three text="3"/>
</two>
<two text="2">
<three text="3"/>
<three text="3"/>
</two>
</one>
I'd like to translate this into something like this:
PHP Code:
<table>
<tr>
<td rowspan=4>1</td>
<td rowspan=2>2</td>
<td>3</td>
</tr>
<tr>
<td>3</td>
</tr>
<tr>
<td rowpsan=2>2</td>
<td>3</td>
</tr>
<tr>
<td>3</td>
</tr>
</table>
I can't quite get my head around this. I'm a little new to XML so i'm trying to figure this out. Any help/direction would be greatly appreciated. Thanks
|