Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Supersedes
Imported modules
Included 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 10010 2012-01-03 19:35:49Z rahtz $

Copyright: 2011, TEI Consortium

Imported modules
Included modules
Imported from
Stylesheet version 2.0
Template getQuote
Documentation

Description

[common] turn names into quote characters

Parameters

quote quote
Namespace No namespace
Used by
Template
Parameters
QName Namespace
quote No namespace
Import precedence 1
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:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template whatsTheDate
Namespace No namespace
Used by
Template
References
Parameter
Import precedence 1
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
Namespace No namespace
Used by
Template
References
Template
Parameters
Import precedence 1
Source
<xsl:template name="makeQuote">
  <xsl:variable name="pre">
    <xsl:choose>
      <xsl:when test="contains(@rend,'PRE')">
        <xsl:choose>
          <xsl:when test="contains(@rend,'POST')">
            <xsl:call-template name="getQuote">
              <xsl:with-param name="quote" select="normalize-space(substring-before(substring-after(@rend,'PRE'),'POST'))"/>
            </xsl:call-template>
          </xsl:when>
          <xsl:otherwise>
            <xsl:call-template name="getQuote">
              <xsl:with-param name="quote" select="normalize-space(substring-after(@rend,'PRE'))"/>
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$preQuote"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:variable name="post">
    <xsl:choose>
      <xsl:when test="contains(@rend,'POST')">
        <xsl:call-template name="getQuote">
          <xsl:with-param name="quote" select="normalize-space(substring-after(@rend,'POST'))"/>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$postQuote"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:value-of select="$pre"/>
  <xsl:apply-templates/>
  <xsl:value-of select="$post"/>
</xsl:template>
Stylesheet location ../common2/tei.xsl
Template tei:makeText
Namespace http://www.tei-c.org/ns/1.0
Used by
Parameters
QName Namespace
letters No namespace
Import precedence 1
Source
<xsl:template name="tei:makeText">
  <xsl:param name="letters"/>
  <xsl:value-of select="$letters"/>
</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
Supersedes
Key
Source
<xsl:key name="APP" match="tei:app" use="1"/>
Stylesheet location ../common2/tei.xsl