Showing:

Documentation
References
Included from
Source
Stylesheet htmltbl.xsl
Documentation

Description

This file was created automatically by html2xhtml
from the HTML stylesheets.
Included from
Template d:colgrouphtmlTable
Documentation

Description

 ********************************************************************
     $Id$
     ********************************************************************

     This file is part of the XSL DocBook Stylesheet distribution.
     See ../README or http://docbook.sf.net/release/xsl/current/ for
     copyright and other information.

     ******************************************************************** 
 ==================================================================== 
Namespace No namespace
Match d:colgroup
Mode htmlTable
Import precedence 0
Source
<xsl:template match="d:colgroup" mode="htmlTable">
  <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
    <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
    <xsl:apply-templates mode="htmlTable"/>
  </xsl:element>
</xsl:template>
Template d:colhtmlTable
Namespace No namespace
Match d:col
Mode htmlTable
Import precedence 0
Source
<xsl:template match="d:col" mode="htmlTable">
  <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
    <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
  </xsl:element>
</xsl:template>
Template d:captionhtmlTable
Namespace No namespace
Match d:caption
Mode htmlTable
Import precedence 0
Source
<xsl:template match="d:caption" mode="htmlTable">
  <!-- do not use xsl:copy because of XHTML's needs -->
  <caption>
    <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
    <xsl:apply-templates select=".." mode="object.title.markup">
      <xsl:with-param name="allow-anchors" select="1"/>
    </xsl:apply-templates>
  </caption>
</xsl:template>
Template d:tbody|d:thead|d:tfoot|d:trhtmlTable
Namespace No namespace
Match d:tbody|d:thead|d:tfoot|d:tr
Mode htmlTable
Import precedence 0
Source
<xsl:template match="d:tbody|d:thead|d:tfoot|d:tr" mode="htmlTable">
  <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
    <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
    <xsl:apply-templates mode="htmlTable"/>
  </xsl:element>
</xsl:template>
Template d:th|d:tdhtmlTable
Namespace No namespace
Match d:th|d:td
Mode htmlTable
Import precedence 0
Source
<xsl:template match="d:th|d:td" mode="htmlTable">
  <xsl:element name="{local-name(.)}" namespace="http://www.w3.org/1999/xhtml">
    <xsl:apply-templates select="@*" mode="htmlTableAtt"/>
    <xsl:apply-templates/>
    <!-- *not* mode=htmlTable -->
  </xsl:element>
</xsl:template>
Template @*htmlTableAtt
Documentation

Description

 don't copy through DocBook-specific attributes on HTML table markup 
 default behavior is to not copy through because there are more
     DocBook attributes than HTML attributes 
Namespace No namespace
Match @*
Mode htmlTableAtt
Import precedence 0
Source
<xsl:template mode="htmlTableAtt" match="@*"/>
Template @abbr | @align | @axis | @bgcolor | @border | @cellpadding | @cellspacing | @char | @charoff | @class | @dir | @frame | @headers | @height | @lang | @nowrap | @onclick | @ondblclick | @onkeydown | @onkeypress | @onkeyup | @onmousedown | @onmousemove | @onmouseout | @onmouseover | @onmouseup | @rules | @style | @summary | @title | @valign | @valign | @width | @xml:langhtmlTableAtt
Documentation

Description

 copy these through 
Namespace No namespace
Match @abbr | @align | @axis | @bgcolor | @border | @cellpadding | @cellspacing | @char | @charoff | @class | @dir | @frame | @headers | @height | @lang | @nowrap | @onclick | @ondblclick | @onkeydown | @onkeypress | @onkeyup | @onmousedown | @onmousemove | @onmouseout | @onmouseover | @onmouseup | @rules | @style | @summary | @title | @valign | @valign | @width | @xml:lang
Mode htmlTableAtt
Import precedence 0
Source
<xsl:template mode="htmlTableAtt" match="@abbr                    | @align                    | @axis                    | @bgcolor                    | @border                    | @cellpadding                    | @cellspacing                    | @char                    | @charoff                    | @class                    | @dir                    | @frame                    | @headers                    | @height                    | @lang                    | @nowrap                    | @onclick                    | @ondblclick                    | @onkeydown                    | @onkeypress                    | @onkeyup                    | @onmousedown                    | @onmousemove                    | @onmouseout                    | @onmouseover                    | @onmouseup                    | @rules                    | @style                    | @summary                    | @title                    | @valign                    | @valign                    | @width                    | @xml:lang">
  <xsl:copy-of select="."/>
</xsl:template>
Template @span|@rowspan|@colspanhtmlTableAtt
Namespace No namespace
Match @span|@rowspan|@colspan
Mode htmlTableAtt
Import precedence 0
Source
<xsl:template match="@span|@rowspan|@colspan" mode="htmlTableAtt">
  <!-- No need to copy through the DTD's default value "1" of the attribute -->
  <xsl:if test="number(.) != 1">
    <xsl:attribute name="{local-name(.)}">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Template @floatstylehtmlTableAtt
Documentation

Description

 map floatstyle to HTML float values 
Namespace No namespace
Match @floatstyle
Mode htmlTableAtt
References
Import precedence 0
Source
<xsl:template match="@floatstyle" mode="htmlTableAtt">
  <xsl:attribute name="style">
    <xsl:text>float: </xsl:text>
    <xsl:choose>
      <xsl:when test="contains(., 'left')">left</xsl:when>
      <xsl:when test="contains(., 'right')">right</xsl:when>
      <xsl:when test="contains(., 'start')">
        <xsl:value-of select="$direction.align.start"/>
      </xsl:when>
      <xsl:when test="contains(., 'end')">
        <xsl:value-of select="$direction.align.end"/>
      </xsl:when>
      <xsl:when test="contains(., 'inside')">
        <xsl:value-of select="$direction.align.start"/>
      </xsl:when>
      <xsl:when test="contains(., 'outside')">
        <xsl:value-of select="$direction.align.end"/>
      </xsl:when>
      <xsl:when test="contains(., 'before')">none</xsl:when>
      <xsl:when test="contains(., 'none')">none</xsl:when>
    </xsl:choose>
    <xsl:text>;</xsl:text>
  </xsl:attribute>
</xsl:template>