Mode:

Compact lists

Showing:

Documentation
References
Included from
Source
Stylesheet drama.xsl
Documentation

Description

TEI stylesheet dealing with elements from the drama module, making HTML output.

This software is dual-licensed: 1. Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/ 2. http://www.opensource.org/licenses/BSD-2-Clause All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Author: See AUTHORS

Id: $Id: drama.xsl 12078 2013-05-05 12:51:58Z rahtz $

Copyright: 2013, TEI Consortium

Included from
Stylesheet version 2.0
Template tei:actor
Documentation

Description

Process element actor
Namespace No namespace
Match tei:actor
Mode #default
Import precedence 13
Source
<xsl:template match="tei:actor">
  <span class="actor">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:camera
Documentation

Description

Process element camera
Namespace No namespace
Match tei:camera
Mode #default
Import precedence 13
Source
<xsl:template match="tei:camera">
  <span class="camera">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:caption
Documentation

Description

Process element caption
Namespace No namespace
Match tei:caption
Mode #default
Import precedence 13
Source
<xsl:template match="tei:caption">
  <span class="caption">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:castGroup
Documentation

Description

Process element castGroup
Namespace No namespace
Match tei:castGroup
Mode #default
Import precedence 13
Source
<xsl:template match="tei:castGroup">
  <ul>
    <xsl:apply-templates/>
  </ul>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:castItem
Documentation

Description

Process element castItem
Namespace No namespace
Match tei:castItem
Mode #default
Import precedence 13
Source
<xsl:template match="tei:castItem">
  <li>
    <xsl:apply-templates/>
  </li>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:castList
Documentation

Description

Process element castList
Namespace No namespace
Match tei:castList
Mode #default
Import precedence 13
Source
<xsl:template match="tei:castList">
  <xsl:if test="tei:head">
    <p>
      <em>
        <xsl:for-each select="tei:head">
          <xsl:apply-templates/>
        </xsl:for-each>
      </em>
    </p>
  </xsl:if>
  <ul>
    <xsl:apply-templates/>
  </ul>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:castList/tei:head
Documentation

Description

Process element castList/tei:head
Namespace No namespace
Match tei:castList/tei:head
Mode #default
Import precedence 13
Source
<xsl:template match="tei:castList/tei:head"/>
Stylesheet location ../xhtml2/drama.xsl
Template tei:role
Documentation

Description

Process element role
Namespace No namespace
Match tei:role
Mode #default
Import precedence 13
Source
<xsl:template match="tei:role">
  <span class="role">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:roleDesc
Documentation

Description

Process element roleDesc
Namespace No namespace
Match tei:roleDesc
Mode #default
References
Template
Import precedence 13
Source
<xsl:template match="tei:roleDesc">
  <blockquote>
    <xsl:call-template name="makeRendition"/>
    <xsl:choose>
      <xsl:when test="tei:p">
        <xsl:apply-templates/>
      </xsl:when>
      <xsl:otherwise>
        <p>
          <xsl:apply-templates/>
        </p>
      </xsl:otherwise>
    </xsl:choose>
  </blockquote>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:set
Documentation

Description

Process element set
Namespace No namespace
Match tei:set
Mode #default
Import precedence 13
Source
<xsl:template match="tei:set">
  <span class="set">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:sound
Documentation

Description

Process element sound
Namespace No namespace
Match tei:sound
Mode #default
Import precedence 13
Source
<xsl:template match="tei:sound">
  <span class="sound">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:sp
Documentation

Description

Process element sp

elaborated by Nick Nicholas <nicholas@uci.edu>, March 2001

Namespace No namespace
Match tei:sp
Mode #default
References
Template
Import precedence 13
Source
<xsl:template match="tei:sp">
  <div class="speaker">
    <xsl:call-template name="makeAnchor"/>
    <xsl:apply-templates select="tei:speaker"/>
  </div>
  <xsl:apply-templates select="tei:*[not(self::tei:speaker)]"/>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:sp/tei:p
Documentation

Description

Process element sp/tei:p
Namespace No namespace
Match tei:sp/tei:p
Mode #default
References
Parameter
Template
Import precedence 13
Source
<xsl:template match="tei:sp/tei:p">
  <xsl:choose>
    <xsl:when test="$filePerPage='true'">
      <xsl:for-each-group select="node()" group-starting-with="tei:pb">
        <xsl:choose>
          <xsl:when test="self::tei:pb">
            <xsl:apply-templates select="."/>
            <div>
              <xsl:for-each select="..">
                <xsl:call-template name="makeRendition">
                  <xsl:with-param name="default">p-in-sp</xsl:with-param>
                </xsl:call-template>
                <xsl:attribute name="id">
                  <xsl:choose>
                    <xsl:when test="@xml:id">
                      <xsl:value-of select="@xml:id"/>
                      <xsl:text>continued</xsl:text>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:text>false</xsl:text>
                    </xsl:otherwise>
                  </xsl:choose>
                </xsl:attribute>
              </xsl:for-each>
              <xsl:apply-templates select="current-group() except ."/>
            </div>
          </xsl:when>
          <xsl:otherwise>
            <div>
              <xsl:for-each select="..">
                <xsl:call-template name="makeRendition">
                  <xsl:with-param name="default">p-in-sp</xsl:with-param>
                </xsl:call-template>
              </xsl:for-each>
              <xsl:apply-templates select="current-group()"/>
            </div>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:for-each-group>
    </xsl:when>
    <xsl:otherwise>
      <div>
        <xsl:call-template name="makeRendition">
          <xsl:with-param name="default">p-in-sp</xsl:with-param>
        </xsl:call-template>
        <xsl:apply-templates/>
      </div>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:stage
Documentation

Description

Process element stage
Namespace No namespace
Match tei:stage
Mode #default
References
Import precedence 13
Source
<xsl:template match="tei:stage">
  <xsl:element name="{if (not(tei:is-inline(.)) or *[not(tei:is-inline(.))]) then 'div' else 'span' }">
    <xsl:call-template name="makeRendition">
      <xsl:with-param name="default">
        <xsl:choose>
          <xsl:when test="ancestor::tei:text/@rend='firstfolio'">stage</xsl:when>
          <xsl:otherwise>stage it</xsl:otherwise>
        </xsl:choose>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:tech
Documentation

Description

Process element tech
Namespace No namespace
Match tei:tech
Mode #default
Import precedence 13
Source
<xsl:template match="tei:tech">
  <span class="tech">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl
Template tei:view
Documentation

Description

Process element view
Namespace No namespace
Match tei:view
Mode #default
Import precedence 13
Source
<xsl:template match="tei:view">
  <span class="view">
    <xsl:apply-templates/>
  </span>
</xsl:template>
Stylesheet location ../xhtml2/drama.xsl