Mode:

Compact lists

Showing:

Documentation
Parameters
Included from
Source
Stylesheet tei2html-dict.xsl
Included from
Stylesheet version 2.0
Template entry
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
Match entry
Mode #default
Import precedence 0
Source
<xsl:template match="entry">
  <span class="tipContent">
    <xsl:attribute name="id">
      <xsl:value-of select="@xml:id"/>
    </xsl:attribute>
    <span class="glossTerm">
      <xsl:value-of select="normalize-space(form/orth)"/>
    </span>
    <span class="gloss">
      <xsl:apply-templates select=".//def"/>
    </span>
  </span>
</xsl:template>
Template def
Namespace No namespace
Match def
Mode #default
Parameters
QName Namespace Type
defNum No namespace xs:integer
Import precedence 0
Source
<xsl:template match="def">
  <xsl:param as="xs:integer" name="defNum">
    <xsl:value-of select="count(ancestor::hom/sense)"/>
  </xsl:param>
  <xsl:message>
    <xsl:text>tei2html: </xsl:text>
    <xsl:value-of select="ancestor::entry/@xml:id"/>:
    <xsl:value-of select="$defNum"/>
  </xsl:message>
  <xsl:choose>
    <xsl:when test="$defNum > 1">
      <span class="sense">
        <xsl:number count="def" from="hom" level="any"/>
        <xsl:text>. </xsl:text>
        <xsl:apply-templates/>
      </span>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Template def/bibl
Namespace No namespace
Match def/bibl
Mode #default
Import precedence 0
Source
<xsl:template match="def/bibl"/>