Add support for nested tables

You'll need to test that the node name is a table, something like 
```<xsl:when test="name(.) = 'table'">``` or ```<xsl:when test="name(current()) = 'table'">```