Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Overriding
Imported modules
Imported from
Source
Stylesheet tei.xsl
Documentation

Description

TEI stylesheet definitions common for all of HTML, FO and LaTeX outputs

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: tei.xsl 12078 2013-05-05 12:51:58Z rahtz $

Copyright: 2013, TEI Consortium

Imported modules
Imported from
Stylesheet version 2.0
Template getQuote
Documentation

Description

[common] turn names into quote characters

Parameters

quote quote
Namespace No namespace
Parameters
QName Namespace
quote No namespace
Import precedence 10
Source
<xsl:template name="getQuote">
  <xsl:param name="quote"/>
  <xsl:choose>
    <xsl:when test="$quote='laquo'">«</xsl:when>
    <xsl:when test="$quote='ldquo'"></xsl:when>
    <xsl:when test="$quote='ldquor'"></xsl:when>
    <xsl:when test="$quote='lsaquo'"></xsl:when>
    <xsl:when test="$quote='lsquo'"></xsl:when>
    <xsl:when test="$quote='lsquor'"></xsl:when>
    <xsl:when test="$quote='mdash'"></xsl:when>
    <xsl:when test="$quote='raquo'">»</xsl:when>
    <xsl:when test="$quote='rdquo'"></xsl:when>
    <xsl:when test="$quote='rdquor'"></xsl:when>
    <xsl:when test="$quote='rsaquo'"></xsl:when>
    <xsl:when test="$quote='rsquo'"></xsl:when>
    <xsl:when test="$quote='rsquor'"></xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$quote"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template whatsTheDate
Documentation

Description

[common] work out the date and time, unless we have been told not to
Namespace No namespace
References
Parameter
Import precedence 10
Source
<xsl:template name="whatsTheDate">
  <xsl:choose>
    <xsl:when test="$useFixedDate='true'">1970-01-01</xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="format-dateTime(current-dateTime(),'[Y]-[M02]-[D02]T[H02]:[m02]:[s02]Z')"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template makeQuote
Documentation

Description

[common] whether to put quotes around something. check the quotation element, @rend, @rendition etc
Namespace No namespace
Used by
References
Import precedence 10
Source
<xsl:template name="makeQuote">
  <xsl:choose>
    <xsl:when test="/*/tei:teiHeader//tei:editorialDecl/tei:quotation[@marks='all']">
      <xsl:apply-templates/>
    </xsl:when>
    <xsl:when test="@rend='inline'">
      <xsl:value-of select="$preQuote"/>
      <xsl:apply-templates/>
      <xsl:value-of select="$postQuote"/>
    </xsl:when>
    <xsl:when test="$outputTarget='latex'">
      <xsl:value-of select="$preQuote"/>
      <xsl:apply-templates/>
      <xsl:value-of select="$postQuote"/>
    </xsl:when>
    <xsl:when test="@rend or @rendition or          key('TAGREND',local-name(.))">
      <xsl:apply-templates/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$preQuote"/>
      <xsl:apply-templates/>
      <xsl:value-of select="$postQuote"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template makeText
Namespace No namespace
Used by
Parameters
QName Namespace
letters No namespace
Import precedence 10
Source
<xsl:template name="makeText">
  <xsl:param name="letters"/>
  <xsl:value-of select="$letters"/>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template makeSection
Namespace No namespace
Overriding
Template
Parameters
QName Namespace
heading No namespace
implicitBlock No namespace
level No namespace
Import precedence 10
Source
<xsl:template name="makeSection">
  <xsl:param name="heading"/>
  <xsl:param name="level"/>
  <xsl:param name="implicitBlock"/>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template makeWithLabel
Namespace No namespace
Overriding
Template
Parameters
QName Namespace
before No namespace
Import precedence 10
Source
<xsl:template name="makeWithLabel">
  <xsl:param name="before"/>
  <xsl:value-of select="$before"/>
  <xsl:text>: </xsl:text>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Variable processor
Documentation

Description

Name of XSLT processor.
Namespace No namespace
Source
<xsl:variable name="processor">
  <xsl:value-of select="system-property('xsl:vendor')"/>
</xsl:variable>
Stylesheet location ../common2/tei.xsl
Key APP
Namespace No namespace
Match tei:app
Use 1
Used by
Source
<xsl:key name="APP" match="tei:app" use="1"/>
Stylesheet location ../common2/tei.xsl
Key TAGREND
Namespace No namespace
Match tei:tagUsage[@render]
Use @gi
Used by
Template
Source
<xsl:key name="TAGREND" match="tei:tagUsage[@render]" use="@gi"/>
Stylesheet location ../common2/tei.xsl