Mode:

Compact lists

Showing:

Documentation
References
Overriding
Included 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

Included 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 1
Source
<xsl:template match="tei:app">
  <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: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:choose>
          <xsl:when test="not(../tei:lem) and position()=1"/>
          <xsl:otherwise>
            <xsl:value-of select="."/>
            <xsl:text>(</xsl:text>
            <xsl:value-of select="translate(substring(@wit,2),' #',', ')"/>
            <xsl:text>)</xsl:text>
          </xsl:otherwise>
        </xsl:choose>
        <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
Key APP
Namespace No namespace
Match tei:app
Use 1
Overriding
Key
Source
<xsl:key name="APP" match="tei:app" use="1"/>
Stylesheet location ../common2/textcrit.xsl