Mode:

Compact lists

Showing:

Documentation
References
Included from
Source
Stylesheet drama.xsl
Documentation

Description

TEI stylesheet for making Word docx files from TEI XML

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 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

Copyright: 2013, TEI Consortium

Included from
Stylesheet version 3.0
Template tei:sp/tei:speaker
Documentation

Description

A speaker's name

Description

 Templates transforming elements from drama 
Namespace No namespace
Match tei:sp/tei:speaker
Mode #default
References
Template
Import precedence 16
Source
<xsl:template match="tei:sp/tei:speaker">
  <xsl:call-template name="block-element">
    <xsl:with-param name="style">teispeaker</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../docx/to/drama.xsl
Template tei:sp/tei:p
Documentation

Description

A bit of speech name
Namespace No namespace
Match tei:sp/tei:p
Mode #default
References
Template
Import precedence 16
Source
<xsl:template match="tei:sp/tei:p">
  <xsl:call-template name="block-element">
    <xsl:with-param name="style">teispeech</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../docx/to/drama.xsl
Template tei:sp/tei:stage
Documentation

Description

A stage direction
Namespace No namespace
Match tei:sp/tei:stage
Mode #default
References
Template
Import precedence 16
Source
<xsl:template match="tei:sp/tei:stage">
  <xsl:call-template name="block-element">
    <xsl:with-param name="style">teistage</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../docx/to/drama.xsl
Template tei:lpass0
Documentation

Description

A line of verse in a block gets an extra line at the end of the stanza. add a line break in pass0
Namespace No namespace
Match tei:l
Mode pass0
Import precedence 16
Source
<xsl:template match="tei:l" mode="pass0">
  <xsl:copy>
    <xsl:apply-templates mode="pass0" select="*|@*|text()"/>
    <xsl:if test="parent::tei:lg and not (following-sibling::tei:l)">
      <lb xmlns="http://www.tei-c.org/ns/1.0"/>
    </xsl:if>
  </xsl:copy>
</xsl:template>
Stylesheet location ../../../docx/to/drama.xsl
Template tei:l
Documentation

Description

A line of verse
Namespace No namespace
Match tei:l
Mode #default
References
Template
Import precedence 16
Source
<xsl:template match="tei:l">
  <xsl:call-template name="block-element">
    <xsl:with-param name="style">teil</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../docx/to/drama.xsl