Showing:

Documentation
Used by
References
Supersedes
Imported from
Source
Stylesheet tbx.xsl
Documentation

Description

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

Id: $Id: tbx.xsl 9646 2011-11-05 23:39:08Z rahtz $

Copyright: 2008, TEI Consortium

Imported from
Stylesheet version 2.0
Template tbx:term
Namespace No namespace
Match tbx:term
Mode #default
Import precedence 10
Source
<xsl:template match="tbx:term">
  <xsl:if test="../tbx:termNote[@type='administrativeStatus']='deprecatedTerm-admn-sts'">
    <xsl:text>DEPRECATED: </xsl:text>
  </xsl:if>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tbx.xsl
Template tbx:descrip[@type='definition']
Namespace No namespace
Match tbx:descrip[@type='definition']
Mode #default
Import precedence 10
Source
<xsl:template match="tbx:descrip[@type='definition']">
  <p class="Definition">
    <xsl:for-each select="ancestor::tbx:termEntry/tbx:descripGrp/tbx:descrip[@type='subjectField']">
      <span class="domain">
        <xsl:text></xsl:text>
        <xsl:value-of select="."/>
        <xsl:text></xsl:text>
      </span>
      <xsl:text> </xsl:text>
    </xsl:for-each>
    <xsl:apply-templates/>
    <xsl:for-each select="../../tbx:admin[@type='source']">
      <span class="source">
        <xsl:text> [SOURCE: </xsl:text>
        <xsl:apply-templates select="."/>
        <xsl:text>]</xsl:text>
      </span>
    </xsl:for-each>
  </p>
</xsl:template>
Stylesheet location tbx.xsl
Template tbx:termNote
Namespace No namespace
Match tbx:termNote
Mode #default
Import precedence 10
Source
<xsl:template match="tbx:termNote">
  <xsl:choose>
    <xsl:when test="@type='grammaticalGender'">
      <xsl:text>, </xsl:text>
      <span class="gender">
        <xsl:choose>
          <xsl:when test=".='masculine'">m</xsl:when>
          <xsl:when test=".='feminine'">f</xsl:when>
          <xsl:when test=".='neuter'">n</xsl:when>
        </xsl:choose>
      </span>
    </xsl:when>
    <xsl:when test="@type='grammaticalNumber'">
      <xsl:text>, </xsl:text>
      <span class="number">
        <xsl:value-of select="."/>
      </span>
    </xsl:when>
    <xsl:when test="@type='partOfSpeech'">
      <xsl:if test="not(.='noun')">
        <xsl:text>, </xsl:text>
        <span class="partOfSpeech">
          <xsl:value-of select="."/>
        </span>
      </xsl:if>
    </xsl:when>
    <xsl:when test="@type='pronunciation'">
      <xsl:text>, </xsl:text>
      <span class="pronunciation">
        <xsl:text>/ </xsl:text>
        <xsl:value-of select="."/>
        <xsl:text> /</xsl:text>
      </span>
    </xsl:when>
    <xsl:when test="@type='geographicalUsage'">
      <xsl:analyze-string select="." regex="^([^\-]+)-([^\-]+)(-x-)?([A-z]*)">
        <xsl:matching-substring>
          <xsl:text> </xsl:text>
          <span class="language">
            <xsl:value-of select="regex-group(1)"/>
          </span>
          <xsl:text> </xsl:text>
          <span class="geographicalUse">
            <xsl:value-of select="regex-group(2)"/>
          </span>
          <xsl:if test="not(regex-group(4)='')">
            <span class="script">
              <xsl:text> </xsl:text>
              <xsl:value-of select="regex-group(4)"/>
            </span>
          </xsl:if>
        </xsl:matching-substring>
        <xsl:non-matching-substring>
          <span class="geographicalUse">
            <xsl:value-of select="."/>
          </span>
        </xsl:non-matching-substring>
      </xsl:analyze-string>
    </xsl:when>
  </xsl:choose>
</xsl:template>
Stylesheet location tbx.xsl
Template termNum
Namespace No namespace
Used by
Template showTermEntry
Import precedence 10
Source
<xsl:template name="termNum">
  <xsl:value-of select="substring-after(../@id,'_')"/>
  <xsl:text> </xsl:text>
</xsl:template>
Stylesheet location tbx.xsl
Template tbx:termEntry
Namespace No namespace
Match tbx:termEntry
Mode #default
References
Template showTermEntry
Supersedes
Template tbx:termEntry
Import precedence 10
Source
<xsl:template match="tbx:termEntry">
  <div class="termEntry">
    <xsl:call-template name="showTermEntry"/>
  </div>
</xsl:template>
Stylesheet location tbx.xsl