Mode:

Compact lists

Showing:

Documentation
Used by
References
Source
Main stylesheet tcp2tei.xsl
Documentation

Description

XSLT script for cleaning up ECCO texts TEI P5 conversion

LicenseThis 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 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

Copyright: 2013, TEI Consortium


Description

$Date$ $Author$

Stylesheet version 3.0
Template /
Documentation

Description

 multi-stage transform, 3 passes on each text 
Namespace No namespace
Match /
Mode #default
Import precedence 0
Source
<xsl:template match="/">
  <xsl:variable name="pass1">
    <xsl:apply-templates/>
  </xsl:variable>
  <xsl:variable name="pass2">
    <xsl:apply-templates select="$pass1" mode="pass2"/>
  </xsl:variable>
  <xsl:apply-templates select="$pass2" mode="pass3"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template *
Documentation

Description

default identity transform
Namespace No namespace
Match *
Mode #default
Import precedence 0
Source
<xsl:template match="*">
  <xsl:choose>
    <xsl:when test="namespace-uri()=''">
      <xsl:element namespace="http://www.tei-c.org/ns/1.0" name="{lower-case(local-name(.))}">
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </xsl:element>
    </xsl:when>
    <xsl:otherwise>
      <xsl:copy>
        <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
      </xsl:copy>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @*
Namespace No namespace
Match @*
Mode #default
Import precedence 0
Source
<xsl:template match="@*">
  <xsl:attribute name="{lower-case(local-name())}">
    <xsl:copy-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template processing-instruction()|comment()
Namespace No namespace
Match processing-instruction()|comment()
Mode #default
Import precedence 0
Source
<xsl:template match="processing-instruction()|comment()">
  <xsl:copy/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template text()
Documentation

Description

text nodes are examined to find soft-hyphen characters, which are replaced an empty <g>. To be on the safe side, apply Unicode NFC normalization to text (some decomposed characters seen in headers).

Namespace No namespace
Match text()
Mode #default
Import precedence 0
Source
<xsl:template match="text()">
  <xsl:variable name="parent" select="local-name(parent::*)"/>
  <xsl:analyze-string regex="([^∣¦]*)([∣¦])" select=".">
    <xsl:matching-substring>
      <xsl:value-of select="normalize-unicode(regex-group(1),'NFC')"/>
      <xsl:choose>
        <xsl:when test="regex-group(2)='¦'">
          <g ref="char:EOLunhyphen"/>
        </xsl:when>
        <xsl:otherwise>
          <g ref="char:EOLhyphen"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:matching-substring>
    <xsl:non-matching-substring>
      <xsl:value-of select="normalize-unicode(.,'NFC')"/>
    </xsl:non-matching-substring>
  </xsl:analyze-string>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FIGDESC/HI
Documentation

Description

TCP simple discard, you cannot use hi in a description
Namespace No namespace
Match FIGDESC/HI
Mode #default
Import precedence 0
Source
<xsl:template match="FIGDESC/HI">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEMPHEAD|IDG
Documentation

Description

discard temporary header material
Namespace No namespace
Match TEMPHEAD|IDG
Mode #default
Import precedence 0
Source
<xsl:template match="TEMPHEAD|IDG"/>
Stylesheet location tcp2tei.xsl
Template PB/@MS
Namespace No namespace
Match PB/@MS
Mode #default
Import precedence 0
Source
<xsl:template match="PB/@MS">
  <xsl:if test=".='Y'">
    <xsl:attribute name="rendition">simple:additions</xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LABEL/@ROLE
Documentation

Description

TCP controversial discards. Drop a set of attributes which don't work in P5
Namespace No namespace
Match LABEL/@ROLE
Mode #default
Import precedence 0
Source
<xsl:template match="LABEL/@ROLE"/>
Stylesheet location tcp2tei.xsl
Template TITLE/@TYPE
Namespace No namespace
Match TITLE/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="TITLE/@TYPE"/>
Stylesheet location tcp2tei.xsl
Template GROUP/@TYPE
Namespace No namespace
Match GROUP/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="GROUP/@TYPE"/>
Stylesheet location tcp2tei.xsl
Template TITLE/@I2
Namespace No namespace
Match TITLE/@I2
Mode #default
Import precedence 0
Source
<xsl:template match="TITLE/@I2"/>
Stylesheet location tcp2tei.xsl
Template @LANG[.='32' or contains(.,' ')]
Documentation

Description

multiple values for @lang are discarded
Namespace No namespace
Match @LANG[.='32' or contains(.,' ')]
Mode #default
Import precedence 0
Source
<xsl:template match="@LANG[.='32' or contains(.,' ')]"/>
Stylesheet location tcp2tei.xsl
Template MILESTONE
Documentation

Description

Milestones: convert to label, unless it has no @unit or occurs in some funny places

Namespace No namespace
Match MILESTONE
Mode #default
References
Template
Import precedence 0
Source
<xsl:template match="MILESTONE">
  <xsl:choose>
    <xsl:when test="not(@UNIT) or ( parent::LABEL or (parent::LIST and preceding-sibling::ITEM))">
      <xsl:call-template name="makenewmilestone"/>
    </xsl:when>
    <xsl:when test="parent::LIST and not(preceding-sibling::ITEM)">
      <head type="tcpmilestone">
        <seg type="milestoneunit">
          <xsl:value-of select="@UNIT"/>
          <xsl:text> </xsl:text>
        </seg>
        <xsl:value-of select="@N"/>
      </head>
    </xsl:when>
    <xsl:when test="parent::BIBL and @UNIT">
      <note type="tcpmilestone">
        <seg type="milestoneunit">
          <xsl:value-of select="@UNIT"/>
          <xsl:text> </xsl:text>
        </seg>
        <xsl:value-of select="@N"/>
      </note>
    </xsl:when>
    <xsl:when test="@UNIT='Ans;w.' and not(@N)">
      <milestone type="tcpmilestone" n="Ans;w." unit="unspecified"/>
    </xsl:when>
    <xsl:when test="@UNIT and (parent::SP or parent::SPEAKER or parent::DIV1 or parent::DIV2 or parent::DIV3 or parent::DIV4 or parent::DIV5 or parent::BODY)">
      <xsl:call-template name="makenewmilestone"/>
    </xsl:when>
    <xsl:otherwise>
      <label type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:apply-templates select="@REND"/>
        <seg type="milestoneunit">
          <xsl:value-of select="@UNIT"/>
          <xsl:text> </xsl:text>
        </seg>
        <xsl:value-of select="@N"/>
      </label>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template makenewmilestone
Namespace No namespace
Used by
Template
Import precedence 0
Source
<xsl:template name="makenewmilestone">
  <milestone type="tcpmilestone">
    <xsl:choose>
      <xsl:when test="@UNIT='years after chriſt' or @UNIT='years before chriſt'">
        <xsl:attribute name="unit">unspecified</xsl:attribute>
        <xsl:attribute name="n">
          <xsl:value-of select="(@N,@UNIT)"/>
        </xsl:attribute>
      </xsl:when>
      <xsl:when test="matches(@UNIT,'[\-A-z0-9]')">
        <xsl:apply-templates select="@N"/>
        <xsl:apply-templates select="@UNIT"/>
      </xsl:when>
      <xsl:when test="not(@UNIT)">
        <xsl:attribute name="unit">unspecified</xsl:attribute>
        <xsl:attribute name="n">
          <xsl:value-of select="@N"/>
        </xsl:attribute>
      </xsl:when>
      <xsl:otherwise>
        <xsl:attribute name="unit">unspecified</xsl:attribute>
        <xsl:attribute name="n">
          <xsl:value-of select="(@UNIT,@N)"/>
        </xsl:attribute>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:apply-templates select="@*[not(name()='@N' or name()='UNIT')]|*|processing-instruction()|comment()|text()"/>
  </milestone>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template OLDMILESTONE
Documentation

Description

Previous way of doing milestones: a) if there is no @n, just @unit == marginal note b) if there is no @unit, just a @n, == marginal note, @type='milestone' c) if @unit is from a closed list of words (page, line, folio), it seems editorial, add as subtype on @note d) otherwise, make a label from @unit + @n, and put in a marginal note, @type='milestone'

Namespace No namespace
Match OLDMILESTONE
Mode #default
Import precedence 0
Source
<xsl:template match="OLDMILESTONE">
  <xsl:choose>
    <xsl:when test="parent::NOTE and not(@N)"/>
    <xsl:when test="@UNIT and (not(@N) or @N='')">
      <note place="margin" type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@UNIT"/>
      </note>
    </xsl:when>
    <xsl:when test="parent::L and @ID">
      <label type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@N"/>
      </label>
    </xsl:when>
    <xsl:when test="not(@UNIT) and @N">
      <note place="margin" type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@N"/>
      </note>
    </xsl:when>
    <xsl:when test="@UNIT='unspec' and @N">
      <note place="margin" type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@N"/>
      </note>
    </xsl:when>
    <!-- this short list seem like editorial words. are there more? -->
    <xsl:when test="          @UNIT='article' or          @UNIT='canon' or          @UNIT='chapter' or           @UNIT='commandment' or           @UNIT='date' or    @UNIT='day' or    @UNIT='folio' or    @UNIT='ground of' or    @UNIT='indulgence' or    @UNIT='leaf' or    @UNIT='line' or    @UNIT='monarch' or    @UNIT='motive' or    @UNIT='month' or    @UNIT='reason'  or    @UNIT='verse'  or    @UNIT='year'           ">
      <note place="margin" type="milestone" subtype="{@UNIT}">
        <xsl:apply-templates select="@ID"/>
        <!--
	  <xsl:if test="$debug='true'">
	    <xsl:message>Milestone 1: <xsl:value-of
	    select="@UNIT"/>/<xsl:value-of select="@N"/></xsl:message>
	  </xsl:if>
-->
        <xsl:value-of select="@N"/>
      </note>
    </xsl:when>
    <xsl:when test="parent::SP or parent::LIST or parent::SPEAKER or parent::LABEL   or parent::BIBL">
      <note place="margin" type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@UNIT"/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@N"/>
      </note>
    </xsl:when>
    <xsl:otherwise>
      <!--
	<xsl:if test="$debug='true'">
	  <xsl:message>Milestone 2: <xsl:value-of
	  select="@UNIT"/><xsl:text> </xsl:text><xsl:value-of
	  select="@N"/></xsl:message>
	</xsl:if>
-->
      <label place="margin" type="milestone">
        <xsl:apply-templates select="@ID"/>
        <xsl:value-of select="@UNIT"/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@N"/>
      </label>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template Q[not(text()) and count(*)=1]/Q
Documentation

Description

A Q with just a Q inside it is redundant

Namespace No namespace
Match Q[not(text()) and count(*)=1]/Q
Mode #default
Import precedence 0
Source
<xsl:template match="Q[not(text()) and count(*)=1]/Q">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEAD[@TYPE='sub']
Documentation

Description

A HEAD/@TYPE='sub' can lose itself if it consists of Q with L inside; though if thats all there is, it looks like an epigraph

Namespace No namespace
Match HEAD[@TYPE='sub']
Mode #default
Import precedence 0
Source
<xsl:template match="HEAD[@TYPE='sub']">
  <xsl:choose>
    <xsl:when test="following-sibling::HEAD or following-sibling::OPENER">
      <head type="sub">
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </head>
    </xsl:when>
    <xsl:when test="Q/L and not(P|GAP|text())">
      <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
    </xsl:when>
    <xsl:when test="Q/L and P|GAP">
      <head type="sub">
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </head>
    </xsl:when>
    <xsl:when test="Q[L] and not(text())">
      <epigraph>
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </epigraph>
    </xsl:when>
    <xsl:otherwise>
      <head type="sub">
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </head>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TITLESTMT/TITLE/text()[last()]
Documentation

Description

Strip $ from end of title
Namespace No namespace
Match TITLESTMT/TITLE/text()[last()]
Mode #default
Import precedence 0
Source
<xsl:template match="TITLESTMT/TITLE/text()[last()]">
  <xsl:choose>
    <xsl:when test="matches(.,':$')">
      <xsl:value-of select="normalize-unicode(substring(.,1,string-length(.)-1),'NFC')"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="normalize-unicode(.,'NFC')"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADNOTE[P/FIGURE and not(following-sibling::HEAD or following-sibling::OPENER)]
Documentation

Description

the HEADNOTE element can be bypassed if it just has a figure in, and no following head or opener
Namespace No namespace
Match HEADNOTE[P/FIGURE and not(following-sibling::HEAD or following-sibling::OPENER)]
Mode #default
Import precedence 0
Source
<xsl:template match="HEADNOTE[P/FIGURE and          not(following-sibling::HEAD or following-sibling::OPENER)]">
  <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ARGUMENT[count(*)=1]/HEAD
Documentation

Description

Just a HEAD inside an ARGUMENT can be replaced by a paragraph
Namespace No namespace
Match ARGUMENT[count(*)=1]/HEAD
Mode #default
Import precedence 0
Source
<xsl:template match="ARGUMENT[count(*)=1]/HEAD">
  <p>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </p>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADNOTE[count(*)=1]/HEAD
