Mode:

Compact lists

Showing:

Documentation
Used by
References
Supersedes
Imported modules
Source
Main stylesheet from.xsl
Documentation

Description

TEI stylesheet for simplifying TEI ODD markup

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

Imported modules
Stylesheet version 3.0
Template create-tei-header
Namespace No namespace
Used by
Template
References
Supersedes
Import precedence 9
Source
<xsl:template name="create-tei-header">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>
          <xsl:call-template name="getDocTitle"/>
        </title>
        <author>
          <xsl:call-template name="getDocAuthor"/>
        </author>
      </titleStmt>
      <editionStmt>
        <edition>
          <date>
            <xsl:call-template name="getDocDate"/>
          </date>
        </edition>
      </editionStmt>
      <publicationStmt>
        <p>
        </p>
      </publicationStmt>
      <sourceDesc>
        <p>Converted from a Word document </p>
      </sourceDesc>
    </fileDesc>
    <revisionDesc>
      <change>
        <date>
          <xsl:text>$LastChangedDate: </xsl:text>
          <xsl:value-of select="tei:whatsTheDate()"/>
          <xsl:text>$</xsl:text>
        </date>
        <name type="person">
          <xsl:call-template name="getDocAuthor"/>
        </name>
      </change>
    </revisionDesc>
  </teiHeader>
</xsl:template>
Stylesheet location from.xsl
Template tei:textpass2
Namespace No namespace
Match tei:text
Mode pass2
Supersedes
Template
Import precedence 9
Source
<xsl:template match="tei:text" mode="pass2">
  <text>
    <body>
      <xsl:for-each select="tei:body">
        <xsl:variable name="MS">
          <xsl:apply-templates mode="pass2"/>
        </xsl:variable>
        <xsl:for-each select="$MS">
          <msDesc>
            <xsl:attribute name="xml:lang">
              <xsl:text>en</xsl:text>
            </xsl:attribute>
            <xsl:attribute name="xml:id">
              <xsl:text>m1</xsl:text>
            </xsl:attribute>
            <msIdentifier>
            </msIdentifier>
            <xsl:copy-of select="tei:msContents"/>
            <physDesc>
              <xsl:copy-of select="tei:physDesc/tei:p"/>
              <xsl:if test="tei:supportDesc or tei:layoutDesc">
                <objectDesc>
                  <xsl:copy-of select="tei:supportDesc"/>
                  <xsl:copy-of select="tei:layoutDesc"/>
                </objectDesc>
              </xsl:if>
              <xsl:copy-of select="tei:handDesc"/>
              <xsl:copy-of select="tei:decoDesc"/>
              <xsl:copy-of select="tei:bindingDesc"/>
            </physDesc>
            <history>
            </history>
          </msDesc>
          <xsl:copy-of select="tei:title|tei:p|tei:div|tei:head"/>
        </xsl:for-each>
      </xsl:for-each>
    </body>
  </text>
</xsl:template>
Stylesheet location from.xsl
Template tei:div[tei:head='Decoration']pass2
Namespace No namespace
Match tei:div[tei:head='Decoration']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:div[tei:head='Decoration']" mode="pass2">
  <decoDesc>
    <xsl:apply-templates mode="pass2"/>
  </decoDesc>
</xsl:template>
Stylesheet location from.xsl
Template tei:div[tei:head='Text']pass2
Namespace No namespace
Match tei:div[tei:head='Text']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:div[tei:head='Text']" mode="pass2">
  <xsl:apply-templates mode="pass2"/>
</xsl:template>
Stylesheet location from.xsl
Template tei:div[tei:head='Binding']pass2
Namespace No namespace
Match tei:div[tei:head='Binding']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:div[tei:head='Binding']" mode="pass2">
  <bindingDesc>
    <xsl:apply-templates mode="pass2"/>
  </bindingDesc>
</xsl:template>
Stylesheet location from.xsl
Template tei:div[tei:head='Physical Description']pass2
Namespace No namespace
Match tei:div[tei:head='Physical Description']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:div[tei:head='Physical Description']" mode="pass2">
  <physDesc>
    <xsl:apply-templates mode="pass2"/>
  </physDesc>
