Showing:

Documentation
References
Overriding
Included from
Source
Stylesheet textcrit.xsl
Documentation

Description

TEI stylesheet dealing with elements from the textcrit module.

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

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 appReading
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 APP
Source
<xsl:key name="APP" match="tei:app" use="1"/>
Stylesheet location ../common2/textcrit.xsl