Showing:

Documentation
Used by
References
Included from
Source
Stylesheet textcrit.xsl
Documentation

Description

TEI stylesheet dealing with elements from the textcrit module, making HTML output.

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 xs

Author: See AUTHORS

Id: $Id: textcrit.xsl 7025 2009-11-29 19:47:02Z rahtz $

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template tei:app
Namespace No namespace
Match tei:app
Mode #default
References
Parameter footnoteFile
Variable masterFile
Template appN
Import precedence 3
Source
<xsl:template match="tei:app">
  <xsl:variable name="identifier">
    <xsl:text>App</xsl:text>
    <xsl:choose>
      <xsl:when test="@xml:id">
        <xsl:value-of select="@xml:id"/>
      </xsl:when>
      <xsl:when test="@n">
        <xsl:value-of select="@n"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:number count="tei:app" level="any"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:choose>
    <xsl:when test="$footnoteFile='true'">
      <a class="notelink" href="{$masterFile}-notes.html#{$identifier}">
        <sup>
          <xsl:call-template name="appN"/>
        </sup>
      </a>
    </xsl:when>
    <xsl:otherwise>
      <a class="notelink" href="#{$identifier}">
        <sup>
          <xsl:call-template name="appN"/>
        </sup>
      </a>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../xhtml2/textcrit.xsl
Template appN
Namespace No namespace
Used by
Import precedence 3
Source
<xsl:template name="appN">
  <xsl:choose>
    <xsl:when test="@n">
      <xsl:value-of select="@n"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:number from="tei:text" level="any"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../xhtml2/textcrit.xsl
Template tei:appprintnotes
Namespace No namespace
Match tei:app
Mode printnotes
References
Templates appN; makeAnchor
Import precedence 3
Source
<xsl:template match="tei:app" mode="printnotes">
  <xsl:variable name="identifier">
    <xsl:text>App</xsl:text>
    <xsl:choose>
      <xsl:when test="@xml:id">
        <xsl:value-of select="@xml:id"/>
      </xsl:when>
      <xsl:when test="@n">
        <xsl:value-of select="@n"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:number count="tei:app" level="any"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <div class="note">
    <xsl:call-template name="makeAnchor">
      <xsl:with-param name="name" select="$identifier"/>
    </xsl:call-template>
    <span class="noteLabel">
      <xsl:call-template name="appN"/>
      <xsl:text>. </xsl:text>
    </span>
    <span class="noteBody">
      <xsl:apply-templates/>
    </span>
  </div>
</xsl:template>
Stylesheet location ../../../xhtml2/textcrit.xsl
Template tei:rdg
Namespace No namespace
Match tei:rdg
Mode #default
Import precedence 3
Source
<xsl:template match="tei:rdg">
  <span class="rdg">
    <xsl:apply-templates/>
  </span>
  <xsl:text> (</xsl:text>
  <a href="{@wit}">
    <xsl:choose>
      <xsl:when test="starts-with(@wit,'#')">
        <xsl:value-of select="substring-after(@wit,'#')"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:for-each select="document(@wit)">
          <xsl:value-of select="."/>
        </xsl:for-each>
      </xsl:otherwise>
    </xsl:choose>
  </a>
  <xsl:text>)</xsl:text>
</xsl:template>
Stylesheet location ../../../xhtml2/textcrit.xsl