diff options
Diffstat (limited to 'xslt/mallard/html/mal2html-table.xsl')
-rw-r--r-- | xslt/mallard/html/mal2html-table.xsl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xslt/mallard/html/mal2html-table.xsl b/xslt/mallard/html/mal2html-table.xsl index 3598f6e..497c3a1 100644 --- a/xslt/mallard/html/mal2html-table.xsl +++ b/xslt/mallard/html/mal2html-table.xsl @@ -184,7 +184,13 @@ td { </xsl:otherwise> </xsl:choose> </xsl:variable> - <div class="table"> + <div> + <xsl:attribute name="class"> + <xsl:text>table</xsl:text> + <xsl:if test="not(preceding-sibling::*)"> + <xsl:text> first-child</xsl:text> + </xsl:if> + </xsl:attribute> <table class="table"> <xsl:if test="$style != ''"> <xsl:attribute name="style"> |