Showing:

Documentation
Parameters
Used by
References
Imported from
Source
Stylesheet msdescription.xsl
Documentation

Description

TEI stylesheet dealing with elements from the msdescription 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

Id: $Id: msdescription.xsl 7728 2010-06-20 20:49:02Z rahtz $

Copyright: 2008, TEI Consortium

Imported from
Stylesheet version 2.0
Template msSection
Namespace No namespace
Used by
Parameters
QName Namespace
heading No namespace
implicitBlock No namespace
level No namespace
Import precedence 13
Source
<xsl:template name="msSection">
  <xsl:param name="heading"/>
  <xsl:param name="level"/>
  <xsl:param name="implicitBlock"/>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template msBlock
Namespace No namespace
Used by
Parameters
QName Namespace
style No namespace
Import precedence 13
Source
<xsl:template name="msBlock">
  <xsl:param name="style"/>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template msInline
Namespace No namespace
Used by
Parameters
QName Namespace
after No namespace
before No namespace
style No namespace
Import precedence 13
Source
<xsl:template name="msInline">
  <xsl:param name="before"/>
  <xsl:param name="after"/>
  <xsl:param name="style"/>
  <xsl:value-of select="$before"/>
  <xsl:apply-templates/>
  <xsl:value-of select="$after"/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template msLabelled
Namespace No namespace
Used by
Parameters
QName Namespace
before No namespace
Import precedence 13
Source
<xsl:template name="msLabelled">
  <xsl:param name="before"/>
  <xsl:value-of select="$before"/>
  <xsl:text>: </xsl:text>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template msLiteral
Namespace No namespace
Used by
Parameters
QName Namespace
text No namespace
Import precedence 13
Source
<xsl:template name="msLiteral">
  <xsl:param name="text"/>
  <xsl:value-of select="$text"/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:accMat
Documentation

Description

 headings 
Namespace No namespace
Match tei:accMat
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:accMat">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Accompanying material</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:additional
Namespace No namespace
Match tei:additional
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:additional">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Additional</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:bindingDesc
Namespace No namespace
Match tei:bindingDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:bindingDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Binding</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msContents
Namespace No namespace
Match tei:msContents
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:msContents">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">1</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Contents</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msDesc/tei:head
Namespace No namespace
Match tei:msDesc/tei:head
Mode #default
References
Template msBlock
Import precedence 13
Source
<xsl:template match="tei:msDesc/tei:head">
  <xsl:call-template name="msBlock">
    <xsl:with-param name="style">msHead</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:history
Namespace No namespace
Match tei:history
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:history">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">1</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>History</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:provenance
Namespace No namespace
Match tei:provenance
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:provenance">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Provenance</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:acquisition
Namespace No namespace
Match tei:acquisition
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:acquisition">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Acquisition</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:origin
Namespace No namespace
Match tei:origin
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:origin">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Origin</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msIdentifier
Namespace No namespace
Match tei:msIdentifier
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:msIdentifier">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">1</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Identification</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:layoutDesc
Namespace No namespace
Match tei:layoutDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:layoutDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">3</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Layout</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:decoDesc
Namespace No namespace
Match tei:decoDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:decoDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">3</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Decoration</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msWriting
Namespace No namespace
Match tei:msWriting
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:msWriting">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Writing</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:musicNotation
Namespace No namespace
Match tei:musicNotation
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:musicNotation">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Music notation</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:objectDesc
Namespace No namespace
Match tei:objectDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:objectDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Object</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:physDesc
Namespace No namespace
Match tei:physDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:physDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">1</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Physical description</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:seal
Namespace No namespace
Match tei:seal
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:seal">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">4</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Seal</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:sealDesc
Namespace No namespace
Match tei:sealDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:sealDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">3</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Seal description</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:supportDesc
Namespace No namespace
Match tei:supportDesc
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:supportDesc">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">3</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Support description</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:support
Namespace No namespace
Match tei:support
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:support">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">4</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Support</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:collation
Namespace No namespace
Match tei:collation
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:collation">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">4</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Collation</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:extent
Namespace No namespace
Match tei:extent
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:extent">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">4</xsl:with-param>
    <xsl:with-param name="implicitBlock">true</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Extent</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:incipit
