diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-17 20:07:05 +0000 |
---|---|---|
committer | <> | 2015-07-07 10:18:30 +0000 |
commit | 802da9dd5d4bc18f46a916eedc0c5c1980a15e59 (patch) | |
tree | f78a8637465b7a4c9624fef03d27eb7aeaa779d4 /xhtml/formal.xsl | |
parent | 18f63104106b81bf37ca1af774d7be38051e5444 (diff) | |
download | docbook-xsl-802da9dd5d4bc18f46a916eedc0c5c1980a15e59.tar.gz |
Imported from /home/lorry/working-area/delta_docbook-xsl/docbook-xsl-1.78.1.tar.bz2.HEADdocbook-xsl-1.78.1master
Diffstat (limited to 'xhtml/formal.xsl')
-rw-r--r-- | xhtml/formal.xsl | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/xhtml/formal.xsl b/xhtml/formal.xsl index 5a1f197..d32839a 100644 --- a/xhtml/formal.xsl +++ b/xhtml/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> |