[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Sorting out rowspans


Subject: [xsl] Sorting out rowspans
From: "Spencer Tickner" <spencertickner@xxxxxxxxx>
Date: Mon, 11 Feb 2008 08:56:57 -0800

Hi List,

Thanks in advance for any help. I'm having a hard time figuring a
little bit of XSLT,, Monday maybe. I'm reprocessing some XML from an
Indesign file and trying to figure out how to re-group rowspans.

What I have.

<tr>
  <td>col1</td>
  <td rowspan="2">col2</td>
</tr>
<tr>
  <td>col1</td>
  <td>col1</td>
</tr>
<tr>
  <td>col2</td>
</tr>

Which should be processed to create:

<tr>
  <td>col1</td>
  <td rowspan="2">col2</td>
</tr>
<tr>
  <td>col1</td>
</tr>
<tr>
  <td>col1</td>
  <td>col2</td>
</tr>

Any thoughts on a nice way of doing this.. I'm using XSLT 2.0.

Thanks,

Spencer


Current Thread
Keywords