Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Supersedes
Imported modules
Included modules
Source
Main stylesheet tei.xsl
Documentation

Description

TEI stylesheet making XSL-FO output.

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 11542 2013-01-28 10:57:54Z rahtz $

Copyright: 2011, TEI Consortium

Imported modules
Included modules
Stylesheet version 2.0
Template makeBlock
Namespace No namespace
Used by
References
Parameters
QName Namespace
style No namespace
Import precedence 12
Source
<xsl:template name="makeBlock">
  <xsl:param name="style"/>
  <block font-size="{tei:fontSize($style)}" font-style="{tei:fontStyle($style)}" font-weight="{tei:fontWeight($style)}">
    <xsl:apply-templates/>
  </block>
</xsl:template>
Stylesheet location tei.xsl
Template makeSection
Namespace No namespace
Used by
References
Template
Supersedes
Template
Parameters
QName Namespace
heading No namespace
implicitBlock No namespace
level No namespace
Import precedence 12
Source
<xsl:template name="makeSection">
  <xsl:param name="level"/>
  <xsl:param name="heading"/>
  <xsl:param name="implicitBlock">false</xsl:param>
  <xsl:variable name="temp">
    <tei:head>
      <xsl:value-of select="$heading"/>
    </tei:head>
  </xsl:variable>
  <xsl:for-each select="$temp">
    <xsl:call-template name="NumberedHeading">
      <xsl:with-param name="level" select="$level"/>
    </xsl:call-template>
  </xsl:for-each>
  <block>
    <xsl:apply-templates/>
  </block>
</xsl:template>
Stylesheet location tei.xsl
Template makeWithLabel
Namespace No namespace
Used by
Supersedes
Template
Parameters
QName Namespace
before No namespace
Import precedence 12
Source
<xsl:template name="makeWithLabel">
  <xsl:param name="before"/>
  <i>
    <xsl:value-of select="$before"/>
  </i>
  <xsl:text>: </xsl:text>
  <xsl:value-of select="normalize-space(.)"/>
</xsl:template>
Stylesheet location tei.xsl
Template makeInline
Namespace No namespace
Used by
References
Parameters
QName Namespace
after No namespace
before No namespace
style No namespace
Import precedence 12
Source
<xsl:template name="makeInline">
  <xsl:param name="before"/>
  <xsl:param name="after"/>
  <xsl:param name="style"/>
  <xsl:value-of select="$before"/>
  <inline font-style="{tei:fontStyle($style)}" font-weight="{tei:fontWeight($style)}">
    <xsl:apply-templates/>
  </inline>
  <xsl:value-of select="$after"/>
</xsl:template>
Stylesheet location tei.xsl
Variable top
Documentation

Description

Stylesheet constant for the input document.
Namespace No namespace
Select /
Used by
Variable
Source
<xsl:variable name="top" select="/"/>
Stylesheet location tei.xsl
Variable tableSpecs
Documentation

Description

Stylesheet constant for table specifications
Namespace No namespace
Used by
References
Parameter
Variable
Source
<xsl:variable name="tableSpecs">
  <xsl:choose>
    <xsl:when test="$readColSpecFile">
      <xsl:copy-of select="document($readColSpecFile,$top)/Info"/>
    </xsl:when>
    <xsl:otherwise>
      <Info/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:variable>
Stylesheet location tei.xsl
Function tei:fontSize (style)
Namespace http://www.tei-c.org/ns/1.0
Type xs:string
Used by
Template
Parameters
QName Namespace
style No namespace
Import precedence 12
Source
<xsl:function name="tei:fontSize" as="xs:string">
  <xsl:param name="style"/>
  <xsl:choose>
    <xsl:when test="$style='docAuthor'">14pt</xsl:when>
    <xsl:when test="$style='docTitle'">16pt</xsl:when>
    <xsl:when test="$style='titlePart'">16pt</xsl:when>
    <xsl:when test="$style='docDate'">14pt</xsl:when>
    <xsl:otherwise>12pt</xsl:otherwise>
  </xsl:choose>
</xsl:function>
Stylesheet location tei.xsl
Function tei:fontStyle (style)
Namespace http://www.tei-c.org/ns/1.0
Type xs:string
Used by
Templates
Parameters
QName Namespace
style No namespace
Import precedence 12
Source
<xsl:function name="tei:fontStyle" as="xs:string">
  <xsl:param name="style"/>
  <xsl:choose>
    <xsl:when test="$style='docAuthor'">italic</xsl:when>
    <xsl:otherwise>normal</xsl:otherwise>
  </xsl:choose>
</xsl:function>
Stylesheet location tei.xsl
Function tei:fontWeight (style)
Namespace http://www.tei-c.org/ns/1.0
Type xs:string
Used by
Templates
Parameters
QName Namespace
style No namespace
Import precedence 12
Source
<xsl:function name="tei:fontWeight" as="xs:string">
  <xsl:param name="style"/>
  <xsl:choose>
    <xsl:when test="$style='docTitle'">bold</xsl:when>
    <xsl:when test="$style='titlePart'">bold</xsl:when>
    <xsl:otherwise>normal</xsl:otherwise>
  </xsl:choose>
</xsl:function>
Stylesheet location tei.xsl
Output (default)
Namespace No namespace
Output properties
encoding indent
no
Source
<xsl:output indent="no" encoding="utf-8"/>
Stylesheet location tei.xsl
Key DIVS
Namespace No namespace
Match tei:div|tei:div1|tei:div2|tei:div3|tei:div4|tei:div5
Use '1'
Source
<xsl:key name="DIVS" match="tei:div|tei:div1|tei:div2|tei:div3|tei:div4|tei:div5" use="'1'"/>
Stylesheet location tei.xsl