Documentation

Description

Just a HEAD inside an HEADNOTE can be replaced by a paragraph
Namespace No namespace
Match HEADNOTE[count(*)=1]/HEAD
Mode #default
Import precedence 0
Source
<xsl:template match="HEADNOTE[count(*)=1]/HEAD">
  <p>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </p>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADNOTE
Documentation

Description

A HEADNOTE is an ARGUMENT
Namespace No namespace
Match HEADNOTE
Mode #default
Import precedence 0
Source
<xsl:template match="HEADNOTE">
  <argument>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </argument>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TAILNOTE[count(*)=1]/HEAD
Documentation

Description

Just a HEAD inside an TAILNOTE can be replaced by a paragraph
Namespace No namespace
Match TAILNOTE[count(*)=1]/HEAD
Mode #default
Import precedence 0
Source
<xsl:template match="TAILNOTE[count(*)=1]/HEAD">
  <p>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </p>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TAILNOTE
Documentation

Description

A TAILNOTE is an ARGUMENT
Namespace No namespace
Match TAILNOTE
Mode #default
Import precedence 0
Source
<xsl:template match="TAILNOTE">
  <argument>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </argument>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template STAGE[following-sibling::HEAD]
Documentation

Description

STAGE with a HEAD _after_ it brings the stage inside the head
Namespace No namespace
Match STAGE[following-sibling::HEAD]
Mode #default
Import precedence 0
Source
<xsl:template match="STAGE[following-sibling::HEAD]">
  <head type="sub">
    <stage>
      <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
    </stage>
  </head>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CLOSER
Documentation

Description

put POSTSCRIPT as sibling of CLOSER, not child
Namespace No namespace
Match CLOSER
Mode #default
Import precedence 0
Source
<xsl:template match="CLOSER">
  <xsl:choose>
    <xsl:when test="POSTSCRIPT">
      <closer>
        <xsl:apply-templates select="@*|*[not(self::POSTSCRIPT)]|processing-instruction()|comment()|text()"/>
      </closer>
      <xsl:apply-templates select="POSTSCRIPT"/>
    </xsl:when>
    <xsl:otherwise>
      <closer>
        <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
      </closer>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template POSTSCRIPT/@TYPE
Documentation

Description

no type attribute on postscript
Namespace No namespace
Match POSTSCRIPT/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="POSTSCRIPT/@TYPE"/>
Stylesheet location tcp2tei.xsl
Template ROW/PB
Documentation

Description

move PB outside ROW

Description

 TCP non-controversial transforms 
Namespace No namespace
Match ROW/PB
Mode #default
Import precedence 0
Source
<xsl:template match="ROW/PB"/>
Stylesheet location tcp2tei.xsl
Template ROW[PB]
Namespace No namespace
Match ROW[PB]
Mode #default
Import precedence 0
Source
<xsl:template match="ROW[PB]">
  <row>
    <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
  </row>
  <xsl:for-each select="PB">
    <pb>
      <xsl:apply-templates select="@*"/>
    </pb>
  </xsl:for-each>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ROW/TABLE
Namespace No namespace
Match ROW/TABLE
Mode #default
Import precedence 0
Source
<xsl:template match="ROW/TABLE">
  <cell>
    <table>
      <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
    </table>
  </cell>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EEBO
Namespace No namespace
Match EEBO
Mode #default
Import precedence 0
Source
<xsl:template match="EEBO">
  <xsl:apply-templates select="*"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ETS
Namespace No namespace
Match ETS
Mode #default
References
Parameters
Import precedence 0
Source
<xsl:template match="ETS">
  <TEI>
    <xsl:apply-templates select="@*"/>
    <xsl:variable name="name">
      <xsl:choose>
        <xsl:when test="$ID=''">
          <xsl:value-of select="//IDG/@ID"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$ID"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:variable name="hfile" select="concat($headerDirectory,$name,'.hdr')"/>
    <xsl:choose>
      <xsl:when test="TEIHEADER"/>
      <xsl:when test="doc-available($hfile)">
        <xsl:message> attempt to load header <xsl:value-of select="$hfile"/></xsl:message>
        <xsl:for-each select="doc($hfile)">
          <xsl:apply-templates select="*"/>
        </xsl:for-each>
      </xsl:when>
      <xsl:when test="not(static-base-uri()='') and doc-available(resolve-uri($hfile,base-uri(/*)))">
        <xsl:for-each select="doc(resolve-uri($hfile,base-uri(/*)))">
          <xsl:apply-templates select="*"/>
        </xsl:for-each>
      </xsl:when>
    </xsl:choose>
    <xsl:apply-templates/>
  </TEI>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PUBLICATIONSTMT
Namespace No namespace
Match PUBLICATIONSTMT
Mode #default
References
Templates
Import precedence 0
Source
<xsl:template match="PUBLICATIONSTMT">
  <publicationStmt>
    <xsl:choose>
      <xsl:when test="PUBLISHER or AUTHORITY or DISTRIBUTOR">
        <xsl:apply-templates select="PUBLISHER|AUTHORITY|DISTRIBUTOR"/>
        <xsl:apply-templates select="*[not(self::PUBLISHER or            self::DISTRIBUTOR or            self::AUTHORITY)]"/>
        <xsl:if test="parent::FILEDESC">
          <xsl:call-template name="makeID"/>
        </xsl:if>
        <xsl:call-template name="idnoHook"/>
      </xsl:when>
      <xsl:otherwise>
        <p>
          <xsl:apply-templates/>
          <xsl:if test="parent::FILEDESC">
            <xsl:call-template name="makeID"/>
          </xsl:if>
          <xsl:call-template name="idnoHook"/>
        </p>
      </xsl:otherwise>
    </xsl:choose>
  </publicationStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template IDNO/@TYPE
Namespace No namespace
Match IDNO/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="IDNO/@TYPE">
  <xsl:attribute name="type">
    <xsl:value-of select="translate(upper-case(.),' ','-')"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template IDNO
Namespace No namespace
Match IDNO
Mode #default
Import precedence 0
Source
<xsl:template match="IDNO">
  <idno>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </idno>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FILEDESC/EXTENT
Namespace No namespace
Match FILEDESC/EXTENT
Mode #default
Import precedence 0
Source
<xsl:template match="FILEDESC/EXTENT">
  <extent>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </extent>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EEBO/GROUP
Namespace No namespace
Match EEBO/GROUP
Mode #default
Import precedence 0
Source
<xsl:template match="EEBO/GROUP">
  <text>
    <group>
      <xsl:apply-templates select="@*"/>
      <xsl:apply-templates select="*"/>
    </group>
  </text>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FLOATEXT|LICENSE|LETTER
Namespace No namespace
Match FLOATEXT|LICENSE|LETTER
Mode #default
Import precedence 0
Source
<xsl:template match="FLOATEXT|LICENSE|LETTER">
  <floatingText>
    <xsl:if test="not(@TYPE)">
      <xsl:attribute name="type" select="lower-case(name())"/>
    </xsl:if>
    <xsl:apply-templates select="@*"/>
    <body>
      <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
    </body>
  </floatingText>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEXT
Namespace No namespace
Match TEXT
Mode #default
Import precedence 0
Source
<xsl:template match="TEXT">
  <xsl:choose>
    <xsl:when test="parent::ETS or parent::EEBO or parent::GROUP">
      <text>
        <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
      </text>
    </xsl:when>
    <xsl:otherwise>
      <floatingText>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
      </floatingText>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LANGUSAGE/@ID
Namespace No namespace
Match LANGUSAGE/@ID
Mode #default
Import precedence 0
Source
<xsl:template match="LANGUSAGE/@ID"/>
Stylesheet location tcp2tei.xsl
Template PB/@REF
Namespace No namespace
Match PB/@REF
Mode #default
Import precedence 0
Source
<xsl:template match="PB/@REF">
  <xsl:attribute name="facs">
    <xsl:choose>
      <xsl:when test="//HEADER//IDNO[@TYPE='evans citation']">
        <xsl:value-of select="concat('unknown:',normalize-space(.))"/>
      </xsl:when>
      <xsl:when test="string-length(/ETS/EEBO/IDG/VID)>0">
        <xsl:value-of select="('tcp',translate(normalize-space(/ETS/EEBO/IDG/VID),'  ',''),normalize-space(replace(.,'^\.','')))" separator=":"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="normalize-space(.)"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template KEYWORDS
Namespace No namespace
Match KEYWORDS
Mode #default
Import precedence 0
Source
<xsl:template match="KEYWORDS">
  <xsl:if test="*">
    <keywords>
      <xsl:if test="not(@SCHEME)">
        <xsl:attribute name="scheme">
          <xsl:text>http://authorities.loc.gov/</xsl:text>
        </xsl:attribute>
      </xsl:if>
      <xsl:apply-templates select="@*|*|processing-instruction()|comment()|text()"/>
    </keywords>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SUP
Namespace No namespace
Match SUP
Mode #default
Import precedence 0
Source
<xsl:template match="SUP">
  <seg rend="sup">
    <xsl:apply-templates/>
  </seg>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SUB
Namespace No namespace
Match SUB
Mode #default
Import precedence 0
Source
<xsl:template match="SUB">
  <seg rend="sub">
    <xsl:apply-templates/>
  </seg>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BELOW
Namespace No namespace
Match BELOW
Mode #default
Import precedence 0
Source
<xsl:template match="BELOW">
  <seg rend="below">
    <xsl:apply-templates/>
  </seg>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ABOVE
Namespace No namespace
Match ABOVE
Mode #default
Import precedence 0
Source
<xsl:template match="ABOVE">
  <seg rend="above">
    <xsl:apply-templates/>
  </seg>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADER
Namespace No namespace
Match HEADER
Mode #default
Import precedence 0
Source
<xsl:template match="HEADER">
  <teiHeader>
    <xsl:apply-templates select="@*|*|comment()|processing-instruction()"/>
  </teiHeader>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEI.2|OTA
Namespace No namespace
Match TEI.2|OTA
Mode #default
Import precedence 0
Source
<xsl:template match="TEI.2|OTA">
  <TEI>
    <xsl:apply-templates select="@*|*|comment()|processing-instruction()"/>
  </TEI>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ADDNAME
Namespace No namespace
Match ADDNAME
Mode #default
Import precedence 0
Source
<xsl:template match="ADDNAME">
  <addName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </addName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ADDSPAN
Namespace No namespace
Match ADDSPAN
Mode #default
Import precedence 0
Source
<xsl:template match="ADDSPAN">
  <addSpan>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </addSpan>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ADDRLINE
Namespace No namespace
Match ADDRLINE
Mode #default
Import precedence 0
Source
<xsl:template match="ADDRLINE">
  <addrLine>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </addrLine>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ALTGRP
Namespace No namespace
Match ALTGRP
Mode #default
Import precedence 0
Source
<xsl:template match="ALTGRP">
  <altGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </altGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ATTDEF
Namespace No namespace
Match ATTDEF
Mode #default
Import precedence 0
Source
<xsl:template match="ATTDEF">
  <attDef>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </attDef>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ATTLIST
Namespace No namespace
Match ATTLIST
Mode #default
Import precedence 0
Source
<xsl:template match="ATTLIST">
  <attList>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </attList>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ATTNAME
Namespace No namespace
Match ATTNAME
Mode #default
Import precedence 0
Source
<xsl:template match="ATTNAME">
  <attName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </attName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ATTLDECL
Namespace No namespace
Match ATTLDECL
Mode #default
Import precedence 0
Source
<xsl:template match="ATTLDECL">
  <attlDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </attlDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BASEWSD
Namespace No namespace
Match BASEWSD
Mode #default
Import precedence 0
Source
<xsl:template match="BASEWSD">
  <baseWsd>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </baseWsd>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BIBLFULL
Namespace No namespace
Match BIBLFULL
Mode #default
Import precedence 0
Source
<xsl:template match="BIBLFULL">
  <biblFull>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </biblFull>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BIBLSCOPE
Namespace No namespace
Match BIBLSCOPE
Mode #default
Import precedence 0
Source
<xsl:template match="BIBLSCOPE">
  <biblScope>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </biblScope>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BIBLSTRUCT
Namespace No namespace
Match BIBLSTRUCT
Mode #default
Import precedence 0
Source
<xsl:template match="BIBLSTRUCT">
  <biblStruct>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </biblStruct>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CASTGROUP
Namespace No namespace
Match CASTGROUP
Mode #default
Import precedence 0
Source
<xsl:template match="CASTGROUP">
  <castGroup>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </castGroup>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CASTITEM
Namespace No namespace
Match CASTITEM
Mode #default
Import precedence 0
Source
<xsl:template match="CASTITEM">
  <castItem>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </castItem>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CASTLIST
Namespace No namespace
Match CASTLIST
Mode #default
Import precedence 0
Source
<xsl:template match="CASTLIST">
  <castList>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </castList>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CATDESC
