diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
commit | 60a5a938e6657250d228742b8367f8dbe7dd28d4 (patch) | |
tree | 6d7c4dffd49992a47185e53deacabe1d41036b28 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl | |
parent | 85117fe2b9fa404a21083ba975e06b57a6866d1b (diff) |
Merged r8226 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8228 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl | 52 |
1 files changed, 16 insertions, 36 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl index c0b77762b..b8a365146 100644 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl @@ -135,24 +135,15 @@ </xsl:if> <xsl:variable name="summary"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'table-summary'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_table-summary"/> </xsl:variable> <xsl:variable name="cellspacing"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'cellspacing'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_cellspacing"/> </xsl:variable> <xsl:variable name="cellpadding"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')[1]"/> - <xsl:with-param name="attribute" select="'cellpadding'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_cellpadding"/> </xsl:variable> <table> @@ -215,7 +206,6 @@ <xsl:choose> <xsl:when test="$table.borders.with.css != 0"> - <xsl:attribute name="border">0</xsl:attribute> <xsl:choose> <xsl:when test="../@frame='all' or (not(../@frame) and $default.table.frame='all')"> <xsl:attribute name="style"> @@ -302,12 +292,18 @@ </xsl:call-template> </xsl:attribute> </xsl:when> + <xsl:when test="../@frame='none'"> + <xsl:attribute name="style"> + <xsl:text>border: none;</xsl:text> + </xsl:attribute> + </xsl:when> <xsl:otherwise> <xsl:attribute name="style"> <xsl:text>border-collapse: collapse;</xsl:text> </xsl:attribute> </xsl:otherwise> </xsl:choose> + </xsl:when> <xsl:when test="../@frame='none' or (not(../@frame) and $default.table.frame='none') or local-name(.) = 'entrytbl'"> <xsl:attribute name="border">0</xsl:attribute> @@ -326,9 +322,8 @@ </xsl:variable> <xsl:variable name="explicit.table.width"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="../processing-instruction('dbhtml')[1]"/> - <xsl:with-param name="attribute" select="'table-width'"/> + <xsl:call-template name="pi.dbhtml_table-width"> + <xsl:with-param name="node" select=".."/> </xsl:call-template> </xsl:variable> @@ -416,10 +411,7 @@ <xsl:template match="tgroup/processing-instruction('dbhtml')"> <xsl:variable name="summary"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="."/> - <xsl:with-param name="attribute" select="'table-summary'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_table-summary"/> </xsl:variable> <!-- Suppress the table-summary PI --> @@ -545,28 +537,19 @@ <xsl:variable name="row-height"> <xsl:if test="processing-instruction('dbhtml')"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'row-height'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_row-height"/> </xsl:if> </xsl:variable> <xsl:variable name="bgcolor"> <xsl:if test="processing-instruction('dbhtml')"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'bgcolor'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_bgcolor"/> </xsl:if> </xsl:variable> <xsl:variable name="class"> <xsl:if test="processing-instruction('dbhtml')"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'class'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_class"/> </xsl:if> </xsl:variable> @@ -776,10 +759,7 @@ <xsl:otherwise> <xsl:variable name="bgcolor"> <xsl:if test="processing-instruction('dbhtml')"> - <xsl:call-template name="dbhtml-attribute"> - <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/> - <xsl:with-param name="attribute" select="'bgcolor'"/> - </xsl:call-template> + <xsl:call-template name="pi.dbhtml_bgcolor"/> </xsl:if> </xsl:variable> |