Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Included from
Source
Stylesheet tei2html-xtm.xsl
Included from
Stylesheet version 2.0
Template nameGloss
Documentation
<xdoc:doc type="stylesheet">
        <xdoc:author>John A. Walsh</xdoc:author>
        <xdoc:copyright>Copyright 2006 John A. Walsh</xdoc:copyright>
        <xdoc:short>XSLT stylesheet to transform TEI P5 documents to XHTML.</xdoc:short>
    </xdoc:doc>
Namespace No namespace
Used by
References
Parameter
Variable
Parameters
QName Namespace
target No namespace
Import precedence 0
Source
<xsl:template name="nameGloss">
  <xsl:param name="target"/>
  <span>
    <xsl:attribute name="class" select="concat('showTip ',$target)"/>
    <span class="ref">
      <!--
                <xsl:call-template name="id"/>
                <xsl:call-template name="rend"/>
                <xsl:call-template name="rendition">
                    <xsl:with-param name="defaultRend" select="'ref'"/>
                </xsl:call-template>
                -->
      <xsl:value-of select="$refSymbol"/>
      <xsl:apply-templates select="$xtm//xtm:topic[@id = $target]"/>
    </span>
  </span>
</xsl:template>
Template xtm:topic
Namespace No namespace
Match xtm:topic
Mode #default
Import precedence 0
Source
<xsl:template match="xtm:topic">
  <!--    <xsl:template match="xtm:topic[xtm:instanceOf/xtm:topicRef/@href='#person']"> -->
  <span class="tipContent">
    <xsl:attribute name="id">
      <xsl:value-of select="@id"/>
    </xsl:attribute>
    <span class="glossTerm">
      <xsl:value-of select="normalize-space(xtm:name/xtm:value)"/>
      <xsl:choose>
        <xsl:when test="xtm:occurrence/xtm:type/xtm:topicRef/@href = '#date-of-birth'">
          <xsl:text> (</xsl:text>
          <xsl:value-of select="normalize-space(xtm:occurrence[xtm:type/xtm:topicRef/@href='#date-of-birth']/xtm:resourceData//tei:date/@when)"/>
          <xsl:text>-</xsl:text>
          <xsl:value-of select="normalize-space(xtm:occurrence[xtm:type/xtm:topicRef/@href='#date-of-death']/xtm:resourceData//tei:date/@when)"/>
          <xsl:text>)</xsl:text>
        </xsl:when>
        <xsl:when test="xtm:occurrence/xtm:type/xtm:topicRef/@href = '#date'">
          <xsl:value-of select="concat(' (',normalize-space(xtm:occurrence[xtm:type/xtm:topicRef/@href='#date']/xtm:resourceData//tei:date),')')"/>
        </xsl:when>
      </xsl:choose>
    </span>
    <span class="gloss">
      <xsl:apply-templates select="xtm:occurrence[xtm:type/xtm:topicRef/@href = '#description']/xtm:resourceData"/>
      <xsl:if test="xtm:occurrence[xtm:type/xtm:topicRef/@href = '#article'] or xtm:occurrence[xtm:type/xtm:topicRef/@href = '#collection']">
        <div>
          <span style="display:block; font-weight:bold;">Resources:</span>
          <ul style="margin-left:2em;">
            <xsl:apply-templates select="xtm:occurrence[xtm:type/xtm:topicRef/@href = '#article'] | xtm:occurrence[xtm:type/xtm:topicRef/@href = '#collection']"/>
          </ul>
        </div>
      </xsl:if>
    </span>
  </span>
</xsl:template>
Template xtm:resourceData/tei:div
Namespace No namespace
Match xtm:resourceData/tei:div
Mode #default
Import precedence 0
Source
<xsl:template match="xtm:resourceData/tei:div">
  <xsl:apply-templates/>
</xsl:template>
Template xtm:occurrence[xtm:type/xtm:topicRef/@href = '#article'] | xtm:occurrence[xtm:type/xtm:topicRef/@href = '#collection']
Namespace No namespace
Match xtm:occurrence[xtm:type/xtm:topicRef/@href = '#article'] | xtm:occurrence[xtm:type/xtm:topicRef/@href = '#collection']
Mode #default
Import precedence 0
Source
<xsl:template match="xtm:occurrence[xtm:type/xtm:topicRef/@href = '#article'] | xtm:occurrence[xtm:type/xtm:topicRef/@href = '#collection']">
  <li>
    <a>
      <xsl:attribute name="href" select="xtm:resourceRef/@href"/>
      <xsl:value-of select="xtm:resourceRef/@href"/>
    </a>
  </li>
</xsl:template>
Template getXtmName
Namespace No namespace
Used by
References
Variable
Parameters
QName Namespace
scope No namespace
target No namespace
Import precedence 0
Source
<xsl:template name="getXtmName">
  <xsl:param name="target"/>
  <xsl:param name="scope"/>
  <xsl:choose>
    <xsl:when test="$scope = ''">
      <xsl:value-of select="$xtm//xtm:topic[@id = $target]/xtm:name/xtm:value"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$xtm//xtm:topic[@id = $target]/xtm:name/xtm:variant[xtm:scope/xtm:topicRef/@href = concat('#',$scope)]/xtm:resourceData"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>