Namespace No namespace
Match tei:incipit
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:incipit">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Incipit</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:explicit
Namespace No namespace
Match tei:explicit
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:explicit">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Explicit</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msItem/tei:listBibl
Namespace No namespace
Match tei:msItem/tei:listBibl
Mode #default
References
Template msSection
Import precedence 13
Source
<xsl:template match="tei:msItem/tei:listBibl">
  <xsl:call-template name="msSection">
    <xsl:with-param name="level">2</xsl:with-param>
    <xsl:with-param name="heading">
      <xsl:text>Text editions</xsl:text>
    </xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:abbr
Documentation

Description

 inline 
Namespace No namespace
Match tei:abbr
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:abbr">
  <xsl:choose>
    <xsl:when test="parent::tei:choice">
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="msInline"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:orig
Namespace No namespace
Match tei:orig
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:orig">
  <xsl:choose>
    <xsl:when test="parent::tei:choice">
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="msInline"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:textLang
Namespace No namespace
Match tei:textLang
Mode #default
References
Templates msLabelled; msLiteral
Import precedence 13
Source
<xsl:template match="tei:textLang">
  <xsl:choose>
    <xsl:when test="preceding-sibling::tei:summary"/>
    <xsl:when test="preceding-sibling::tei:*">
      <xsl:call-template name="msLiteral">
        <xsl:with-param name="text">
          <xsl:text>, </xsl:text>
        </xsl:with-param>
      </xsl:call-template>
    </xsl:when>
  </xsl:choose>
  <xsl:call-template name="msLabelled">
    <xsl:with-param name="before">Language of text</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:summary
Namespace No namespace
Match tei:summary
Mode #default
References
Templates msLabelled; msLiteral
Import precedence 13
Source
<xsl:template match="tei:summary">
  <xsl:choose>
    <xsl:when test="preceding-sibling::tei:*">
      <xsl:call-template name="msLiteral">
        <xsl:with-param name="text">
          <xsl:text>, </xsl:text>
        </xsl:with-param>
      </xsl:call-template>
    </xsl:when>
  </xsl:choose>
  <xsl:call-template name="msLabelled">
    <xsl:with-param name="before">Summary</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:rubric
Namespace No namespace
Match tei:rubric
Mode #default
References
Templates msInline; msLiteral
Import precedence 13
Source
<xsl:template match="tei:rubric">
  <xsl:if test="preceding-sibling::tei:*">
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:text> </xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:if>
  <xsl:call-template name="msInline"/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msItem/tei:author
Namespace No namespace
Match tei:msItem/tei:author
Mode #default
References
Templates msInline; msLiteral
Import precedence 13
Source
<xsl:template match="tei:msItem/tei:author">
  <xsl:if test="preceding-sibling::tei:*">
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:text> </xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:if>
  <xsl:call-template name="msInline"/>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msItem/tei:title
Namespace No namespace
Match tei:msItem/tei:title
Mode #default
References
Templates msInline; msLiteral
Import precedence 13
Source
<xsl:template match="tei:msItem/tei:title">
  <xsl:if test="preceding-sibling::tei:*">
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:text> </xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:if>
  <xsl:call-template name="msInline">
    <xsl:with-param name="style">italic</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:expan/tei:ex
Namespace No namespace
Match tei:expan/tei:ex
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:expan/tei:ex">
  <xsl:call-template name="msInline">
    <xsl:with-param name="before">(</xsl:with-param>
    <xsl:with-param name="after">)</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:locus
