How to delete an empty column in HTML table using XSLT?

Posted by Monomachus on Stack Overflow See other posts from Stack Overflow or by Monomachus
Published on 2010-04-16T14:14:04Z Indexed on 2010/04/16 14:53 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

Hi,
How to delete an empty column in HTML table using XSLT, and having something like this:


 <table id="cas6">
    <tr>
      <td />
      <td>
        <table>
          <tr>
            <td>rechin</td>
            <td />
          </tr>
          <tr>
            <td>amarillo</td>
            <td />
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <table id="cas7">
    <tr>
      <td>rechin</td>
      <td />
    </tr>
    <tr>
      <td>amarillo</td>
      <td />
    </tr>
    <tr>
      <td>this shouldn't been</td>
      <td>deleted</td>
    </tr>
  </table>

To delete the empty column, this being said to remove td's which are empty in all tr's in a Xth position

© Stack Overflow or respective owner

Related posts about xslt

Related posts about html-tables