Mode:

Compact lists

Showing:

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

Description

TEI stylesheet dealing with elements from the textcrit module.

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

Copyright: 2011, TEI Consortium

Imported from
Stylesheet version 2.0
Template tei:app
Documentation

Description

Process element app

Process lem and rdg within app. Sends lots of information to a footnote. If a lem is not found, the first rdg is used as the base text.

Namespace No namespace
Match tei:app
Mode #default
References
Template
Import precedence 7
Source
<xsl:template match="tei:app">
  <xsl:call-template name="makeApp"/>
</xsl:template>
Stylesheet location ../common2/textcrit.xsl
Template makeApp
Namespace No namespace
Used by
Templates
References
Template
Parameters
QName Namespace
lem No namespace
Import precedence 7
Source
<xsl:template name="makeApp">
  <xsl:param name="lem"/>
  <xsl:call-template name="appReading">
    <xsl:with-param name="lemma">
      <xsl:choose>
        <xsl:when test="tei:lem">
          <xsl:value-of select="tei:lem"/>
        </xsl:when>
        <xsl:when test="not($lem='')">
          <xsl:value-of select="$lem"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="tei:rdg[1]"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:with-param>
    <xsl:with-param name="lemmawitness">
      <xsl:value-of select="@wit"/>
    </xsl:with-param>
    <xsl:with-param name="readings">
      <xsl:for-each select="tei:rdg">
        <!--	    <xsl:when test="$lem='' or (not(../tei:lem) and position()=1)"/>-->
        <xsl:apply-templates/>
        <xsl:if test="@cause='omission'">[]</xsl:if>
        <xsl:text> (</xsl:text>
        <xsl:value-of select="translate(substring(@wit,2),' #',', ')"/>
        <xsl:text>)</xsl:text>
        <xsl:if test="following-sibling::tei:rdg">;</xsl:if>
      </xsl:for-each>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../common2/textcrit.xsl
Template tei:w
Namespace No namespace
Match tei:w
Mode #default
References
Key
Template
Import precedence 7
Source
<xsl:template match="tei:w">
  <xsl:choose>
    <xsl:when test="not(tei:app) and key('APPREADINGS',@xml:id)">
      <xsl:call-template name="findApp"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../common2/textcrit.xsl
Template findApp
Namespace No namespace
Used by
Template
References
Key
Template
Import precedence 7
Source
<xsl:template name="findApp">
  <xsl:variable name="sourcelem" select="."/>
  <xsl:for-each select="key('APPREADINGS',@xml:id)">
    <xsl:call-template name="makeApp">
      <xsl:with-param name="lem" select="$sourcelem"/>
    </xsl:call-template>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../common2/textcrit.xsl
Template tei:back/tei:div[@type='apparatus']
Namespace No namespace
Match tei:back/tei:div[@type='apparatus']
Mode #default
Import precedence 7
Priority 9999
Source
<xsl:template match="tei:back/tei:div[@type='apparatus']" priority="9999"/>
Stylesheet location ../common2/textcrit.xsl
Template tei:metamark
Namespace No namespace
Match tei:metamark
Mode #default
Import precedence 7
Source
<xsl:template match="tei:metamark"/>
Stylesheet location ../common2/textcrit.xsl
Template tei:sourceDoc
Namespace No namespace
Match tei:sourceDoc
Mode #default
Import precedence 7
Source
<xsl:template match="tei:sourceDoc"/>
Stylesheet location ../common2/textcrit.xsl
Template tei:facsimile
Namespace No namespace
Match tei:facsimile
Mode #default
Overriding
Template
Import precedence 7
Source
<xsl:template match="tei:facsimile"/>
Stylesheet location ../common2/textcrit.xsl
Key APPREADINGS
Namespace No namespace
Match tei:app[starts-with(@from,'#')]
Use substring(@from,2)
Used by
Templates
Source
<xsl:key name="APPREADINGS" match="tei:app[starts-with(@from,'#')]" use="substring(@from,2)"/>
Stylesheet location ../common2/textcrit.xsl