Namespace No namespace
Match tei:locus
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:locus">
  <xsl:call-template name="msInline">
    <xsl:with-param name="style">bold</xsl:with-param>
    <xsl:with-param name="before"/>
    <xsl:with-param name="after">:</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:supplied[@reason='damage']
Namespace No namespace
Match tei:supplied[@reason='damage']
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:supplied[@reason='damage']">
  <xsl:call-template name="msInline">
    <xsl:with-param name="before"><</xsl:with-param>
    <xsl:with-param name="after">></xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:supplied[@reason='illegible']
Namespace No namespace
Match tei:supplied[@reason='illegible']
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:supplied[@reason='illegible']">
  <xsl:call-template name="msInline">
    <xsl:with-param name="before">[</xsl:with-param>
    <xsl:with-param name="after">]</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:supplied[@reason='omitted']
Namespace No namespace
Match tei:supplied[@reason='omitted']
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:supplied[@reason='omitted']">
  <xsl:call-template name="msInline">
    <xsl:with-param name="before"></xsl:with-param>
    <xsl:with-param name="after"></xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:gap
Namespace No namespace
Match tei:gap
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:gap">
  <xsl:call-template name="msInline">
    <xsl:with-param name="before">[...]</xsl:with-param>
  </xsl:call-template>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:placeName|tei:genName|tei:geogName|tei:roleName|tei:name|tei:persName
Namespace No namespace
Match tei:placeName|tei:genName|tei:geogName|tei:roleName|tei:name|tei:persName
Mode #default
References
Template msInline
Import precedence 13
Source
<xsl:template match="tei:placeName|tei:genName|tei:geogName|tei:roleName|tei:name|tei:persName">
  <xsl:choose>
    <xsl:when test="*">
      <xsl:apply-templates/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="msInline"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:dimensions
Namespace No namespace
Match tei:dimensions
Mode #default
References
Template msLiteral
Import precedence 13
Source
<xsl:template match="tei:dimensions">
  <xsl:for-each select="*">
    <xsl:apply-templates select="."/>
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:choose>
          <xsl:when test="string-length(.)=0 and @extent">
            <xsl:value-of select="@extent"/>
          </xsl:when>
          <xsl:when test="@unit">
            <xsl:value-of select="@unit"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:text>mm</xsl:text>
          </xsl:otherwise>
        </xsl:choose>
        <xsl:if test="following-sibling::*">
          <xsl:text> x </xsl:text>
        </xsl:if>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:origDate
Namespace No namespace
Match tei:origDate
Mode #default
References
Template msLiteral
Import precedence 13
Source
<xsl:template match="tei:origDate">
  <xsl:apply-imports/>
  <xsl:if test="following-sibling::tei:origPlace">
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:text>, </xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:if>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:msIdentifier/tei:*
Namespace No namespace
Match tei:msIdentifier/tei:*
Mode #default
References
Template msLiteral
Import precedence 13
Source
<xsl:template match="tei:msIdentifier/tei:*">
  <xsl:apply-imports/>
  <xsl:if test="following-sibling::tei:*/text()">
    <xsl:call-template name="msLiteral">
      <xsl:with-param name="text">
        <xsl:text>, </xsl:text>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:if>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl
Template tei:handNote
Documentation

Description

    <handNote scribe="AM_544_4to_1"
    script="carolingian-insular minuscule"
    medium="ink" scope="sole"> 
Namespace No namespace
Match tei:handNote
Mode #default
Import precedence 13
Source
<xsl:template match="tei:handNote">
  <xsl:if test="not(preceding-sibling::tei:handNote)">
    <xsl:variable name="Notes">
      <tei:list type="ordered">
        <xsl:for-each select="../tei:handNote">
          <item>
            <xsl:copy-of select="*|text()"/>
          </item>
        </xsl:for-each>
      </tei:list>
    </xsl:variable>
    <xsl:apply-templates select="$Notes"/>
  </xsl:if>
</xsl:template>
Stylesheet location ../../../common2/msdescription.xsl