Mode:

Compact lists

Showing:

Documentation
Used by
References
Included from
Source
Stylesheet tei2html-tables.xsl
Included from
Stylesheet version 2.0
Template table
Documentation
<xdoc:doc type="stylesheet">
        <xdoc:author>John A. Walsh</xdoc:author>
        <xdoc:copyright>Copyright 2006 John A. Walsh</xdoc:copyright>
        <xdoc:short>XSLT stylesheet to transform TEI P5 documents to XHTML.</xdoc:short>
    </xdoc:doc>

Description

 jawalsh: added tbody and @name=tableHead and @mode=tableHead template for xhtml 
Namespace No namespace
Match table
Mode #default
References
Parameters
Templates
Import precedence 0
Source
<xsl:template match="table">
  <xsl:if test="$numberTables=true">
    <div class="head">
      <xsl:value-of select="$tableLabel"/>
      <xsl:text> </xsl:text>
      <xsl:number level="any"/>
      <xsl:text>.</xsl:text>
    </div>
  </xsl:if>
  <table>
    <xsl:call-template name="rendition"/>
    <xsl:call-template name="id"/>
    <xsl:if test="head">
      <xsl:text> </xsl:text>
      <xsl:call-template name="tableHead"/>
    </xsl:if>
    <tbody>
      <xsl:apply-templates/>
    </tbody>
  </table>
</xsl:template>
Template tableHead
Namespace No namespace
Used by
Template
Import precedence 0
Source
<xsl:template name="tableHead">
  <thead>
    <tr>
      <xsl:apply-templates select="./head" mode="tableHead"/>
    </tr>
  </thead>
</xsl:template>
Template table/headtableHead
Namespace No namespace
Match table/head
Mode tableHead
References
Template
Import precedence 0
Source
<xsl:template match="table/head" mode="tableHead">
  <th colspan="0">
    <xsl:call-template name="atts"/>
    <xsl:apply-templates/>
  </th>
</xsl:template>
Template table/head
Namespace No namespace
Match table/head
Mode #default
Import precedence 0
Source
<xsl:template match="table/head"/>
Template table[@n='toc']/row[not(@role)]
Namespace No namespace
Match table[@n='toc']/row[not(@role)]
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="table[@n='toc']/row[not(@role)]">
  <tr>
    <xsl:call-template name="rendition">
      <xsl:with-param name="defaultRend">
        <xsl:value-of select="'toc'"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="rend"/>
    <xsl:call-template name="id"/>
    <xsl:apply-templates/>
  </tr>
</xsl:template>
Template table[@n='toc']/row[not(@role) and not(cell[@role = 'tocNumber'])]
Documentation

Description

 For Items in Tables of Contents that don't have a page number, such as a section title for a group of sonnets, e.g, Dirae. 
Namespace No namespace
Match table[@n='toc']/row[not(@role) and not(cell[@role = 'tocNumber'])]
Mode #default
References
Template
Import precedence 0
Source
<xsl:template match="table[@n='toc']/row[not(@role) and not(cell[@role = 'tocNumber'])]">
  <tr>
    <xsl:call-template name="atts"/>
    <xsl:apply-templates/>
  </tr>
</xsl:template>
Template table[@n='toc']/row/cell[role='tocItem']
Namespace No namespace
Match table[@n='toc']/row/cell[role='tocItem']
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="table[@n='toc']/row/cell[role='tocItem']">
  <td>
    <xsl:call-template name="rendition">
      <xsl:with-param name="defaultRend">
        <xsl:value-of select="'tocItem'"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="rend"/>
    <xsl:call-template name="id"/>
    <xsl:apply-templates/>
  </td>
</xsl:template>
Template row[@role='tocPageHead']
Namespace No namespace
Match row[@role='tocPageHead']
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="row[@role='tocPageHead']">
  <tr>
    <xsl:call-template name="rendition">
      <xsl:with-param name="defaultRend">
        <xsl:value-of select="'tocPageHead'"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="rend"/>
    <xsl:call-template name="id"/>
    <xsl:apply-templates/>
  </tr>
</xsl:template>
Template cell[@role='tocNumber']
Namespace No namespace
Match cell[@role='tocNumber']
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="cell[@role='tocNumber']">
  <td>
    <xsl:call-template name="rendition">
      <xsl:with-param name="defaultRend">
        <xsl:value-of select="'tocNumber'"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="id"/>
    <xsl:call-template name="rend"/>
    <xsl:apply-templates/>
  </td>
</xsl:template>
Template cell[@role='tocPageHead']
Namespace No namespace
Match cell[@role='tocPageHead']
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="cell[@role='tocPageHead']">
  <td>
    <xsl:call-template name="rendition">
      <xsl:with-param name="defaultRend">
        <xsl:value-of select="'tocPageHead'"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="id"/>
    <xsl:call-template name="rend"/>
    <xsl:apply-templates/>
  </td>
</xsl:template>
Template row
Namespace No namespace
Match row
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="row">
  <tr>
    <xsl:choose>
      <xsl:when test="not(@role = 'data') and not(@role='')">
        <xsl:call-template name="rendition">
          <xsl:with-param name="defaultRend">
            <xsl:value-of select="@role"/>
          </xsl:with-param>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:call-template name="rendition"/>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="id"/>
    <xsl:apply-templates/>
  </tr>
</xsl:template>
Template cell
Namespace No namespace
Match cell
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="cell">
  <td valign="top">
    <xsl:call-template name="id"/>
    <xsl:choose>
      <xsl:when test="not(@role = 'data') and not(@role='') and not(@rend)">
        <xsl:call-template name="rendition">
          <xsl:with-param name="defaultRend">
            <xsl:value-of select="@role"/>
          </xsl:with-param>
        </xsl:call-template>
        <xsl:call-template name="rend"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:call-template name="rendition"/>
        <xsl:call-template name="rend"/>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="@cols">
      <xsl:attribute name="colspan">
        <xsl:value-of select="@cols"/>
      </xsl:attribute>
    </xsl:if>
    <xsl:if test="@rows">
      <xsl:attribute name="rowspan">
        <xsl:value-of select="@rows"/>
      </xsl:attribute>
    </xsl:if>
    <xsl:if test="@align">
      <xsl:attribute name="align">
        <xsl:value-of select="@align"/>
      </xsl:attribute>
    </xsl:if>
    <xsl:apply-templates/>
  </td>
</xsl:template>