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 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: tei.xsl 9329 2011-09-20 09:47:43Z 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 makeQuote
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
References
Parameter useFixedDate
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 tei:q
References
Template getQuote
Parameters postQuote; preQuote
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 uc
Documentation

Description

Uppercase letters.
Namespace No namespace
Used by
Template tei:listBibl
Source
<xsl:variable name="uc">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
Stylesheet location ../common2/tei.xsl
Variable lc
Documentation

Description

Lowercase letters.
Namespace No namespace
Used by
Template tei:listBibl
Source
<xsl:variable name="lc">abcdefghijklmnopqrstuvwxyz</xsl:variable>
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
Supersedes
Key APP
Source
<xsl:key name="APP" match="tei:app" use="1"/>
Stylesheet location ../common2/tei.xsl