Namespace No namespace
Match CATDESC
Mode #default
Import precedence 0
Source
<xsl:template match="CATDESC">
  <catDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </catDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CATREF
Namespace No namespace
Match CATREF
Mode #default
Import precedence 0
Source
<xsl:template match="CATREF">
  <catRef>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </catRef>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CLASSCODE
Namespace No namespace
Match CLASSCODE
Mode #default
Import precedence 0
Source
<xsl:template match="CLASSCODE">
  <classCode>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </classCode>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CLASSDECL
Namespace No namespace
Match CLASSDECL
Mode #default
Import precedence 0
Source
<xsl:template match="CLASSDECL">
  <classDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </classDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CLASSDOC
Namespace No namespace
Match CLASSDOC
Mode #default
Import precedence 0
Source
<xsl:template match="CLASSDOC">
  <classDoc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </classDoc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CODEDCHARSET
Namespace No namespace
Match CODEDCHARSET
Mode #default
Import precedence 0
Source
<xsl:template match="CODEDCHARSET">
  <codedCharSet>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </codedCharSet>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DATADESC
Namespace No namespace
Match DATADESC
Mode #default
Import precedence 0
Source
<xsl:template match="DATADESC">
  <dataDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </dataDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DATESTRUCT
Namespace No namespace
Match DATESTRUCT
Mode #default
Import precedence 0
Source
<xsl:template match="DATESTRUCT">
  <dateStruct>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </dateStruct>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DELSPAN
Namespace No namespace
Match DELSPAN
Mode #default
Import precedence 0
Source
<xsl:template match="DELSPAN">
  <delSpan>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </delSpan>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DIVGEN
Namespace No namespace
Match DIVGEN
Mode #default
Import precedence 0
Source
<xsl:template match="DIVGEN">
  <divGen>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </divGen>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DOCAUTHOR|DAUTHOR
Namespace No namespace
Match DOCAUTHOR|DAUTHOR
Mode #default
Import precedence 0
Source
<xsl:template match="DOCAUTHOR|DAUTHOR">
  <docAuthor>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </docAuthor>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DOCDATE
Namespace No namespace
Match DOCDATE
Mode #default
Import precedence 0
Source
<xsl:template match="DOCDATE">
  <docDate>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </docDate>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DOCEDITION
Namespace No namespace
Match DOCEDITION
Mode #default
Import precedence 0
Source
<xsl:template match="DOCEDITION">
  <docEdition>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </docEdition>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DOCIMPRINT
Namespace No namespace
Match DOCIMPRINT
Mode #default
Import precedence 0
Source
<xsl:template match="DOCIMPRINT">
  <docImprint>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </docImprint>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DOCTITLE|DTITLE
Namespace No namespace
Match DOCTITLE|DTITLE
Mode #default
Import precedence 0
Source
<xsl:template match="DOCTITLE|DTITLE">
  <docTitle>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </docTitle>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ELEAF
Namespace No namespace
Match ELEAF
Mode #default
Import precedence 0
Source
<xsl:template match="ELEAF">
  <eLeaf>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </eLeaf>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ETREE
Namespace No namespace
Match ETREE
Mode #default
Import precedence 0
Source
<xsl:template match="ETREE">
  <eTree>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </eTree>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EDITIONSTMT
Namespace No namespace
Match EDITIONSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="EDITIONSTMT">
  <editionStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </editionStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ELEMDECL
Namespace No namespace
Match ELEMDECL
Mode #default
Import precedence 0
Source
<xsl:template match="ELEMDECL">
  <elemDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </elemDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EDITORIALDECL
