Mode:

Compact lists

Showing:

Documentation
References
Included from
Source
Stylesheet drama.xsl
Documentation

Description

TEI stylesheet dealing with elements from the drama module, making XSL-FO 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 9646 2011-11-05 23:39:08Z rahtz $

Copyright: 2011, TEI Consortium

Included from
Stylesheet version 2.0
Template tei:actor
Documentation

Description

Namespace No namespace
Match tei:actor
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:actor">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('normal')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:camera
Documentation

Description

Namespace No namespace
Match tei:camera
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:camera">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('normal')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:caption
Documentation

Description

Namespace No namespace
Match tei:caption
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:caption">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('normal')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:castGroup
Documentation

Description

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

Description

Namespace No namespace
Match tei:castItem
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:castItem">
  <xsl:call-template name="makeItem"/>
</xsl:template>
Stylesheet location drama.xsl
Template tei:castItem[@type='list']
Documentation

Description

Process elements castItem (when @type is 'list')
Namespace No namespace
Match tei:castItem[@type='list']
Mode #default
References
Parameter
Template
Import precedence 3
Source
<xsl:template match="tei:castItem[@type='list']">
  <list-item>
    <xsl:attribute name="space-before.optimum">
      <xsl:value-of select="$listItemsep"/>
    </xsl:attribute>
    <list-item-label end-indent="label-end()">
      <xsl:if test="@xml:id">
        <xsl:attribute name="id">
          <xsl:value-of select="@xml:id"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:text>
</xsl:text>
      <block/>
    </list-item-label>
    <list-item-body start-indent="body-start()">
      <block>
        <xsl:call-template name="rend">
          <xsl:with-param name="defaultvalue" select="string('italic')"/>
          <xsl:with-param name="defaultstyle" select="string('font-style')"/>
        </xsl:call-template>
        <xsl:text>(</xsl:text>
        <xsl:apply-templates/>
        <xsl:text>)</xsl:text>
      </block>
    </list-item-body>
  </list-item>
</xsl:template>
Stylesheet location drama.xsl
Template tei:castList
Documentation

Description

Namespace No namespace
Match tei:castList
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:castList">
  <xsl:if test="child::tei:head">
    <block font-style="italic" text-align="start" space-before.optimum="4pt">
      <xsl:for-each select="tei:head">
        <xsl:apply-templates/>
      </xsl:for-each>
    </block>
  </xsl:if>
  <list-block>
    <xsl:call-template name="setListIndents"/>
    <xsl:apply-templates/>
  </list-block>
</xsl:template>
Stylesheet location drama.xsl
Template tei:sp
Documentation

Description

Namespace No namespace
Match tei:sp
Mode #default
Import precedence 3
Source
<xsl:template match="tei:sp">
  <block text-align="justify" start-indent="1em" text-indent="-1em" space-before="3pt">
    <xsl:apply-templates/>
  </block>
</xsl:template>
Stylesheet location drama.xsl
Template tei:sp/tei:p
Documentation

Description

paragraphs inside speeches do very little
Namespace No namespace
Match tei:sp/tei:p
Mode #default
Import precedence 3
Source
<xsl:template match="tei:sp/tei:p">
  <inline>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:speaker
Documentation

Description

Namespace No namespace
Match tei:speaker
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:speaker">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
    <xsl:text> </xsl:text>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:stage
Documentation

Description

Namespace No namespace
Match tei:stage
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:stage">
  <block>
    <xsl:attribute name="text-indent">1em</xsl:attribute>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </block>
</xsl:template>
Stylesheet location drama.xsl
Template tei:p/tei:stage
Documentation

Description

Namespace No namespace
Match tei:p/tei:stage
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:p/tei:stage">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:sp/tei:stage
Documentation

Description

Namespace No namespace
Match tei:sp/tei:stage
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:sp/tei:stage">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:tech
Documentation

Description

Namespace No namespace
Match tei:tech
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:tech">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl
Template tei:view
Documentation

Description

Namespace No namespace
Match tei:view
Mode #default
References
Template
Import precedence 3
Source
<xsl:template match="tei:view">
  <inline>
    <xsl:call-template name="rend">
      <xsl:with-param name="defaultvalue" select="string('italic')"/>
      <xsl:with-param name="defaultstyle" select="string('font-style')"/>
    </xsl:call-template>
    <xsl:apply-templates/>
  </inline>
</xsl:template>
Stylesheet location drama.xsl