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 library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Author: See AUTHORS

Id: $Id: drama.xsl 7025 2009-11-29 19:47:02Z rahtz $

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template tei:actor
Documentation

Description

Namespace No namespace
Match tei:actor
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:camera
Documentation

Description

Namespace No namespace
Match tei:camera
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:caption
Documentation

Description

Namespace No namespace
Match tei:caption
Mode #default
References
Template rend
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 ../../../fo2/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 ../../../fo2/drama.xsl
Template tei:castItem
Documentation

Description

Namespace No namespace
Match tei:castItem
Mode #default
References
Template makeItem
Import precedence 3
Source
<xsl:template match="tei:castItem">
  <xsl:call-template name="makeItem"/>
</xsl:template>
Stylesheet location ../../../fo2/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 listItemsep
Template rend
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 ../../../fo2/drama.xsl
Template tei:castList
Documentation

Description

Namespace No namespace
Match tei:castList
Mode #default
References
Template setListIndents
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 ../../../fo2/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 ../../../fo2/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 ../../../fo2/drama.xsl
Template tei:speaker
Documentation

Description

Namespace No namespace
Match tei:speaker
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:stage
Documentation

Description

Namespace No namespace
Match tei:stage
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:p/tei:stage
Documentation

Description

Namespace No namespace
Match tei:p/tei:stage
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:sp/tei:stage
Documentation

Description

Namespace No namespace
Match tei:sp/tei:stage
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:tech
Documentation

Description

Namespace No namespace
Match tei:tech
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl
Template tei:view
Documentation

Description

Namespace No namespace
Match tei:view
Mode #default
References
Template rend
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 ../../../fo2/drama.xsl