Namespace No namespace
Match EDITORIALDECL
Mode #default
Import precedence 0
Source
<xsl:template match="EDITORIALDECL">
  <editorialDecl>
    <p>EEBO-TCP is a partnership between the Universities of Michigan and Oxford and the publisher ProQuest to create accurately transcribed and encoded texts based on the image sets published by ProQuest via their Early English Books Online (EEBO) database (http://eebo.chadwyck.com). The general aim of EEBO-TCP is to encode one copy (usually the first edition) of every monographic English-language title published between 1473 and 1700 available in EEBO.</p>
    <p>EEBO-TCP aimed to produce large quantities of textual data within the usual project restraints of time and funding, and therefore chose to create diplomatic transcriptions (as opposed to critical editions) with light-touch, mainly structural encoding based on the Text Encoding Initiative (http://www.tei-c.org).</p>
    <p>The EEBO-TCP project was divided into two phases. The 25,363 texts created during Phase 1 of the project have been released into the public domain as of 1 January 2015. Anyone can now take and use these texts for their own purposes, but we respectfully request that due credit and attribution is given to their original source.</p>
    <p>Users should be aware of the process of creating the TCP texts, and therefore of any assumptions that can be made about the data.</p>
    <p>Text selection was based on the New Cambridge Bibliography of English Literature (NCBEL). If an author (or for an anonymous work, the title) appears in NCBEL, then their works are eligible for inclusion. Selection was intended to range over a wide variety of subject areas, to reflect the true nature of the print record of the period. In general, first editions of a works in English were prioritized, although there are a number of works in other languages, notably Latin and Welsh, included and sometimes a second or later edition of a work was chosen if there was a compelling reason to do so.</p>
    <p>Image sets were sent to external keying companies for transcription and basic encoding. Quality assurance was then carried out by editorial teams in Oxford and Michigan. 5% (or 5 pages, whichever is the greater) of each text was proofread for accuracy and those which did not meet QA standards were returned to the keyers to be redone. After proofreading, the encoding was enhanced and/or corrected and characters marked as illegible were corrected where possible up to a limit of 100 instances per text. Any remaining illegibles were encoded as <gap>s. Understanding these processes should make clear that, while the overall quality of TCP data is very good, some errors will remain and some readable characters will be marked as illegible. Users should bear in mind that in all likelihood such instances will never have been looked at by a TCP editor.</p>
    <p>The texts were encoded and linked to page images in accordance with level 4 of the TEI in Libraries guidelines.</p>
    <p>Copies of the texts have been issued variously as SGML (TCP schema; ASCII text with mnemonic sdata character entities); displayable XML (TCP schema; characters represented either as UTF-8 Unicode or text strings within braces); or lossless XML (TEI P5, characters represented either as UTF-8 Unicode or TEI g elements).</p>
    <p>Keying and markup guidelines are available at the <ref target="http://www.textcreationpartnership.org/docs/.">Text Creation Partnership web site</ref>.</p>
  </editorialDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENCODINGDESC
Namespace No namespace
Match ENCODINGDESC
Mode #default
Import precedence 0
Source
<xsl:template match="ENCODINGDESC">
  <encodingDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
    <listPrefixDef>
      <prefixDef ident="tcp" matchPattern="([0-9\-]+):([0-9IVX]+)" replacementPattern="http://eebo.chadwyck.com/downloadtiff?vid=$1&page=$2">
      </prefixDef>
      <prefixDef ident="char" matchPattern="(.+)" replacementPattern="https://raw.githubusercontent.com/textcreationpartnership/Texts/master/tcpchars.xml#$1">
      </prefixDef>
    </listPrefixDef>
  </encodingDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENTDOC
Namespace No namespace
Match ENTDOC
Mode #default
Import precedence 0
Source
<xsl:template match="ENTDOC">
  <entDoc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </entDoc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENTNAME
Namespace No namespace
Match ENTNAME
Mode #default
Import precedence 0
Source
<xsl:template match="ENTNAME">
  <entName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </entName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENTITYSET
Namespace No namespace
Match ENTITYSET
Mode #default
Import precedence 0
Source
<xsl:template match="ENTITYSET">
  <entitySet>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </entitySet>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENTRYFREE
Namespace No namespace
Match ENTRYFREE
Mode #default
Import precedence 0
Source
<xsl:template match="ENTRYFREE">
  <entryFree>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </entryFree>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EXTFIGURE
Namespace No namespace
Match EXTFIGURE
Mode #default
Import precedence 0
Source
<xsl:template match="EXTFIGURE">
  <figure>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </figure>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FALT
Namespace No namespace
Match FALT
Mode #default
Import precedence 0
Source
<xsl:template match="FALT">
  <fAlt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fAlt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FDECL
Namespace No namespace
Match FDECL
Mode #default
Import precedence 0
Source
<xsl:template match="FDECL">
  <fDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FDESCR
Namespace No namespace
Match FDESCR
Mode #default
Import precedence 0
Source
<xsl:template match="FDESCR">
  <fDescr>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fDescr>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FLIB
Namespace No namespace
Match FLIB
Mode #default
Import precedence 0
Source
<xsl:template match="FLIB">
  <fLib>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fLib>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FIGDESC
Namespace No namespace
Match FIGDESC
Mode #default
Import precedence 0
Source
<xsl:template match="FIGDESC">
  <figDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:value-of select="translate(.,'∣','')"/>
  </figDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FILEDESC
Namespace No namespace
Match FILEDESC
Mode #default
Import precedence 0
Source
<xsl:template match="FILEDESC">
  <fileDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fileDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FIRSTLANG
Namespace No namespace
Match FIRSTLANG
Mode #default
Import precedence 0
Source
<xsl:template match="FIRSTLANG">
  <firstLang>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </firstLang>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FORENAME
Namespace No namespace
Match FORENAME
Mode #default
Import precedence 0
Source
<xsl:template match="FORENAME">
  <foreName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </foreName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FORESTGRP
Namespace No namespace
Match FORESTGRP
Mode #default
Import precedence 0
Source
<xsl:template match="FORESTGRP">
  <forestGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </forestGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FSCONSTRAINTS
Namespace No namespace
Match FSCONSTRAINTS
Mode #default
Import precedence 0
Source
<xsl:template match="FSCONSTRAINTS">
  <fsConstraints>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fsConstraints>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FSDECL
Namespace No namespace
Match FSDECL
Mode #default
Import precedence 0
Source
<xsl:template match="FSDECL">
  <fsDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fsDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FSDESCR
Namespace No namespace
Match FSDESCR
Mode #default
Import precedence 0
Source
<xsl:template match="FSDESCR">
  <fsDescr>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fsDescr>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FSLIB
Namespace No namespace
Match FSLIB
Mode #default
Import precedence 0
Source
<xsl:template match="FSLIB">
  <fsLib>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fsLib>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FSDDECL
Namespace No namespace
Match FSDDECL
Mode #default
Import precedence 0
Source
<xsl:template match="FSDDECL">
  <fsdDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fsdDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FVLIB
Namespace No namespace
Match FVLIB
Mode #default
Import precedence 0
Source
<xsl:template match="FVLIB">
  <fvLib>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </fvLib>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template GENNAME
Namespace No namespace
Match GENNAME
Mode #default
Import precedence 0
Source
<xsl:template match="GENNAME">
  <genName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </genName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template GEOGNAME
Namespace No namespace
Match GEOGNAME
Mode #default
Import precedence 0
Source
<xsl:template match="GEOGNAME">
  <geogName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </geogName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template GRAMGRP
Namespace No namespace
Match GRAMGRP
Mode #default
Import precedence 0
Source
<xsl:template match="GRAMGRP">
  <gramGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </gramGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HANDLIST
Namespace No namespace
Match HANDLIST
Mode #default
Import precedence 0
Source
<xsl:template match="HANDLIST">
  <handList>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </handList>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HANDSHIFT
Namespace No namespace
Match HANDSHIFT
Mode #default
Import precedence 0
Source
<xsl:template match="HANDSHIFT">
  <handShift>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </handShift>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADITEM
Namespace No namespace
Match HEADITEM
Mode #default
Import precedence 0
Source
<xsl:template match="HEADITEM">
  <headItem>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </headItem>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEADLABEL
Namespace No namespace
Match HEADLABEL
Mode #default
Import precedence 0
Source
<xsl:template match="HEADLABEL">
  <headLabel>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </headLabel>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template INODE
Namespace No namespace
Match INODE
Mode #default
Import precedence 0
Source
<xsl:template match="INODE">
  <iNode>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </iNode>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template INTERPGRP
Namespace No namespace
Match INTERPGRP
Mode #default
Import precedence 0
Source
<xsl:template match="INTERPGRP">
  <interpGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </interpGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template JOINGRP
Namespace No namespace
Match JOINGRP
Mode #default
Import precedence 0
Source
<xsl:template match="JOINGRP">
  <joinGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </joinGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LACUNAEND
Namespace No namespace
Match LACUNAEND
Mode #default
Import precedence 0
Source
<xsl:template match="LACUNAEND">
  <lacunaEnd>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </lacunaEnd>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LACUNASTART
Namespace No namespace
Match LACUNASTART
Mode #default
Import precedence 0
Source
<xsl:template match="LACUNASTART">
  <lacunaStart>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </lacunaStart>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LANGKNOWN
Namespace No namespace
Match LANGKNOWN
Mode #default
Import precedence 0
Source
<xsl:template match="LANGKNOWN">
  <langKnown>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </langKnown>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LANGUSAGE
Namespace No namespace
Match LANGUSAGE
Mode #default
Import precedence 0
Source
<xsl:template match="LANGUSAGE">
  <langUsage>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </langUsage>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LINKGRP
Namespace No namespace
Match LINKGRP
Mode #default
Import precedence 0
Source
<xsl:template match="LINKGRP">
  <linkGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </linkGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LISTBIBL
Namespace No namespace
Match LISTBIBL
Mode #default
Import precedence 0
Source
<xsl:template match="LISTBIBL">
  <listBibl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </listBibl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template METDECL
Namespace No namespace
Match METDECL
Mode #default
Import precedence 0
Source
<xsl:template match="METDECL">
  <metDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </metDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template NAMELINK
Namespace No namespace
Match NAMELINK
Mode #default
Import precedence 0
Source
Stylesheet location tcp2tei.xsl
Template NOTESSTMT
Namespace No namespace
Match NOTESSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="NOTESSTMT">
  <notesStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </notesStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template OREF
Namespace No namespace
Match OREF
Mode #default
Import precedence 0
Source
<xsl:template match="OREF">
  <oRef>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </oRef>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template OVAR
Namespace No namespace
Match OVAR
Mode #default
Import precedence 0
Source
<xsl:template match="OVAR">
  <oVar>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </oVar>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template OFFSET
Namespace No namespace
Match OFFSET
Mode #default
Import precedence 0
Source
<xsl:template match="OFFSET">
  <offSet>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </offSet>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORGDIVN
Namespace No namespace
Match ORGDIVN
Mode #default
Import precedence 0
Source
<xsl:template match="ORGDIVN">
  <orgDivn>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </orgDivn>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORGNAME
Namespace No namespace
Match ORGNAME
Mode #default
Import precedence 0
Source
<xsl:template match="ORGNAME">
  <orgName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </orgName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORGTITLE
Namespace No namespace
Match ORGTITLE
Mode #default
Import precedence 0
Source
<xsl:template match="ORGTITLE">
  <orgTitle>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </orgTitle>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORGTYPE
Namespace No namespace
Match ORGTYPE
Mode #default
Import precedence 0
Source
<xsl:template match="ORGTYPE">
  <orgType>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </orgType>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template OTHERFORM
Namespace No namespace
Match OTHERFORM
Mode #default
Import precedence 0
Source
<xsl:template match="OTHERFORM">
  <otherForm>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </otherForm>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PREF
Namespace No namespace
Match PREF
Mode #default
Import precedence 0
Source
<xsl:template match="PREF">
  <pRef>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </pRef>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PVAR
Namespace No namespace
Match PVAR
Mode #default
Import precedence 0
Source
<xsl:template match="PVAR">
  <pVar>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </pVar>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PARTICDESC
Namespace No namespace
Match PARTICDESC
Mode #default
Import precedence 0
Source
<xsl:template match="PARTICDESC">
  <particDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </particDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PARTICLINKS
Namespace No namespace
Match PARTICLINKS
Mode #default
Import precedence 0
Source
<xsl:template match="PARTICLINKS">
  <particLinks>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </particLinks>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PERSNAME
Namespace No namespace
Match PERSNAME
Mode #default
Import precedence 0
Source
<xsl:template match="PERSNAME">
  <persName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </persName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PERSONGRP
Namespace No namespace
Match PERSONGRP
Mode #default
Import precedence 0
Source
<xsl:template match="PERSONGRP">
  <personGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </personGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PLACENAME
Namespace No namespace
Match PLACENAME
Mode #default
Import precedence 0
Source
<xsl:template match="PLACENAME">
  <placeName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </placeName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template POSTBOX
Namespace No namespace
Match POSTBOX
Mode #default
Import precedence 0
Source
<xsl:template match="POSTBOX">
  <postBox>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </postBox>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template POSTCODE
Namespace No namespace
Match POSTCODE
Mode #default
Import precedence 0
Source
<xsl:template match="POSTCODE">
  <postCode>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </postCode>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PROFILEDESC
Namespace No namespace
Match PROFILEDESC
Mode #default
Import precedence 0
Source
<xsl:template match="PROFILEDESC">
  <profileDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </profileDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PROJECTDESC
Namespace No namespace
Match PROJECTDESC
Mode #default
Import precedence 0
Source
<xsl:template match="PROJECTDESC">
  <projectDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </projectDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PUBPLACE
Namespace No namespace
Match PUBPLACE
Mode #default
Import precedence 0
Source
<xsl:template match="PUBPLACE">
  <xsl:choose>
    <xsl:when test="parent::PUBLICATIONSTMT/PUBLISHER or    parent::PUBLICATIONSTMT/AUTHORITY or    parent::PUBLICATIONSTMT/DISTRIBUTOR">
      <pubPlace>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
      </pubPlace>
    </xsl:when>
    <xsl:otherwise>
      <name type="place">
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
      </name>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template RDGGRP
Namespace No namespace
Match RDGGRP
Mode #default
Import precedence 0
Source
<xsl:template match="RDGGRP">
  <rdgGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </rdgGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template RECORDINGSTMT
Namespace No namespace
Match RECORDINGSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="RECORDINGSTMT">
  <recordingStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </recordingStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template REFSDECL
Namespace No namespace
Match REFSDECL
Mode #default
Import precedence 0
Source
<xsl:template match="REFSDECL">
  <refsDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </refsDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template RESPSTMT
Namespace No namespace
Match RESPSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="RESPSTMT">
  <respStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </respStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template REVISIONDESC|REVDESC
Namespace No namespace
Match REVISIONDESC|REVDESC
Mode #default
Import precedence 0
Source
<xsl:template match="REVISIONDESC|REVDESC">
  <revisionDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </revisionDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ROLEDESC
Namespace No namespace
Match ROLEDESC
Mode #default
Import precedence 0
Source
<xsl:template match="ROLEDESC">
  <roleDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </roleDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ROLENAME
Namespace No namespace
Match ROLENAME
Mode #default
Import precedence 0
Source
<xsl:template match="ROLENAME">
  <roleName>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </roleName>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SAMPLINGDECL
Namespace No namespace
Match SAMPLINGDECL
Mode #default
Import precedence 0
Source
<xsl:template match="SAMPLINGDECL">
  <samplingDecl>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </samplingDecl>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SCRIPTSTMT
Namespace No namespace
Match SCRIPTSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="SCRIPTSTMT">
  <scriptStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </scriptStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SERIESSTMT
Namespace No namespace
Match SERIESSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="SERIESSTMT">
  <seriesStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </seriesStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SETTINGDESC
Namespace No namespace
Match SETTINGDESC
Mode #default
Import precedence 0
Source
<xsl:template match="SETTINGDESC">
  <settingDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </settingDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SOCALLED
Namespace No namespace
Match SOCALLED
Mode #default
Import precedence 0
Source
<xsl:template match="SOCALLED">
  <soCalled>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </soCalled>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SOCECSTATUS
Namespace No namespace
Match SOCECSTATUS
Mode #default
Import precedence 0
Source
<xsl:template match="SOCECSTATUS">
  <socecStatus>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </socecStatus>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SOURCEDESC
Namespace No namespace
Match SOURCEDESC
Mode #default
Import precedence 0
Source
<xsl:template match="SOURCEDESC">
  <sourceDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </sourceDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SPANGRP
Namespace No namespace
Match SPANGRP
Mode #default
Import precedence 0
Source
<xsl:template match="SPANGRP">
  <spanGrp>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </spanGrp>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template STDVALS
Namespace No namespace
Match STDVALS
Mode #default
Import precedence 0
Source
<xsl:template match="STDVALS">
  <stdVals>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </stdVals>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TAGDOC
Namespace No namespace
Match TAGDOC
Mode #default
Import precedence 0
Source
<xsl:template match="TAGDOC">
  <tagDoc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </tagDoc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TAGUSAGE
Namespace No namespace
Match TAGUSAGE
Mode #default
Import precedence 0
Source
<xsl:template match="TAGUSAGE">
  <tagUsage>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </tagUsage>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEIFSD2
Namespace No namespace
Match TEIFSD2
Mode #default
Import precedence 0
Source
<xsl:template match="TEIFSD2">
  <teiFsd2>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </teiFsd2>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TERMENTRY
Namespace No namespace
Match TERMENTRY
Mode #default
Import precedence 0
Source
<xsl:template match="TERMENTRY">
  <termEntry>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </termEntry>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEXTCLASS
Namespace No namespace
Match TEXTCLASS
Mode #default
Import precedence 0
Source
<xsl:template match="TEXTCLASS">
  <textClass>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </textClass>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEXTDESC
Namespace No namespace
Match TEXTDESC
Mode #default
Import precedence 0
Source
<xsl:template match="TEXTDESC">
  <textDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </textDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TIMERANGE
Namespace No namespace
Match TIMERANGE
Mode #default
Import precedence 0
Source
<xsl:template match="TIMERANGE">
  <timeRange>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </timeRange>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TIMESTRUCT
Namespace No namespace
Match TIMESTRUCT
Mode #default
Import precedence 0
Source
<xsl:template match="TIMESTRUCT">
  <timeStruct>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </timeStruct>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TITLEPAGE|TPAGE
Namespace No namespace
Match TITLEPAGE|TPAGE
Mode #default
Import precedence 0
Source
<xsl:template match="TITLEPAGE|TPAGE">
  <titlePage>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </titlePage>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TITLEPART
Namespace No namespace
Match TITLEPART
Mode #default
Import precedence 0
Source
<xsl:template match="TITLEPART">
  <titlePart>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </titlePart>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TITLESTMT
Namespace No namespace
Match TITLESTMT
Mode #default
Import precedence 0
Source
<xsl:template match="TITLESTMT">
  <titleStmt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </titleStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VALT
Namespace No namespace
Match VALT
Mode #default
Import precedence 0
Source
<xsl:template match="VALT">
  <vAlt>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </vAlt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VDEFAULT
Namespace No namespace
Match VDEFAULT
Mode #default
Import precedence 0
Source
<xsl:template match="VDEFAULT">
  <vDefault>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </vDefault>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VRANGE
Namespace No namespace
Match VRANGE
Mode #default
Import precedence 0
Source
<xsl:template match="VRANGE">
  <vRange>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </vRange>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VALDESC
Namespace No namespace
Match VALDESC
Mode #default
Import precedence 0
Source
<xsl:template match="VALDESC">
  <valDesc>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </valDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VALLIST
Namespace No namespace
Match VALLIST
Mode #default
Import precedence 0
Source
<xsl:template match="VALLIST">
  <valList>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </valList>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VARIANTENCODING
Namespace No namespace
Match VARIANTENCODING
Mode #default
Import precedence 0
Source
<xsl:template match="VARIANTENCODING">
  <variantEncoding>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </variantEncoding>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template WITDETAIL
Namespace No namespace
Match WITDETAIL
Mode #default
Import precedence 0
Source
<xsl:template match="WITDETAIL">
  <witDetail>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </witDetail>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template WITEND
Namespace No namespace
Match WITEND
Mode #default
Import precedence 0
Source
<xsl:template match="WITEND">
  <witEnd>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </witEnd>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template WITSTART
Namespace No namespace
Match WITSTART
Mode #default
Import precedence 0
Source
<xsl:template match="WITSTART">
  <witStart>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
  </witStart>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TEI
Namespace No namespace
Match @TEI
Mode #default
Import precedence 0
Source
<xsl:template match="@TEI">
  <xsl:attribute name="TEI">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ADJFROM
Namespace No namespace
Match @ADJFROM
Mode #default
Import precedence 0
Source
<xsl:template match="@ADJFROM">
  <xsl:attribute name="adjFrom">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ADJTO
Namespace No namespace
Match @ADJTO
Mode #default
Import precedence 0
Source
<xsl:template match="@ADJTO">
  <xsl:attribute name="adjTo">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ASSERTEDVALUE
Namespace No namespace
Match @ASSERTEDVALUE
Mode #default
Import precedence 0
Source
<xsl:template match="@ASSERTEDVALUE">
  <xsl:attribute name="assertedValue">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @BASETYPE
Namespace No namespace
Match @BASETYPE
Mode #default
Import precedence 0
Source
<xsl:template match="@BASETYPE">
  <xsl:attribute name="baseType">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @COPYOF
Namespace No namespace
Match @COPYOF
Mode #default
Import precedence 0
Source
<xsl:template match="@COPYOF">
  <xsl:attribute name="copyOf">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @DEPPTR
Namespace No namespace
Match @DEPPTR
Mode #default
Import precedence 0
Source
<xsl:template match="@DEPPTR">
  <xsl:attribute name="depPtr">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ENTITYLOC
Namespace No namespace
Match @ENTITYLOC
Mode #default
Import precedence 0
Source
<xsl:template match="@ENTITYLOC">
  <xsl:attribute name="entityLoc">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ENTITYSTD
Namespace No namespace
Match @ENTITYSTD
Mode #default
Import precedence 0
Source
<xsl:template match="@ENTITYSTD">
  <xsl:attribute name="entityStd">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @FVAL
Namespace No namespace
Match @FVAL
Mode #default
Import precedence 0
Source
<xsl:template match="@FVAL">
  <xsl:attribute name="fVal">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @GRPPTR
Namespace No namespace
Match @GRPPTR
Mode #default
Import precedence 0
Source
<xsl:template match="@GRPPTR">
  <xsl:attribute name="grpPtr">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @INDEGREE
Namespace No namespace
Match @INDEGREE
Mode #default
Import precedence 0
Source
<xsl:template match="@INDEGREE">
  <xsl:attribute name="inDegree">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @MUTEXCL
Namespace No namespace
Match @MUTEXCL
Mode #default
Import precedence 0
Source
<xsl:template match="@MUTEXCL">
  <xsl:attribute name="mutExcl">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @OUTDEGREE
Namespace No namespace
Match @OUTDEGREE
Mode #default
Import precedence 0
Source
<xsl:template match="@OUTDEGREE">
  <xsl:attribute name="outDegree">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @SAMEAS
Namespace No namespace
Match @SAMEAS
Mode #default
Import precedence 0
Source
<xsl:template match="@SAMEAS">
  <xsl:attribute name="sameAs">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TARGFUNC
Namespace No namespace
Match @TARGFUNC
Mode #default
Import precedence 0
Source
<xsl:template match="@TARGFUNC">
  <xsl:attribute name="targFunc">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TARGORDER
Namespace No namespace
Match @TARGORDER
Mode #default
Import precedence 0
Source
<xsl:template match="@TARGORDER">
  <xsl:if test="not(. = 'u')">
    <xsl:attribute name="targOrder">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEIHEADER/@TYPE
Namespace No namespace
Match TEIHEADER/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="TEIHEADER/@TYPE"/>
Stylesheet location tcp2tei.xsl
Template @TARGTYPE
Namespace No namespace
Match @TARGTYPE
Mode #default
Import precedence 0
Source
<xsl:template match="@TARGTYPE">
  <xsl:attribute name="type">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TARGETEND
Namespace No namespace
Match @TARGETEND
Mode #default
Import precedence 0
Source
<xsl:template match="@TARGETEND">
  <xsl:attribute name="targetEnd">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @VALUETO
Namespace No namespace
Match @VALUETO
Mode #default
Import precedence 0
Source
<xsl:template match="@VALUETO">
  <xsl:attribute name="valueTo">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @VARSEQ
Namespace No namespace
Match @VARSEQ
Mode #default
Import precedence 0
Source
<xsl:template match="@VARSEQ">
  <xsl:attribute name="varSeq">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @WSCALE
Namespace No namespace
Match @WSCALE
Mode #default
Import precedence 0
Source
<xsl:template match="@WSCALE">
  <xsl:attribute name="wScale">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TEIFORM
Namespace No namespace
Match @TEIFORM
Mode #default
Import precedence 0
Source
<xsl:template match="@TEIFORM"/>
Stylesheet location tcp2tei.xsl
Template @OPT
Namespace No namespace
Match @OPT
Mode #default
Import precedence 0
Source
<xsl:template match="@OPT">
  <xsl:if test="not(. = 'n')">
    <xsl:attribute name="opt">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TO
Namespace No namespace
Match @TO
Mode #default
Import precedence 0
Source
<xsl:template match="@TO">
  <xsl:if test="not(. = 'DITTO')">
    <xsl:attribute name="to">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @DEFAULT
Namespace No namespace
Match @DEFAULT
Mode #default
Import precedence 0
Source
<xsl:template match="@DEFAULT">
  <xsl:if test="not(. = 'no')">
    <xsl:attribute name="default">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @PART
Namespace No namespace
Match @PART
Mode #default
Import precedence 0
Source
<xsl:template match="@PART">
  <xsl:if test="not(. = 'n')">
    <xsl:attribute name="part">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @FULL
Namespace No namespace
Match @FULL
Mode #default
Import precedence 0
Source
<xsl:template match="@FULL">
  <xsl:if test="not(. = 'yes')">
    <xsl:attribute name="full">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @FROM
Namespace No namespace
Match @FROM
Mode #default
Import precedence 0
Source
<xsl:template match="@FROM">
  <xsl:if test="not(. = 'ROOT')">
    <xsl:attribute name="from">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @STATUS
Namespace No namespace
Match @STATUS
Mode #default
Import precedence 0
Source
<xsl:template match="@STATUS">
  <xsl:choose>
    <xsl:when test="parent::TEIHEADER">
      <xsl:if test="not(. = 'new')">
        <xsl:attribute name="status">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:if>
    </xsl:when>
    <xsl:when test="parent::DEL">
      <xsl:if test="not(. = 'unremarkable')">
        <xsl:attribute name="status">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:if>
    </xsl:when>
    <xsl:otherwise>
      <xsl:attribute name="status">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @PLACE
Documentation

Description

@PLACE has both inconsistencies and mistakes; some values should obviously be @n

Namespace No namespace
Match @PLACE
Mode #default
Import precedence 0
Source
<xsl:template match="@PLACE">
  <xsl:variable name="p" select="lower-case(.)"/>
  <xsl:choose>
    <xsl:when test="$p='marg' or $p='marg;' or $p='marg)' or $p='marg='         or $p='ma / rg' or $p='6marg'">
      <xsl:attribute name="place">margin</xsl:attribute>
    </xsl:when>
    <xsl:when test="$p = 'unspecified'"/>
    <xsl:when test="$p='foot;' or $p='foor;' or $p='foot'">
      <xsl:attribute name="place">bottom</xsl:attribute>
    </xsl:when>
    <xsl:when test="$p='foot1' or $p='foot2'">
      <xsl:attribute name="place">bottom</xsl:attribute>
      <xsl:attribute name="type" select="$p"/>
    </xsl:when>
    <xsl:when test="$p='inter'">
      <xsl:attribute name="rend" select="$p"/>
    </xsl:when>
    <xsl:when test="$p='‡' or $p='†' or $p='‖' or $p='6'  or $p='“' or         $p='1' or $p='*'">
      <xsl:attribute name="n">
        <xsl:value-of select="$p"/>
      </xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
      <xsl:attribute name="place">
        <xsl:value-of select="$p"/>
      </xsl:attribute>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @SAMPLE
Namespace No namespace
Match @SAMPLE
Mode #default
Import precedence 0
Source
<xsl:template match="@SAMPLE">
  <xsl:if test="not(. = 'COMPLETE')">
    <xsl:attribute name="sample">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ORG
Namespace No namespace
Match @ORG
Mode #default
Import precedence 0
Source
<xsl:template match="@ORG">
  <xsl:if test="not(. = 'uniform')">
    <xsl:attribute name="org">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ENCDESC
Namespace No namespace
Match ENCDESC
Mode #default
Import precedence 0
Source
<xsl:template match="ENCDESC">
  <encodingDesc>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </encodingDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EDSTMT
Namespace No namespace
Match EDSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="EDSTMT">
  <editorialStmt>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </editorialStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TITLSTMT
Namespace No namespace
Match TITLSTMT
Mode #default
Import precedence 0
Source
<xsl:template match="TITLSTMT">
  <titleStmt>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </titleStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @N
Namespace No namespace
Match @N
Mode #default
Import precedence 0
Source
<xsl:template match="@N">
  <xsl:if test="not(normalize-space(.)='')">
    <xsl:attribute name="n">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @TYPE
Namespace No namespace
Match @TYPE
Mode #default
References
Parameter
Import precedence 0
Source
<xsl:template match="@TYPE">
  <xsl:choose>
    <xsl:when test=".='poem (rebus)'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">rebus</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem(s)'">
      <xsl:attribute name="type">poems</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem and response'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">response</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem collection'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">collection</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem fragment'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">fragment</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem fragments'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">fragments</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem from author to the reader'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">from_author_to_the_reader</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem in honor of Gustavus'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">in_honor_of_Gustavus</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem incorporating anagrams'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">incorporating_anagrams</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem incorporating the Creed'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">incorporating_the_Creed</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem on frontispiece'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">on_frontispiece</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem on the seven virtues'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">on_the_seven_virtues</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to Archpapist'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_Archpapist</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to God from second edition'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_God_from_second_edition</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to author'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_author</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to book'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_book</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to king'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_king</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to pupils'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_pupils</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to readers'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_readers</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to subjects'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_subjects</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to the author'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_the_author</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to the censorious reader'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_the_censorious_reader</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to the censors'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_the_censors</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to the pious reader'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_the_pious_reader</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem to the reader'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">to_the__reader</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem with commentary'">
      <xsl:attribute name="type">poem</xsl:attribute>
      <xsl:attribute name="subtype">commentary</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poem(s) by one author'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">by_one_author</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poems and commentary'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">commentary</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poems gratulatory'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">gratulatory</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poems of acknowledgment'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">acknowledgment</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poems on the Symbols'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">on_the_Symbols</xsl:attribute>
    </xsl:when>
    <xsl:when test=".='poems to the reader'">
      <xsl:attribute name="type">poems</xsl:attribute>
      <xsl:attribute name="subtype">to_the_reader</xsl:attribute>
    </xsl:when>
    <xsl:when test="not(normalize-space(.)='')">
      <xsl:attribute name="type">
        <xsl:analyze-string regex="([0-9]+)(.*)" select="translate(translate(.,'( &/', '____'),$intype,'')">
          <xsl:matching-substring>
            <xsl:text>n</xsl:text>
            <xsl:value-of select="regex-group(1)"/>
            <xsl:value-of select="regex-group(2)"/>
          </xsl:matching-substring>
          <xsl:non-matching-substring>
            <xsl:value-of select="."/>
          </xsl:non-matching-substring>
        </xsl:analyze-string>
      </xsl:attribute>
    </xsl:when>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template NOTE/@TYPE[.=../MILESTONE/@UNIT]
Documentation

Description

You sometimes find a milestone inside a marginal note, where the note has the same value for @type as the milestone has for unit. Kill the @type on note in this situation.

Namespace No namespace
Match NOTE/@TYPE[.=../MILESTONE/@UNIT]
Mode #default
Import precedence 0
Source
<xsl:template match="NOTE/@TYPE[.=../MILESTONE/@UNIT]"/>
Stylesheet location tcp2tei.xsl
Template LETTER/NOTE
Documentation

Description

a note following by a closer as content of body? please, wrap it in a p

Namespace No namespace
Match LETTER/NOTE
Mode #default
Import precedence 0
Source
<xsl:template match="LETTER/NOTE">
  <xsl:choose>
    <xsl:when test="count(parent::LETTER/*)=2 and         following-sibling::CLOSER">
      <p>
        <note>
          <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
        </note>
      </p>
    </xsl:when>
    <xsl:otherwise>
      <note>
        <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
      </note>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @UNIT
Namespace No namespace
Match @UNIT
Mode #default
Import precedence 0
Source
<xsl:template match="@UNIT">
  <xsl:attribute name="unit">
    <xsl:value-of select="translate(.,'ſ','s')"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEICORPUS.2
Namespace No namespace
Match TEICORPUS.2
Mode #default
Import precedence 0
Source
<xsl:template match="TEICORPUS.2">
  <teiCorpus>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </teiCorpus>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template WITNESS/@SIGIL
Namespace No namespace
Match WITNESS/@SIGIL
Mode #default
Import precedence 0
Source
<xsl:template match="WITNESS/@SIGIL">
  <xsl:attribute name="xml:id">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template WITLIST
Namespace No namespace
Match WITLIST
Mode #default
Import precedence 0
Source
<xsl:template match="WITLIST">
  <listWit>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </listWit>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template XREF
Namespace No namespace
Match XREF
Mode #default
Import precedence 0
Source
<xsl:template match="XREF">
  <ref>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </ref>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template XPTR
Namespace No namespace
Match XPTR
Mode #default
Import precedence 0
Source
<xsl:template match="XPTR">
  <ptr>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </ptr>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FIGURE/@ENTITY
Namespace No namespace
Match FIGURE/@ENTITY
Mode #default
Import precedence 0
Source
<xsl:template match="FIGURE/@ENTITY"/>
Stylesheet location tcp2tei.xsl
Template FIGURE
Namespace No namespace
Match FIGURE
Mode #default
Import precedence 0
Source
<xsl:template match="FIGURE">
  <figure>
    <xsl:if test="@ENTITY">
      <graphic>
        <xsl:attribute name="url">
          <xsl:choose>
            <xsl:when test="unparsed-entity-uri(@ENTITY)=''">
              <xsl:text>ENTITY_</xsl:text>
              <xsl:value-of select="@ENTITY"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="unparsed-entity-uri(@ENTITY)"/>
            </xsl:otherwise>
          </xsl:choose>
        </xsl:attribute>
        <xsl:apply-templates select="@*"/>
      </graphic>
    </xsl:if>
    <xsl:apply-templates/>
  </figure>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template P[count(FIGURE)=count(*) and not (text()) and parent::*/count(P[not(FIGURE)])>1]
Documentation

Description

Figures inside paragraphs can generally be free-standing, unless they are the only paragraph of this type (ie inside a div consisting only of pictures).

Namespace No namespace
Match P[count(FIGURE)=count(*) and not (text()) and parent::*/count(P[not(FIGURE)])>1]
Mode #default
Import precedence 0
Source
<xsl:template match="P[count(FIGURE)=count(*) and not (text()) and parent::*/count(P[not(FIGURE)])>1]">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EVENT
Namespace No namespace
Match EVENT
Mode #default
Import precedence 0
Source
<xsl:template match="EVENT">
  <incident>
    <xsl:apply-templates select="@*|*|text()|comment()|processing-instruction()"/>
  </incident>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template STATE
Namespace No namespace
Match STATE
Mode #default
Import precedence 0
Source
<xsl:template match="STATE">
  <refState>
    <xsl:apply-templates select="@*|*|text()|comment()|processing-instruction()"/>
  </refState>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DATERANGE
Documentation

Description

 lost elements 
Namespace No namespace
Match DATERANGE
Mode #default
Import precedence 0
Source
<xsl:template match="DATERANGE">
  <date>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
  </date>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DATERANGE/@FROM
Namespace No namespace
Match DATERANGE/@FROM
Mode #default
Import precedence 0
Source
<xsl:template match="DATERANGE/@FROM">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DATERANGE/@TO
Namespace No namespace
Match DATERANGE/@TO
Mode #default
Import precedence 0
Source
<xsl:template match="DATERANGE/@TO">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template LANGUAGE
Namespace No namespace
Match LANGUAGE
Mode #default
Import precedence 0
Source
<xsl:template match="LANGUAGE">
  <language>
    <xsl:attribute name="ident">
      <xsl:choose>
        <xsl:when test="@ID">
          <xsl:value-of select="@ID"/>
        </xsl:when>
        <xsl:when test="../@ID">
          <xsl:value-of select="../@ID"/>
        </xsl:when>
      </xsl:choose>
    </xsl:attribute>
    <xsl:apply-templates select="*|processing-instruction()|comment()|text()"/>
  </language>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @DATE.CREATED
Documentation

Description

 attributes lost 
 dropped from TEI. Added as new change records later 
Namespace No namespace
Match @DATE.CREATED
Mode #default
Import precedence 0
Source
<xsl:template match="@DATE.CREATED"/>
Stylesheet location tcp2tei.xsl
Template @DATE.UPDATED
Namespace No namespace
Match @DATE.UPDATED
Mode #default
Import precedence 0
Source
<xsl:template match="@DATE.UPDATED"/>
Stylesheet location tcp2tei.xsl
Template REFSDECL/@DOCTYPE
Documentation

Description

 dropped from TEI. No replacement 
Namespace No namespace
Match REFSDECL/@DOCTYPE
Mode #default
Import precedence 0
Source
<xsl:template match="REFSDECL/@DOCTYPE"/>
Stylesheet location tcp2tei.xsl
Template DATE/@VALUE
Documentation

Description

 attributes changed name 
Namespace No namespace
Match DATE/@VALUE
Mode #default
Import precedence 0
Source
<xsl:template match="DATE/@VALUE">
  <xsl:attribute name="when">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @DOC
Namespace No namespace
Match @DOC
Mode #default
Import precedence 0
Source
<xsl:template match="@DOC">
  <xsl:attribute name="target">
    <xsl:value-of select="unparsed-entity-uri(.)"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ID
Namespace No namespace
Match @ID
Mode #default
Import precedence 0
Source
<xsl:template match="@ID">
  <xsl:choose>
    <xsl:when test="parent::LANG">
      <xsl:attribute name="ident">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
      <xsl:attribute name="xml:id">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @LANG
Namespace No namespace
Match @LANG
Mode #default
Import precedence 0
Source
<xsl:template match="@LANG">
  <xsl:attribute name="xml:lang">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CHANGE/@DATE
Namespace No namespace
Match CHANGE/@DATE
Mode #default
Import precedence 0
Source
<xsl:template match="CHANGE/@DATE"/>
Stylesheet location tcp2tei.xsl
Template DATE/@CERTAINTY
Namespace No namespace
Match DATE/@CERTAINTY
Mode #default
Import precedence 0
Source
<xsl:template match="DATE/@CERTAINTY">
  <xsl:attribute name="cert">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template VARIANTENCODING/@LOCATION
Documentation

Description

Process pointing attributes, which may me full URLs or not, and may contain multiple values.


Description

 all pointing attributes preceded by # 
Namespace No namespace
Match VARIANTENCODING/@LOCATION
Mode #default
Import precedence 0
Source
<xsl:template match="VARIANTENCODING/@LOCATION">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ANA|@ACTIVE|@ADJ|@ADJFROM|@ADJTO|@CHILDREN|@CLASS|@CODE|@COPYOF|@CORRESP|@DECLS|@DOMAINS|@END|@EXCLUDE|@FVAL|@FEATS|@FOLLOW|@HAND|@INST|@LANGKEY|@LOCATION|@MERGEDIN|@NEW|@NEXT|@OLD|@ORIGIN|@OTHERLANGS|@PARENT|@PASSIVE|@PERF|@PREV|@RENDER|@RESP|@SAMEAS|@SCHEME|@SCRIPT|@SELECT|@SINCE|@START|@SYNCH|@TARGET|@TARGETEND|@VALUE|@VALUE|@WHO|@WIT
Namespace No namespace
Match @ANA|@ACTIVE|@ADJ|@ADJFROM|@ADJTO|@CHILDREN|@CLASS|@CODE|@COPYOF|@CORRESP|@DECLS|@DOMAINS|@END|@EXCLUDE|@FVAL|@FEATS|@FOLLOW|@HAND|@INST|@LANGKEY|@LOCATION|@MERGEDIN|@NEW|@NEXT|@OLD|@ORIGIN|@OTHERLANGS|@PARENT|@PASSIVE|@PERF|@PREV|@RENDER|@RESP|@SAMEAS|@SCHEME|@SCRIPT|@SELECT|@SINCE|@START|@SYNCH|@TARGET|@TARGETEND|@VALUE|@VALUE|@WHO|@WIT
Mode #default
Import precedence 0
Source
<xsl:template match="@ANA|@ACTIVE|@ADJ|@ADJFROM|@ADJTO|@CHILDREN|@CLASS|@CODE|@COPYOF|@CORRESP|@DECLS|@DOMAINS|@END|@EXCLUDE|@FVAL|@FEATS|@FOLLOW|@HAND|@INST|@LANGKEY|@LOCATION|@MERGEDIN|@NEW|@NEXT|@OLD|@ORIGIN|@OTHERLANGS|@PARENT|@PASSIVE|@PERF|@PREV|@RENDER|@RESP|@SAMEAS|@SCHEME|@SCRIPT|@SELECT|@SINCE|@START|@SYNCH|@TARGET|@TARGETEND|@VALUE|@VALUE|@WHO|@WIT">
  <xsl:variable name="vals">
    <xsl:for-each select="tokenize(.,' ')">
      <a>
        <xsl:choose>
          <xsl:when test="starts-with(.,'http') or starts-with(.,'ftp') or starts-with(.,'mailto')">
            <xsl:sequence select="."/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:text>#</xsl:text>
            <xsl:sequence select="."/>
          </xsl:otherwise>
        </xsl:choose>
      </a>
    </xsl:for-each>
  </xsl:variable>
  <xsl:attribute name="{lower-case(name(.))}" select="string-join($vals/tei:a,' ')"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template BIBL/IMPRINT
Documentation

Description

 fool around with selected elements 
 imprint is no longer allowed inside bibl 
Namespace No namespace
Match BIBL/IMPRINT
Mode #default
Import precedence 0
Source
<xsl:template match="BIBL/IMPRINT">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EDITIONSTMT/EDITOR
Namespace No namespace
Match EDITIONSTMT/EDITOR
Mode #default
Import precedence 0
Source
<xsl:template match="EDITIONSTMT/EDITOR">
  <respStmt>
    <resp>
      <xsl:value-of select="@ROLE"/>
    </resp>
    <name>
      <xsl:apply-templates/>
    </name>
  </respStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEIHEADER
Documentation

Description

 header 
Namespace No namespace
Match TEIHEADER
Mode #default
References
Template
Import precedence 0
Source
<xsl:template match="TEIHEADER">
  <teiHeader>
    <xsl:apply-templates select="@*|*|comment()|processing-instruction()"/>
    <xsl:choose>
      <xsl:when test="not(REVISIONDESC) and (@DATE.CREATED or @DATE.UPDATED)">
        <revisionDesc>
          <xsl:if test="@DATE.UPDATED">
            <change>>
	    <label>updated</label>
              <date>
                <xsl:value-of select="@DATE.UPDATED"/>
              </date>
              <label>Date edited</label>
            </change>
          </xsl:if>
          <xsl:if test="@DATE.CREATED">
            <change>
              <label>created</label>
              <date>
                <xsl:value-of select="@DATE.CREATED"/>
              </date>
              <label>Date created</label>
            </change>
          </xsl:if>
        </revisionDesc>
      </xsl:when>
      <xsl:when test="not(REVISIONDESC)">
        <xsl:call-template name="Decls"/>
      </xsl:when>
    </xsl:choose>
  </teiHeader>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ROLE
Namespace No namespace
Match @ROLE
Mode #default
Import precedence 0
Source
<xsl:template match="@ROLE">
  <xsl:attribute name="ana">
    <xsl:text>#role_</xsl:text>
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ROW/@ROLE
Namespace No namespace
Match ROW/@ROLE
Mode #default
Import precedence 0
Source
<xsl:template match="ROW/@ROLE">
  <xsl:attribute name="role">
    <xsl:value-of select="lower-case(.)"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CELL/@ROLE
Namespace No namespace
Match CELL/@ROLE
Mode #default
Import precedence 0
Source
<xsl:template match="CELL/@ROLE">
  <xsl:attribute name="role">
    <xsl:value-of select="lower-case(.)"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SPACE/@EXTENT
Documentation

Description

 space does not have @EXTENT any more 
Namespace No namespace
Match SPACE/@EXTENT
Mode #default
Import precedence 0
Source
<xsl:template match="SPACE/@EXTENT">
  <xsl:attribute name="quantity">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TAGSDECL
Documentation

Description

 tagsDecl has a compulsory namespace child now 
Namespace No namespace
Match TAGSDECL
Mode #default
Import precedence 0
Source
<xsl:template match="TAGSDECL">
  <xsl:if test="*">
    <tagsDecl>
      <namespace name="http://www.tei-c.org/ns/1.0">
        <xsl:apply-templates select="*|comment()|processing-instruction"/>
      </namespace>
    </tagsDecl>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORGNAME/ORGTITLE
Documentation

Description

 orgTitle inside orgName? redundant 
Namespace No namespace
Match ORGNAME/ORGTITLE
Mode #default
Import precedence 0
Source
<xsl:template match="ORGNAME/ORGTITLE">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SOURCEDESC/p[string-length(.)=0]
Documentation

Description

 no need for empty <p> in sourceDesc 
Namespace No namespace
Match SOURCEDESC/p[string-length(.)=0]
Mode #default
Import precedence 0
Source
<xsl:template match="SOURCEDESC/p[string-length(.)=0]"/>
Stylesheet location tcp2tei.xsl
Template GAP/@DESC
Namespace No namespace
Match GAP/@DESC
Mode #default
Import precedence 0
Source
<xsl:template match="GAP/@DESC">
  <xsl:attribute name="reason">
    <xsl:value-of select="lower-case(.)"/>
    <xsl:if test="parent::GAP/@REASON">
      <xsl:text>: </xsl:text>
      <xsl:value-of select="parent::GAP/@REASON"/>
    </xsl:if>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template GAP/@DISP
Namespace No namespace
Match GAP/@DISP
Mode #default
Import precedence 0
Source
<xsl:template match="GAP/@DISP">
  <desc>
    <xsl:value-of select="."/>
  </desc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template GAP
Namespace No namespace
Match GAP
Mode #default
Import precedence 0
Source
<xsl:template match="GAP">
  <gap>
    <xsl:apply-templates select="@DESC"/>
    <xsl:apply-templates select="@RESP"/>
    <xsl:apply-templates select="@EXTENT"/>
    <xsl:apply-templates select="@DISP"/>
  </gap>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CORR[@SIC]
Documentation

Description

  creating a choice element 
Namespace No namespace
Match CORR[@SIC]
Mode #default
Import precedence 0
Source
<xsl:template match="CORR[@SIC]">
  <choice>
    <corr>
      <xsl:apply-templates select="text()"/>
    </corr>
    <sic>
      <xsl:value-of select="@SIC"/>
    </sic>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SIC[@CORR]
Namespace No namespace
Match SIC[@CORR]
Mode #default
Import precedence 0
Source
<xsl:template match="SIC[@CORR]">
  <choice>
    <sic>
      <xsl:apply-templates/>
    </sic>
    <corr>
      <xsl:value-of select="@CORR"/>
    </corr>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ORIG[@REG]
Namespace No namespace
Match ORIG[@REG]
Mode #default
Import precedence 0
Source
<xsl:template match="ORIG[@REG]">
  <choice>
    <orig>
      <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
    </orig>
    <reg>
      <xsl:value-of select="@REG"/>
    </reg>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template REG[@ORIG]
Namespace No namespace
Match REG[@ORIG]
Mode #default
Import precedence 0
Source
<xsl:template match="REG[@ORIG]">
  <choice>
    <reg>
      <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()"/>
    </reg>
    <orig>
      <xsl:value-of select="@ORIG"/>
    </orig>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ORIG|@REG
Namespace No namespace
Match @ORIG|@REG
Mode #default
Import precedence 0
Source
<xsl:template match="@ORIG|@REG"/>
Stylesheet location tcp2tei.xsl
Template ABBR[@EXPAN]
Namespace No namespace
Match ABBR[@EXPAN]
Mode #default
Import precedence 0
Source
<xsl:template match="ABBR[@EXPAN]">
  <choice>
    <abbr>
      <xsl:apply-templates/>
    </abbr>
    <expan>
      <xsl:value-of select="@EXPAN"/>
    </expan>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template EXPAN[@ABBR]
Namespace No namespace
Match EXPAN[@ABBR]
Mode #default
Import precedence 0
Source
<xsl:template match="EXPAN[@ABBR]">
  <choice>
    <expan>
      <xsl:apply-templates/>
    </expan>
    <abbr>
      <xsl:value-of select="@ABBR"/>
    </abbr>
  </choice>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FILEDESC/PUBLICATIONSTMT/DATE
Namespace No namespace
Match FILEDESC/PUBLICATIONSTMT/DATE
Mode #default
Import precedence 0
Source
<xsl:template match="FILEDESC/PUBLICATIONSTMT/DATE">
  <date>
    <xsl:variable name="d">
      <xsl:choose>
        <xsl:when test="contains(.,' (')">
          <xsl:value-of select="substring-before(.,' (')"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="replace(.,'[\?\.\[\]]','')"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:variable>
    <xsl:attribute name="when">
      <xsl:analyze-string select="$d" regex="([0-9][0-9][0-9][0-9]) ([A-z]+)">
        <xsl:matching-substring>
          <xsl:value-of select="regex-group(1)"/>
          <xsl:text>-</xsl:text>
          <xsl:choose>
            <xsl:when test="regex-group(2)='January'">01</xsl:when>
            <xsl:when test="regex-group(2)='February'">02</xsl:when>
            <xsl:when test="regex-group(2)='March'">03</xsl:when>
            <xsl:when test="regex-group(2)='April'">04</xsl:when>
            <xsl:when test="regex-group(2)='May'">05</xsl:when>
            <xsl:when test="regex-group(2)='June'">06</xsl:when>
            <xsl:when test="regex-group(2)='July'">07</xsl:when>
            <xsl:when test="regex-group(2)='August'">08</xsl:when>
            <xsl:when test="regex-group(2)='September'">09</xsl:when>
            <xsl:when test="regex-group(2)='October'">10</xsl:when>
            <xsl:when test="regex-group(2)='November'">11</xsl:when>
            <xsl:when test="regex-group(2)='December'">12</xsl:when>
          </xsl:choose>
        </xsl:matching-substring>
        <xsl:non-matching-substring>
          <xsl:value-of select="."/>
        </xsl:non-matching-substring>
      </xsl:analyze-string>
    </xsl:attribute>
    <xsl:value-of select="."/>
  </date>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template CHANGE
Documentation

Description

 special consideration for <change> element 
Namespace No namespace
Match CHANGE
Mode #default
Import precedence 0
Source
<xsl:template match="CHANGE">
  <change>
    <xsl:apply-templates select="ITEM/@*"/>
    <xsl:apply-templates select="DATE"/>
    <xsl:if test="RESPSTMT/RESP">
      <label>
        <xsl:value-of select="RESPSTMT/RESP/text()"/>
      </label>
    </xsl:if>
    <xsl:for-each select="RESPSTMT/NAME">
      <name>
        <xsl:apply-templates select="@*|*|comment()|processing-instruction()|text()"/>
      </name>
    </xsl:for-each>
    <xsl:for-each select="ITEM">
      <xsl:apply-templates select="*|comment()|processing-instruction()|text()"/>
    </xsl:for-each>
  </change>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template RESPSTMT[RESP]
Namespace No namespace
Match RESPSTMT[RESP]
Mode #default
Import precedence 0
Source
<xsl:template match="RESPSTMT[RESP]">
  <respStmt>
    <xsl:choose>
      <xsl:when test="RESP/NAME">
        <resp>
          <xsl:apply-templates select="resp/text()"/>
        </resp>
        <xsl:for-each select="RESP/NAME">
          <name>
            <xsl:apply-templates/>
          </name>
        </xsl:for-each>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-templates/>
        <name>
        </name>
      </xsl:otherwise>
    </xsl:choose>
  </respStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template Q/@DIRECT
Namespace No namespace
Match Q/@DIRECT
Mode #default
Import precedence 0
Source
<xsl:template match="Q/@DIRECT"/>
Stylesheet location tcp2tei.xsl
Template @STATUS
Namespace No namespace
Match @STATUS
Mode #default
Import precedence 0
Source
<xsl:template match="@STATUS">
  <xsl:choose>
    <xsl:when test="parent::TEIHEADER">
      <xsl:if test="not(lower-case(.) ='new')">
        <xsl:attribute name="status">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:if>
    </xsl:when>
    <xsl:when test="parent::DEL">
      <xsl:if test="not(lower-case(.) ='unremarkable')">
        <xsl:attribute name="status">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:if>
    </xsl:when>
    <xsl:otherwise>
      <xsl:attribute name="status">
        <xsl:value-of select="."/>
      </xsl:attribute>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @SAMPLE
Namespace No namespace
Match @SAMPLE
Mode #default
Import precedence 0
Source
<xsl:template match="@SAMPLE">
  <xsl:if test="not(lower-case(.) ='complete')">
    <xsl:attribute name="sample">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ORG
Namespace No namespace
Match @ORG
Mode #default
Import precedence 0
Source
<xsl:template match="@ORG">
  <xsl:if test="not(lower-case(.) ='uniform')">
    <xsl:attribute name="org">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template TEIHEADER/@TYPE
Namespace No namespace
Match TEIHEADER/@TYPE
Mode #default
Import precedence 0
Source
<xsl:template match="TEIHEADER/@TYPE">
  <xsl:if test="not(lower-case(.) ='text')">
    <xsl:attribute name="type">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @ANCHORED
Documentation

Description

 yes|no to boolean 
Namespace No namespace
Match @ANCHORED
Mode #default
Import precedence 0
Source
<xsl:template match="@ANCHORED">
  <xsl:attribute name="anchored">
    <xsl:choose>
      <xsl:when test="lower-case(.)='yes'">true</xsl:when>
      <xsl:when test="lower-case(.)='no'">false</xsl:when>
    </xsl:choose>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template SOURCEDESC/@DEFAULT
Namespace No namespace
Match SOURCEDESC/@DEFAULT
Mode #default
Import precedence 0
Source
<xsl:template match="SOURCEDESC/@DEFAULT"/>
Stylesheet location tcp2tei.xsl
Template @TEI
Namespace No namespace
Match @TEI
Mode #default
Import precedence 0
Source
<xsl:template match="@TEI">
  <xsl:attribute name="tei">
    <xsl:choose>
      <xsl:when test="lower-case(.)='yes'">true</xsl:when>
      <xsl:when test="lower-case(.)='no'">false</xsl:when>
    </xsl:choose>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @LANGKEY
Namespace No namespace
Match @LANGKEY
Mode #default
Import precedence 0
Source
<xsl:template match="@LANGKEY"/>
Stylesheet location tcp2tei.xsl
Template @TEIFORM
Namespace No namespace
Match @TEIFORM
Mode #default
Import precedence 0
Source
<xsl:template match="@TEIFORM"/>
Stylesheet location tcp2tei.xsl
Template @OLD
Namespace No namespace
Match @OLD
Mode #default
Import precedence 0
Source
<xsl:template match="@OLD"/>
Stylesheet location tcp2tei.xsl
Template REF/@FROM
Namespace No namespace
Match REF/@FROM
Mode #default
Import precedence 0
Source
<xsl:template match="REF/@FROM"/>
Stylesheet location tcp2tei.xsl
Template @MERGEDIN
Namespace No namespace
Match @MERGEDIN
Mode #default
Import precedence 0
Source
<xsl:template match="@MERGEDIN">
  <xsl:attribute name="mergedIn">
    <xsl:value-of select="."/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template DIV0|DIV1|DIV2|DIV3|DIV4|DIV5|DIV6|DIV7
Namespace No namespace
Match DIV0|DIV1|DIV2|DIV3|DIV4|DIV5|DIV6|DIV7
Mode #default
Import precedence 0
Source
<xsl:template match="DIV0|DIV1|DIV2|DIV3|DIV4|DIV5|DIV6|DIV7">
  <div>
    <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
  </div>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template ROW/@ROLE[.='data']
Documentation

Description

 remove default values for attributes 
Namespace No namespace
Match ROW/@ROLE[.='data']
Mode #default
Import precedence 0
Source
<xsl:template match="ROW/@ROLE[.='data']"/>
Stylesheet location tcp2tei.xsl
Template CELL/@ROLE[.='data']
Namespace No namespace
Match CELL/@ROLE[.='data']
Mode #default
Import precedence 0
Source
<xsl:template match="CELL/@ROLE[.='data']"/>
Stylesheet location tcp2tei.xsl
Template ROW/@ROLE[.='DATA']
Namespace No namespace
Match ROW/@ROLE[.='DATA']
Mode #default
Import precedence 0
Source
<xsl:template match="ROW/@ROLE[.='DATA']"/>
Stylesheet location tcp2tei.xsl
Template CELL/@ROLE[.='DATA']
Namespace No namespace
Match CELL/@ROLE[.='DATA']
Mode #default
Import precedence 0
Source
<xsl:template match="CELL/@ROLE[.='DATA']"/>
Stylesheet location tcp2tei.xsl
Template CELL/@ROWS[.='1']
Namespace No namespace
Match CELL/@ROWS[.='1']
Mode #default
Import precedence 0
Source
<xsl:template match="CELL/@ROWS[.='1']"/>
Stylesheet location tcp2tei.xsl
Template CELL/@COLS[.='1']
Namespace No namespace
Match CELL/@COLS[.='1']
Mode #default
Import precedence 0
Source
<xsl:template match="CELL/@COLS[.='1']"/>
Stylesheet location tcp2tei.xsl
Template Q/@BROKEN[.='no']
Namespace No namespace
Match Q/@BROKEN[.='no']
Mode #default
Import precedence 0
Source
<xsl:template match="Q/@BROKEN[.='no']"/>
Stylesheet location tcp2tei.xsl
Template ENCODINGDESC/PROJECTDESC
Namespace No namespace
Match ENCODINGDESC/PROJECTDESC
Mode #default
Import precedence 0
Source
<xsl:template match="ENCODINGDESC/PROJECTDESC">
  <projectDesc>
    <p>Created by converting TCP files to TEI P5 using tcp2tei.xsl,
      TEI @ Oxford.
      </p>
  </projectDesc>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template HEAD/STAGE
Namespace No namespace
Match HEAD/STAGE
Mode #default
Import precedence 0
Source
<xsl:template match="HEAD/STAGE">
  <hi rend="stage">
    <xsl:apply-templates/>
  </hi>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template FIGDESC/HI[@rend='sup']
Namespace No namespace
Match FIGDESC/HI[@rend='sup']
Mode #default
Import precedence 0
Source
<xsl:template match="FIGDESC/HI[@rend='sup']">
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template PUBLICATIONSTMT[not(*)]
Namespace No namespace
Match PUBLICATIONSTMT[not(*)]
Mode #default
Import precedence 0
Source
<xsl:template match="PUBLICATIONSTMT[not(*)]">
  <publicationStmt>
    <p>unknown</p>
  </publicationStmt>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template Decls
Documentation

Description

If we have made some @role into @ana, we need taxonomy elements to point to

Namespace No namespace
Used by
Template
References
Key
Variable
Import precedence 0
Source
<xsl:template name="Decls">
  <xsl:if test="key('ROLES',1) or $Rendition/tei:tagsDecl/tei:rendition">
    <encodingDesc>
      <xsl:if test="key('ROLES',1)">
        <classDecl>
          <taxonomy>
            <xsl:for-each-group select="key('ROLES',1)" group-by=".">
              <category xml:id="role_{.}">
                <catDesc>
                  <xsl:value-of select="."/>
                </catDesc>
              </category>
            </xsl:for-each-group>
          </taxonomy>
        </classDecl>
      </xsl:if>
      <xsl:if test="$Rendition/tei:tagsDecl/tei:rendition">
        <tagsDecl>
          <xsl:for-each select="$Rendition/tei:tagsDecl/tei:rendition">
            <rendition scheme="css">
              <xsl:apply-templates select="@xml:id"/>
              <xsl:text>content:</xsl:text>
              <xsl:value-of select="."/>
              <xsl:text>;</xsl:text>
            </rendition>
          </xsl:for-each>
        </tagsDecl>
      </xsl:if>
    </encodingDesc>
  </xsl:if>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template makeID
Namespace No namespace
Used by
Template
Import precedence 0
Source
<xsl:template name="makeID"/>
Stylesheet location tcp2tei.xsl
Template idnoHook
Namespace No namespace
Used by
Template
Import precedence 0
Source
<xsl:template name="idnoHook"/>
Stylesheet location tcp2tei.xsl
Template @*|comment()|processing-instruction()|text()pass2
Documentation

Description

 second pass to clean up 
Namespace No namespace
Match @*|comment()|processing-instruction()|text()
Mode pass2
Import precedence 0
Source
<xsl:template match="@*|comment()|processing-instruction()|text()" mode="pass2">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template *pass2
Namespace No namespace
Match *
Mode pass2
Import precedence 0
Source
<xsl:template match="*" mode="pass2">
  <xsl:copy>
    <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" mode="pass2"/>
  </xsl:copy>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:closer[not(* or text())]
Documentation

Description

zap empty postscript

Namespace No namespace
Match tei:closer[not(* or text())]
Mode #default
Import precedence 0
Source
<xsl:template match="tei:closer[not(* or text())]"/>
Stylesheet location tcp2tei.xsl
Template @subtypepass2
Documentation

Description

The subtype attribute cant have spaces

Namespace No namespace
Match @subtype
Mode pass2
Import precedence 0
Source
<xsl:template match="@subtype" mode="pass2">
  <xsl:attribute name="subtype">
    <xsl:value-of select="translate(.,' ','_')"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @facspass2
Documentation

Description

The facs attribute should not have spaces or square brackets in

Namespace No namespace
Match @facs
Mode pass2
Import precedence 0
Source
<xsl:template match="@facs" mode="pass2">
  <xsl:attribute name="facs">
    <xsl:value-of select="translate(.,' []','_()')"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:p[not(parent::tei:sp or parent::tei:headnote or parent::tei:postscript or parent::tei:argument) and count(*)=1 and not(text()) and (tei:list or tei:table)]
Documentation

Description

A p with list, floatingText or table as singletons can lose itself

Namespace No namespace
Match tei:p[not(parent::tei:sp or parent::tei:headnote or parent::tei:postscript or parent::tei:argument) and count(*)=1 and not(text()) and (tei:list or tei:table)]
Mode #default
Import precedence 0
Source
<xsl:template match="tei:p[not(parent::tei:sp or parent::tei:headnote or          parent::tei:postscript or parent::tei:argument) and count(*)=1 and          not(text()) and   (tei:list or tei:table)]">
  <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:note[count(*)=1 and not(text())]/tei:p
Documentation

Description

A singleton p inside a note is bypassed

Namespace No namespace
Match tei:note[count(*)=1 and not(text())]/tei:p
Mode #default
Import precedence 0
Source
<xsl:template match="tei:note[count(*)=1 and not(text())]/tei:p">
  <xsl:apply-templates select="*|processing-instruction()|comment()|text()" mode="pass2"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:q[count(*)=1 and not(text()) and tei:floatingText]
Documentation

Description

A singleton floatingText inside a q can skip the q

Namespace No namespace
Match tei:q[count(*)=1 and not(text()) and tei:floatingText]
Mode #default
Import precedence 0
Source
<xsl:template match="tei:q[count(*)=1 and not(text()) and tei:floatingText]">
  <xsl:apply-templates select="*|processing-instruction()|comment()|text()" mode="pass2"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:cell[count(*)=1 and not(text()) and tei:p]pass2
Documentation

Description

A singleton p inside a cell is bypassed

Namespace No namespace
Match tei:cell[count(*)=1 and not(text()) and tei:p]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:cell[count(*)=1 and not(text()) and tei:p]" mode="pass2">
  <cell>
    <xsl:apply-templates select="@*"/>
    <xsl:for-each select="tei:p">
      <xsl:apply-templates select="*|processing-instruction()|comment()|text()" mode="pass2"/>
    </xsl:for-each>
  </cell>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:add[tei:p]pass2
Documentation

Description

p inside add means we must make an addSpan

Namespace No namespace
Match tei:add[tei:p]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:add[tei:p]" mode="pass2">
  <xsl:choose>
    <xsl:when test="parent::tei:p">
      <xsl:for-each select="tei:p">
        <p>
          <xsl:apply-templates select="@*" mode="pass2"/>
          <add>
            <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
          </add>
        </p>
      </xsl:for-each>
    </xsl:when>
    <xsl:when test="count(tei:p)=1">
      <add>
        <xsl:for-each select="tei:p">
          <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
        </xsl:for-each>
      </add>
    </xsl:when>
    <xsl:otherwise>
      <addSpan>
        <xsl:attribute name="spanTo">
          <xsl:text>#addSpan</xsl:text>
          <xsl:number level="any"/>
        </xsl:attribute>
      </addSpan>
      <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
      <anchor>
        <xsl:attribute name="xml:id">
          <xsl:text>addSpan</xsl:text>
          <xsl:number level="any"/>
        </xsl:attribute>
      </anchor>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:p[tei:add/tei:p and not(text())]pass2
Documentation
<desc>
    <p>
	a paragraph containing add and nothing else, where those adds
	themselves contains paragraphs, can be bypassed
      </p>
  </desc>
Namespace No namespace
Match tei:p[tei:add/tei:p and not(text())]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:p[tei:add/tei:p and not(text())]" mode="pass2">
  <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:list[tei:label/tei:list]pass2
Documentation

Description

a list inside a label in a gloss list will have to turn into a table

Namespace No namespace
Match tei:list[tei:label/tei:list]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:list[tei:label/tei:list]" mode="pass2">
  <table rend="braced">
    <xsl:for-each select="tei:label">
      <row>
        <cell>
          <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
        </cell>
        <cell>
          <xsl:for-each select="following-sibling::tei:item[1]">
            <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
          </xsl:for-each>
        </cell>
      </row>
    </xsl:for-each>
  </table>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:list[tei:item/tei:label/tei:list]pass2
Documentation

Description

a list inside a label in a gloss list (alternate way of doing gloss lists) will have to turn into a table

Namespace No namespace
Match tei:list[tei:item/tei:label/tei:list]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:list[tei:item/tei:label/tei:list]" mode="pass2">
  <table rend="braced">
    <xsl:for-each select="tei:item">
      <row>
        <cell>
          <xsl:for-each select="tei:label">
            <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
          </xsl:for-each>
        </cell>
        <cell>
          <xsl:apply-templates select="*[not(self::tei:label)]|text()|processing-instruction()|comment()" mode="pass2"/>
        </cell>
      </row>
    </xsl:for-each>
  </table>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:label[tei:list and parent::tei:p]pass2
Documentation

Description

a singleton label inside a paragraph, containing a list, can be ignored.

Namespace No namespace
Match tei:label[tei:list and parent::tei:p]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:label[tei:list and parent::tei:p]" mode="pass2">
  <xsl:apply-templates select="*|text()|processing-instruction()|comment()" mode="pass2"/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:label[following-sibling::*[1][self::tei:head]]pass2
Namespace No namespace
Match tei:label[following-sibling::*[1][self::tei:head]]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:label[following-sibling::*[1][self::tei:head]]" mode="pass2"/>
Stylesheet location tcp2tei.xsl
Template tei:head[preceding-sibling::*[1][self::tei:label]]pass2
Namespace No namespace
Match tei:head[preceding-sibling::*[1][self::tei:label]]
Mode pass2
Import precedence 0
Source
<xsl:template match="tei:head[preceding-sibling::*[1][self::tei:label]]" mode="pass2">
  <xsl:copy>
    <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" mode="pass2"/>
  </xsl:copy>
  <xsl:for-each select="preceding-sibling::*[1][self::tei:label]">
    <note>
      <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" mode="pass2"/>
    </note>
  </xsl:for-each>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template @*|comment()|processing-instruction()|text()pass3
Documentation

Description

 pass 3 
Namespace No namespace
Match @*|comment()|processing-instruction()|text()
Mode pass3
Import precedence 0
Source
<xsl:template match="@*|comment()|processing-instruction()|text()" mode="pass3">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template *pass3
Namespace No namespace
Match *
Mode pass3
Import precedence 0
Source
<xsl:template match="*" mode="pass3">
  <xsl:copy>
    <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" mode="pass3"/>
  </xsl:copy>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:p[tei:p]pass3
Documentation

Description

split up nested paragraphs
Namespace No namespace
Match tei:p[tei:p]
Mode pass3
Import precedence 0
Source
<xsl:template match="tei:p[tei:p]" mode="pass3">
  <xsl:variable name="here" select="."/>
  <xsl:for-each-group select="node()" group-adjacent="if (self::tei:p) then 1 else 2">
    <xsl:choose>
      <xsl:when test="current-grouping-key()=1">
        <xsl:apply-templates select="current-group()" mode="pass3"/>
      </xsl:when>
      <xsl:otherwise>
        <p>
          <xsl:copy-of select="$here/@*"/>
          <xsl:apply-templates select="current-group()" mode="pass3"/>
        </p>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:for-each-group>
</xsl:template>
Stylesheet location tcp2tei.xsl
Template tei:availabilitypass3
Documentation

Description

generate appropriate availability
Namespace No namespace
Match tei:availability
Mode pass3
Import precedence 0
Source
<xsl:template match="tei:availability" mode="pass3">
  <xsl:variable name="d" select="/*/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:date"/>
  <availability>
    <xsl:choose>
      <xsl:when test="contains($d,'Phase 2')">
        <p>This keyboarded and encoded edition of the work
	       described above is co-owned by the institutions
	       providing financial support to the Early English Books
	       Online Text Creation Partnership. Searching, reading,
	       printing, or downloading EEBO-TCP texts is reserved for
	       the authorized users of these project partner
	       institutions. Permission must be granted for subsequent
	       distribution, in print or electronically, of this
	       EEBO-TCP Phase II text, in whole or in part.</p>
      </xsl:when>
      <xsl:otherwise>
        <p>This keyboarded and encoded edition of the
	       work described above is co-owned by the institutions
	       providing financial support to the Early English Books
	       Online Text Creation Partnership. This Phase I text is
	       available for reuse, according to the terms of <ref target="https://creativecommons.org/publicdomain/zero/1.0/">Creative
	       Commons 0 1.0 Universal</ref>. The text can be copied,
	       modified, distributed and performed, even for
	       commercial purposes, all without asking permission.</p>
      </xsl:otherwise>
    </xsl:choose>
  </availability>
</xsl:template>
Stylesheet location tcp2tei.xsl
Parameter ID
Namespace No namespace
Used by
Template
Source
<xsl:param name="ID"/>
Stylesheet location tcp2tei.xsl
Parameter intype
Namespace No namespace
Used by
Template
Source
<xsl:param name="intype">',)?</xsl:param>
Stylesheet location tcp2tei.xsl
Parameter debug
Namespace No namespace
Source
<xsl:param name="debug">false</xsl:param>
Stylesheet location tcp2tei.xsl
Parameter headerDirectory
Namespace No namespace
Used by
Template
Source
<xsl:param name="headerDirectory"/>
Stylesheet location tcp2tei.xsl
Variable HERE
Namespace No namespace
Select /
Source
<xsl:variable name="HERE" select="/"/>
Stylesheet location tcp2tei.xsl
Variable Rendition
Namespace No namespace
Used by
Template
Source
<xsl:variable name="Rendition">
  <tagsDecl>
    <xsl:for-each-group select="//GAP/@DISP" group-by=".">
      <rendition xml:id="{position()}">
        <xsl:value-of select="current-grouping-key()"/>
      </rendition>
    </xsl:for-each-group>
  </tagsDecl>
</xsl:variable>
Stylesheet location tcp2tei.xsl
Output (default)
Namespace No namespace
Output properties
method encoding indent cdata-section-elements omit-xml-declaration
xml utf-8 yes eg yes
Source
<xsl:output cdata-section-elements="eg" indent="yes" method="xml" encoding="utf-8" omit-xml-declaration="yes"/>
Stylesheet location tcp2tei.xsl
Key ROLES
Namespace No namespace
Match ITEM/@ROLE
Use 1
Used by
Template
Source
<xsl:key name="ROLES" match="ITEM/@ROLE" use="1"/>
Stylesheet location tcp2tei.xsl