How would I add a class with the same name as the header?
You'll want to consider doing this in PHP, by overriding the theme/output markup for each Table Header, specifically using the theme_table() override function to add a class attribute to each table header argument.

Simplified code sample

$table_headers = array(
      array(
        'class' =&gt; array($node-&gt;title), // Adds 'class' HTML attribute.
      ),
      // More code goes here to define the table headers...
    );