</xsl:template>
Stylesheet location from.xsl
Template tei:body/tei:divpass2
Namespace No namespace
Match tei:body/tei:div
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:body/tei:div" mode="pass2">
  <xsl:if test="not(tei:head[string-length(.)=0] and count(*)=1)">
    <xsl:apply-templates mode="pass2"/>
  </xsl:if>
</xsl:template>
Stylesheet location from.xsl
Template tei:body/tei:div/tei:headpass2
Namespace No namespace
Match tei:body/tei:div/tei:head
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:body/tei:div/tei:head" mode="pass2">
  <title>
    <xsl:apply-templates mode="pass2"/>
  </title>
</xsl:template>
Stylesheet location from.xsl
Template tei:head[.='Decoration']pass2
Namespace No namespace
Match tei:head[.='Decoration']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:head[.='Decoration']" mode="pass2"/>
Stylesheet location from.xsl
Template tei:head[.='Text']pass2
Namespace No namespace
Match tei:head[.='Text']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:head[.='Text']" mode="pass2"/>
Stylesheet location from.xsl
Template tei:head[.='Binding']pass2
Namespace No namespace
Match tei:head[.='Binding']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:head[.='Binding']" mode="pass2"/>
Stylesheet location from.xsl
Template tei:head[.='Physical Description']pass2
Namespace No namespace
Match tei:head[.='Physical Description']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:head[.='Physical Description']" mode="pass2"/>
Stylesheet location from.xsl
Template @rend[.='Body Text']pass2
Namespace No namespace
Match @rend[.='Body Text']
Mode pass2
Supersedes
Import precedence 9
Source
<xsl:template match="@rend[.='Body Text']" mode="pass2"/>
Stylesheet location from.xsl
Template @rend[.='Body Text Indent']pass2
Namespace No namespace
Match @rend[.='Body Text Indent']
Mode pass2
Supersedes
Import precedence 9
Source
<xsl:template match="@rend[.='Body Text Indent']" mode="pass2"/>
Stylesheet location from.xsl
Template tei:hi/@rend[.='superscript']pass2
Namespace No namespace
Match tei:hi/@rend[.='superscript']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:hi/@rend[.='superscript']" mode="pass2">
  <xsl:attribute name="rend">
    <xsl:text>sup</xsl:text>
  </xsl:attribute>
</xsl:template>
Stylesheet location from.xsl
Template tei:publicationStmt[.='']pass2
Namespace No namespace
Match tei:publicationStmt[.='']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:publicationStmt[.='']" mode="pass2">
  <publicationStmt>
    <p>Unpublished </p>
  </publicationStmt>
</xsl:template>
Stylesheet location from.xsl
Template tei:c[tei:match(@rend,'tab')]pass2
Namespace No namespace
Match tei:c[tei:match(@rend,'tab')]
Mode pass2
References
Import precedence 9
Source
<xsl:template match="tei:c[tei:match(@rend,'tab')]" mode="pass2">
  <xsl:text> </xsl:text>
</xsl:template>
Stylesheet location from.xsl
Template tei:c[@iso:font='Symbol']pass2
Namespace No namespace
Match tei:c[@iso:font='Symbol']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:c[@iso:font='Symbol']" mode="pass2">
  <xsl:choose>
    <xsl:when test="@n='F0B4'">×</xsl:when>
    <xsl:when test="@n='F05B'">[</xsl:when>
    <xsl:when test="@n='F05D'">]</xsl:when>
    <xsl:otherwise>
      <xsl:message>Panic: character
        <xsl:value-of select="@n"/>unknown</xsl:message>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location from.xsl
Template tei:fwpass2
Namespace No namespace
Match tei:fw
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:fw" mode="pass2"/>
Stylesheet location from.xsl
Template tei:milestone[@unit='section']pass2
Namespace No namespace
Match tei:milestone[@unit='section']
Mode pass2
Import precedence 9
Source
<xsl:template match="tei:milestone[@unit='section']" mode="pass2"/>
Stylesheet location from.xsl