summaryrefslogtreecommitdiff
path: root/xhtml-1_1/formal.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml-1_1/formal.xsl')
-rw-r--r--xhtml-1_1/formal.xsl34
1 files changed, 19 insertions, 15 deletions
diff --git a/xhtml-1_1/formal.xsl b/xhtml-1_1/formal.xsl
index 5a1f197..d32839a 100644
--- a/xhtml-1_1/formal.xsl
+++ b/xhtml-1_1/formal.xsl
@@ -4,7 +4,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<!-- ********************************************************************
- $Id: formal.xsl 9297 2012-04-22 03:56:16Z bobstayton $
+ $Id: formal.xsl 9501 2012-07-16 00:14:50Z bobstayton $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -203,13 +203,15 @@
</xsl:when>
<xsl:otherwise>
<!-- do not use xsl:copy because of XHTML's needs -->
- <xsl:element name="table" namespace="http://www.w3.org/1999/xhtml">
- <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- <xsl:call-template name="htmlTable"/>
- </xsl:element>
+ <div>
+ <xsl:call-template name="generate.class.attribute"/>
+ <xsl:call-template name="id.attribute"/>
+ <xsl:call-template name="anchor"/>
+ <xsl:element name="table" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
+ <xsl:call-template name="htmlTable"/>
+ </xsl:element>
+ </div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
@@ -414,13 +416,15 @@
<xsl:call-template name="informal.object"/>
</xsl:when>
<xsl:otherwise>
- <xsl:element name="table" namespace="http://www.w3.org/1999/xhtml">
- <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
- <xsl:attribute name="id">
- <xsl:call-template name="object.id"/>
- </xsl:attribute>
- <xsl:call-template name="htmlTable"/>
- </xsl:element>
+ <div>
+ <xsl:call-template name="generate.class.attribute"/>
+ <xsl:call-template name="id.attribute"/>
+ <xsl:call-template name="anchor"/>
+ <xsl:element name="table" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
+ <xsl:call-template name="htmlTable"/>
+ </xsl:element>
+ </div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>