<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE xsl:stylesheet [
	<!ENTITY auml "&#228;">
	<!ENTITY Auml "&#196;">
	<!ENTITY ouml "&#246;">
	<!ENTITY Ouml "&#214;">
	<!ENTITY uuml "&#252;">
	<!ENTITY Uuml "&#220;">
	<!ENTITY szlig "&#223;">
	<!ENTITY nbsp "&#xA;">
	<!ENTITY bull "&#8226;">
]>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:Date="java:java.util.Date" exclude-result-prefixes="saxon Date">
	<xsl:strip-space elements="*"/>
	<xsl:output method="saxon:xhtml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes" encoding="iso-8859-1" saxon:character-representation="entity"/>
	<xsl:variable name="stylesheetname" select="'http://purl.org/sichtungen/sichtprint-xml2html.xsl'"/>
	<xsl:variable name="stylesheetversion" select="'0.6.1'"/>
	<xsl:variable name="stylesheetdate" select="'2004-01-14'"/>
	<xsl:variable name="stylesheetcreator" select="'mka'"/>
	<xsl:variable name="stylesheetcopyright" select="'Copyright (C) 2001-2004 by Max Kaiser'"/>
	<xsl:variable name="prozessor">
		<xsl:value-of select="system-property('xsl:vendor')"/>
	</xsl:variable>
	<xsl:script language="java" implements-prefix="Date" src="java:java.util.Date"/>
	<xsl:variable name="datum" select="Date:toString(Date:new())"/>
	<xsl:variable name="typ">
		<xsl:choose>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.1')">Beitr&#x00E4;ge</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.2')">Rezensionen</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.4')">Berichte</xsl:when>
		</xsl:choose>
	</xsl:variable>
	<xsl:variable name="subtyp">
		<xsl:choose>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.1'">Aufs&#x00E4;tze</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.2'">Fundst&#x00FC;cke</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.3'">Agora</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.1'">Institutionen</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.2'">Projekte</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.3'">Editionen</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.4'">Kommissionen</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.5'">Tagungen</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.6'">Nachl&#x00E4;sse</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.7'">Archivpraxis</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.8'">Ausstellungen</xsl:when>
		</xsl:choose>
	</xsl:variable>
	<xsl:variable name="link1">
		<xsl:choose>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.1')">beitraege.html</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.2')">rezensionen.html</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.4')">berichte.html</xsl:when>
		</xsl:choose>
	</xsl:variable>
	<xsl:variable name="link2">
		<xsl:choose>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.1'">aufsaetze.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.2'">fundstuecke.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.1.3'">agora.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.1'">institutionen.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.2'">projekte.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.3'">editionen.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.4'">kommissionen.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.5'">tagungen.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.6'">nachlaesse.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.7'">archivpraxis.html</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.8'">ausstellungen.html</xsl:when>
		</xsl:choose>
	</xsl:variable>
	<xsl:variable name="dir">
		<xsl:choose>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.0')">docs</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.1')">beitraege</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.2')">rezensionen</xsl:when>
			<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.4')">berichte</xsl:when>
		</xsl:choose>
	</xsl:variable>
	<xsl:variable name="zitat1">
		<xsl:for-each select="//titleStmt/author[@n='creator']/name[@type='person']">
			<xsl:value-of select="."/>
			<xsl:choose>
				<xsl:when test="position() != last()">
					<xsl:text> / </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>: </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen'] != 's.4.1'">
				<xsl:value-of select="//titleStmt/title[@type='main']"/>
				<xsl:if test="//titleStmt/title[@type='sub'][text()]">
					<xsl:text>. </xsl:text>
					<xsl:value-of select="//titleStmt/title[@type='sub']"/>
				</xsl:if>
			</xsl:when>
			<xsl:when test="//textClass/classCode[@scheme='sichtungen']='s.4.1'">
				<xsl:text>Mitteilungen: </xsl:text>
				<xsl:value-of select="//titleStmt/title[@type='main']"/>
				<xsl:text> [</xsl:text>
				<xsl:for-each select="//sourceDesc/bibl/title[@type='short']">
					<xsl:value-of select="./@n"/>
					<xsl:choose>
						<xsl:when test="position() != last()">
							<xsl:text> / </xsl:text>
						</xsl:when>
						<xsl:otherwise>
							<xsl:text>]</xsl:text>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
			</xsl:when>
		</xsl:choose>
		<xsl:variable name="date">
			<xsl:value-of select="//revisionDesc/change[last()]/date"/>
		</xsl:variable>
		<xsl:text> (</xsl:text>
		<xsl:value-of select="concat(substring($date,9,2),'. ',substring($date,6,2),'. ',substring($date,1,4))"/>
		<xsl:text>). In: Sichtungen online, PURL: </xsl:text>
		<xsl:value-of select="concat(substring(//publicationStmt/idno[@type='PURL'],1,(string-length(//publicationStmt/idno[@type='PURL'])-3)),'html')"/>
	</xsl:variable>
	<xsl:variable name="zitat2">
		<xsl:if test="//sourceDesc/bibl/@n='DC.relation.isFormatOf'">
			<xsl:text> - Auch in: </xsl:text>
			<xsl:for-each select="//sourceDesc/bibl[@n='DC.relation.isFormatOf']">
				<xsl:value-of select="title[@type='short']"/>
				<xsl:text>, </xsl:text>
				<xsl:value-of select="biblScope"/>
				<xsl:if test="title[@type='short'][@n !='']">
					<xsl:text> [</xsl:text>
					<xsl:value-of select="title[@type='short']/@n"/>
					<xsl:text>]</xsl:text>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="position() != last()">
						<xsl:text>; </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:text>.</xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:if>
	</xsl:variable>
	<xsl:variable name="zitat">
		<xsl:value-of select="$zitat1"/>
			<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
					<xsl:text> ([current date]).</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text> ([aktuelles Datum]).</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		<xsl:value-of select="$zitat2"/>
	</xsl:variable>
	<xsl:template match="/">
		<html>
			<head>
				<xsl:comment>DIES IST EINE AUTOMATISCH GENERIERTE HTML-DATEI. AENDERN SIE NICHT DIESE DATEI, SONDERN DEN XML-MASTER!</xsl:comment>
				<xsl:comment>XML-MASTER: <xsl:value-of select="//publicationStmt/idno[@type='PURL']"/>
				</xsl:comment>
				<xsl:comment>XSLT-STYLESHEET: <xsl:value-of select="$stylesheetname"/>, Vers. <xsl:value-of select="$stylesheetversion"/>, <xsl:value-of select="$stylesheetcopyright"/>
				</xsl:comment>
				<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
				<meta http-equiv="content-language" content="{//langUsage/language}"/>
				<!-- Metadaten -->
				<xsl:comment>Robots</xsl:comment>
				<link rel="meta" href="../meta/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-print.rdf')}"/>
				<xsl:apply-templates select="//titleStmt" mode="meta"/>
				<xsl:apply-templates select="//profileDesc/textClass/keywords" mode="meta"/>
				<xsl:apply-templates select="//publicationStmt" mode="meta"/>
				<xsl:apply-templates select="//revisionDesc" mode="meta"/>
				<meta name="robots" content="index, follow"/>
				<!-- DC -->
				<xsl:comment>Dublin Core</xsl:comment>
				<xsl:apply-templates select="//titleStmt" mode="DC"/>
				<xsl:apply-templates select="//profileDesc/textClass/keywords" mode="DC"/>
				<xsl:apply-templates select="//publicationStmt" mode="DC"/>
				<xsl:apply-templates select="//titleStmt" mode="DCcontributor"/>
				<xsl:apply-templates select="//revisionDesc" mode="DC"/>
				<meta name="DC.Type" scheme="DCMIType" content="Text"/>
				<meta name="DC.Format" scheme="IMT" content="html"/>
				<meta name="DC.Identifier" scheme="PURL" content="{concat(substring(//publicationStmt/idno[@type='PURL'],1,(string-length(//publicationStmt/idno[@type='PURL'])-4)),'-print.html')}"/>
				<xsl:apply-templates select="//langUsage" mode="DC"/>
				<xsl:apply-templates select="//seriesStmt" mode="DC"/>
				<meta name="DC.Relation.isVersionOf" scheme="PURL" content="{concat(substring(//publicationStmt/idno[@type='PURL'],1,(string-length(//publicationStmt/idno[@type='PURL'])-5)),'.html')}"/>
				<xsl:if test="//publicationStmt/availability/p[@n='DC.relation.replaces'][text()]">
					<meta name="DC.Relation.replaces" scheme="PURL" content="{concat(substring(//publicationStmt/availability/p[@n='DC.relation.replaces'],1,(string-length(//publicationStmt/availability/p[@n='DC.relation.replaces'])-4)),'-print.html')}"/>
				</xsl:if>
				<xsl:if test="//publicationStmt/availability/p[@n='DC.relation.isReplacedBy'][text()]">
					<meta name="DC.Relation.isRelacedBy" scheme="PURL" content="{concat(substring(//publicationStmt/availability/p[@n='DC.relation.isReplacedBy'],1,(string-length(//publicationStmt/availability/p[@n='DC.relation.isReplacedBy'])-4)),'-print.html')}"/>
				</xsl:if>
				<meta name="DC.Relation.isFormatOf" scheme="PURL" content="{//publicationStmt/idno[@type='PURL']}"/>
				<meta name="DC.Relation.isFormatOf" scheme="PURL" content="{concat(substring(//publicationStmt/idno[@type='PURL'],1,(string-length(//publicationStmt/idno[@type='PURL'])-4)),'.html')}"/>
				<xsl:if test="//p/xref/figure">
					<xsl:call-template name="requires"/>
				</xsl:if>
				<xsl:apply-templates select="//sourceDesc" mode="DC"/>
				<meta name="DC.Rights" content="{//publicationStmt/availability/p[not(@n='DC.relation.isReplacedBy') and not(@n='DC.relation.replaces')]}"/>
				<!-- Titel -->
				<title>Sichtungen online<xsl:call-template name="title"/>
				</title>
				<!-- CSS -->
				<link rel="stylesheet" href="../stylesheets/sichtprint-style2.css" type="text/css"/>
				<!-- Scripts -->
				<script language="JavaScript" type="text/javascript">
					<xsl:comment>
						<xsl:text>
              var zitat="</xsl:text>
						<xsl:value-of select="normalize-space($zitat)"/>
						<xsl:text>"; 
          // </xsl:text>
					</xsl:comment>
				</script>
				<script language="JavaScript" type="text/javascript" src="../scripts/popupscript1.js">
					<xsl:text/>
				</script>
				<script language="JavaScript" type="text/javascript" src="../scripts/closepopupscript1.js">
					<xsl:text/>
				</script>
			</head>
			<body bgcolor="#FFFFFF" onunload="Javascript:closeremote();">
				<a name="top"/>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="75%" align="center" valign="bottom">
							<a href="../index.html">
								<img height="78" width="346" src="../logos/Sichtungen_Logo_UT_schw3.gif" align="left" border="0" alt="Sichtungen. Archiv - Bibliothek - Literaturwissenschaft"/>
							</a>
						</td>
						<td width="25%" class="marginal" align="right" valign="bottom">ISSN: 1680-8975<br/>PURL: http://purl.org/sichtungen/</td>
					</tr>
				</table>
				<hr size="1"/>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="breadcrumb"/>
					</tr>
				</table>
				<hr size="1"/>
				<table border="0" cellpadding="0" cellspacing="2" width="100%">
					<tr>
						<td width="100%" class="marginal"><br />
							<xsl:value-of select="normalize-space($zitat)"/><br />
						</td>
					</tr>
				</table>
				<hr size="1"/>
				<table border="0" cellpadding="0" cellspacing="2" width="100%">
					<tr>
						<td width="100%" class="tabellegrau">
							<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/author" mode="address"/>
						</td>
					</tr>
				</table>
				<hr size="1"/>
				<table border="0" cellpadding="0" cellspacing="2" width="100%">
					<tr>
						<td width="100%">
							<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="doctitle"/>
							<h2 align="center">
								<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/author[@n='creator']" mode="author"/>
							</h2>
							<xsl:if test="//publicationStmt/availability/p[@n='DC.relation.isReplacedBy'][text()]">
								<p align="center">
									<img src="../logos/obsolete.gif" height="30" width="129" alt="alte Version"/>
								</p>
							</xsl:if>
							<xsl:if test="//sourceDesc/bibl[@n='preprint']">
								<p>
									<img src="../logos/preprint_1.gif" height="30" width="94" alt="Preprint"/>
								</p>
							</xsl:if>
						</td>
					</tr>
				</table>
				<xsl:apply-templates select="TEI.2/text/body/div"/>
				<br />
				<br />
				<hr size="1"/>
				<table border="0" class="tabellegrau" cellpadding="0" cellspacing="0" width="100%">
					<tr><td width="4%"/>
						<td width="36%" class="marginal" valign="top" nowrap="nowrap">												<xsl:choose>
								<xsl:when test="//profileDesc/langUsage/language='en'">
									<xsl:apply-templates select="//sourceDesc" mode="left"/>PURL of this document:<br/>Metadata to this document:<br />XML-Master of this document:<br/>Date of XML-Master:<br/>PURL of the underlying HTML-document:<br/>
									<xsl:apply-templates select="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="left"/>Most current version of underlying HTML-document:<br/>Metadata to the underlying HTML-document:
								</xsl:when>
								<xsl:otherwise>
									<xsl:apply-templates select="//sourceDesc" mode="left"/>PURL dieser Datei:<br/>Metadaten zu dieser Datei:<br />XML-Master dieser Datei:<br/>Datum XML-Master:<br/>PURL der zugrundeliegenden HTML-Datei:<br/>
									<xsl:apply-templates select="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="left"/>Aktuellste Version der zugrundeliegenden HTML-Datei:<br/>Metadaten zur zugrundeliegenden HTML-Datei:
								</xsl:otherwise>
							</xsl:choose>
						</td>
						<td width="56%" class="marginal" align="right" valign="top" nowrap="nowrap">
							<xsl:apply-templates select="//sourceDesc/bibl" mode="right"/>
							<xsl:apply-templates select="//publicationStmt" mode="PURL_this"/>
							<xsl:apply-templates select="//publicationStmt" mode="rdf_this"/>
							<xsl:apply-templates select="//publicationStmt" mode="xml"/>
							<xsl:value-of select="//revisionDesc/change[last()]/date"/><br/>
							<xsl:apply-templates select="//publicationStmt" mode="PURL"/>

							
							<xsl:apply-templates select="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="right"/>
							<xsl:apply-templates select="//publicationStmt" mode="last"/>
							<xsl:apply-templates select="//publicationStmt" mode="rdf"/>
						</td>
						<td width="4%"/>
					</tr>
				</table>
				<hr size="1"/>
				<!-- BEGINN FUSSTEIL -->
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="4%"/>
						<td width="76%">
							<br/>
							<p class="marginal">
								<a href="../docs/copyright.html" title="Copyright-Hinweis">Copyright</a> 2001-2004 by Sichtungen online
            <br/>
								<xsl:apply-templates select="//revisionDesc"/>
								<br/>
								<a href="mailto:max.kaiser@onb.ac.at" title="Mail an den Webmaster">[Webmaster]</a>
								<xsl:text>&#xA;&#xA;&#xA;</xsl:text>
								<a href="../docs/disclaimer.html" title="Disclaimer - Haftungsausschlu&szlig;">[Disclaimer]</a>
							</p>
						</td>
						<td width="16%" align="right">
							<!-- BEGINN XHTML-Validator -->
							<a href="http://validator.w3.org/check/referer">
								<img border="0" src="../logos/valid-xhtml-kl10.gif" alt="Valid XHTML 1.0!" height="21" width="60" align="top"/>
							</a>
							<!-- ENDE XHTML-Validator -->
						</td>
						<td width="4%"/>
					</tr>
				</table>
				<!-- ENDE FUSSTEIL -->
			</body>
		</html>
	</xsl:template>
	<xsl:template name="title">
		<xsl:if test="//fileDesc/titleStmt/title[@type='short']">
			<xsl:text> | </xsl:text>
			<xsl:value-of select="$typ"/>
			<xsl:text> | </xsl:text>
			<xsl:if test="$subtyp !=''">
				<xsl:value-of select="$subtyp"/>
				<xsl:text> | </xsl:text>
			</xsl:if>
			<xsl:value-of select="//fileDesc/titleStmt/title[@type='short']"/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="breadcrumb">
		<xsl:if test="@type='short'">
			<td class="marginal" valign="top" width="50%" nowrap="nowrap">
				<a href="../index.html" title="Home">Home</a>
				<xsl:text>&#xA;&gt;&#xA;</xsl:text>
				<a href="../docs/{$link1}" title="{$typ}">
					<xsl:value-of select="$typ"/>
				</a>
				<xsl:text>&#xA;&gt;&#xA;</xsl:text>
				<xsl:if test="$subtyp !=''">
					<a href="../docs/{$link2}" title="{$subtyp}">
						<xsl:value-of select="$subtyp"/>
					</a>
					<xsl:text>&#xA;&gt;&#xA;</xsl:text>
				</xsl:if>
				<span class="rot">
						<a href="../{$dir}/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'.html')}" title="{@type='short'}">
					<xsl:apply-templates/></a>
				</span>
				<xsl:text>&#xA;</xsl:text>
			</td>
		</xsl:if>
	</xsl:template>
	<xsl:template match="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="doctitle">
		<xsl:if test="@type='main'">
			<xsl:choose>
				<xsl:when test="$typ != 'Rezensionen'">
					<h1>
						<xsl:apply-templates/>
					</h1>
				</xsl:when>
				<xsl:otherwise>
					<h2 class="rez">
						<xsl:apply-templates/>
					</h2>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
		<xsl:if test="@type='sub'">
			<h2 align="center">
				<xsl:apply-templates/>
			</h2>
		</xsl:if>
	</xsl:template>
	<xsl:template match="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="subdoc">
		<xsl:if test="@type='main'">
			<xsl:choose>
				<xsl:when test="$typ != 'Rezensionen'">
					<h2 align="center">
						<xsl:apply-templates/>
					</h2>
				</xsl:when>
				<xsl:otherwise>
					<h2 class="rez">
						<xsl:apply-templates/>
					</h2>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
		<xsl:if test="@type='sub'">
			<h2 align="center">
				<xsl:apply-templates/>
			</h2>
		</xsl:if>
	</xsl:template>
	<xsl:template match="TEI.2/teiHeader/fileDesc/titleStmt/author" mode="address">
		<xsl:if test="name[@type='person'][text()]">
			<xsl:apply-templates select="name[@type='person']"/>
			<br/>
		</xsl:if>
		<xsl:if test="address/addrLine/name[@type='organisation'][text()]">
			<xsl:for-each select="address/addrLine/name[@type='organisation']">
				<xsl:value-of select="."/>
				<br/>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="address/addrLine/name[@type='street'][text()]">
			<xsl:apply-templates select="address/addrLine/name[@type='street']"/>
		</xsl:if>
		<xsl:if test="address/addrLine/name[@type='ZIP'][text()]">
			<xsl:if test="address/addrLine/name[@type='street'][text()]">
				<xsl:text>, </xsl:text>
			</xsl:if>
			<xsl:apply-templates select="address/addrLine/name[@type='ZIP']"/>
			<xsl:text>&#xA;</xsl:text>
			<xsl:apply-templates select="address/addrLine/name[@type='place']"/>
		</xsl:if>
		<xsl:if test="address/addrLine/name[@type='PB'][text()]">
			<xsl:text>, Postfach </xsl:text>
			<xsl:apply-templates select="address/addrLine/name[@type='PB']"/>
		</xsl:if>
		<xsl:if test="address/addrLine/name/@type='tel' and address/addrLine/name[@type='tel'] != ''">
			<br/>
			<xsl:text>Tel.: </xsl:text>
			<xsl:for-each select="address/addrLine/name[@type='tel']">
				<xsl:value-of select="."/>
				<xsl:if test="@key != ''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@key"/>
					<xsl:text>)</xsl:text>
				</xsl:if>
				<xsl:if test="position () != last ()">
					<xsl:text>, </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="address/addrLine/name/@type='fax' and address/addrLine/name[@type='fax'] != ''">
			<xsl:choose>
				<xsl:when test="address/addrLine/name[@type='tel'] = ''">
					<br/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>; </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:text>Fax: </xsl:text>
			<xsl:for-each select="address/addrLine/name[@type='fax']">
				<xsl:value-of select="."/>
				<xsl:if test="@key != ''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@key"/>
					<xsl:text>)</xsl:text>
				</xsl:if>
				<xsl:if test="position () != last ()">
					<xsl:text>, </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="address/addrLine/name/@type='email' and address/addrLine/name[@type='email'] != ''">
			<br/>
			<xsl:text>Email: </xsl:text>
			<xsl:for-each select="address/addrLine/name[@type='email']">
				<xsl:variable name="mailto">
					<xsl:value-of select="."/>
				</xsl:variable>
				<a href="mailto:{$mailto}" title="{$mailto}">
					<xsl:value-of select="$mailto"/>
				</a>
				<xsl:if test="@key != ''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@key"/>
					<xsl:text>)</xsl:text>
				</xsl:if>
				<xsl:if test="position () != last ()">
					<xsl:text>, </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="address/addrLine/name/@type='URL' and address/addrLine/name[@type='URL'] != ''">
			<xsl:choose>
				<xsl:when test="address/addrLine/name[@type='email'] = ''">
					<br/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>; </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:text>URL: </xsl:text>
			<xsl:for-each select="address/addrLine/name[@type='URL']">
				<xsl:variable name="URL">
					<xsl:value-of select="."/>
				</xsl:variable>
				<a href="{$URL}" title="{$URL}">
					<xsl:value-of select="$URL"/>
				</a>
				<xsl:if test="@key != ''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@key"/>
					<xsl:text>)</xsl:text>
				</xsl:if>
				<xsl:if test="position () != last ()">
					<xsl:text>, </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<br/>
		<xsl:if test="address/addrLine/name/@type='infotext' and address/addrLine/name[@type='infotext'] != ''">
			<xsl:apply-templates select="address/addrLine/name[@type='infotext']"/>
			<br/>
		</xsl:if>
		<xsl:if test="address/addrLine/date and address/addrLine/date != ''">
			<span class="marginal">
				<xsl:choose>
					<xsl:when test="//profileDesc/langUsage/language='en'"><xsl:text>Latest address update: </xsl:text></xsl:when>
					<xsl:otherwise><xsl:text>Letzte Adressaktualisierung: </xsl:text></xsl:otherwise>
				</xsl:choose>

				<xsl:apply-templates select="address/addrLine/date"/>
			</span>
			<br/>
		</xsl:if>
		<xsl:if test="position() != last()">
			<br/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="TEI.2/teiHeader/fileDesc/titleStmt/author[@n='creator']" mode="author">
		<xsl:if test="name/@type='person'">
			<xsl:apply-templates select="name[@type='person']"/>
			<xsl:if test="position() != last()">
				<xsl:text>&#xA;/&#xA;</xsl:text>
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<xsl:template match="front">
		<xsl:if test="docAuthor/name/@type='person'">
			<h2 align="center">
				<xsl:for-each select="docAuthor/name[@type='person']">
					<xsl:value-of select="."/>
					<xsl:if test="position() != last()">
						<xsl:text>&#xA;/&#xA;</xsl:text>
					</xsl:if>
				</xsl:for-each>
			</h2>
		</xsl:if>
	</xsl:template>
	<xsl:template match="div[not(ancestor::div)]">
		<br/>
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td width="100%">
					<xsl:choose>
						<xsl:when test="@type='abstract'">
							<div class="abstract">
								<xsl:apply-templates/>
							</div>
						</xsl:when>
						<xsl:otherwise>
							<xsl:apply-templates/>
						</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="head">
		<xsl:element name="{@type}">
			<xsl:apply-templates/>
			<xsl:if test="@n='preprint'">
				<xsl:text>&#xA;&#xA;</xsl:text>
				<img src="../logos/preprint_2.gif" height="15" width="48" align="top" alt="Preprint"/>
			</xsl:if>
		</xsl:element>
	</xsl:template>
	<xsl:template match="p[not(descendant::table) and not(descendant::xref/figure) and not(parent::q)]">
		<p>
			<xsl:if test="@rend='left' or @rend='right'">
				<xsl:attribute name="align"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:if test="@rend='indent'">
				<xsl:attribute name="class"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:apply-templates/>
		</p>
	</xsl:template>
	<xsl:template match="div/div[@type='app']">
		<br/>
		<hr size="1"/>
		<xsl:for-each select="p">
			<p class="app">
				<xsl:apply-templates/>
			</p>
		</xsl:for-each>
		<hr size="1"/>
	</xsl:template>
	<xsl:template match="pb">
		<span class="pb">
			<xsl:text> [</xsl:text>
			<xsl:value-of select="@ed"/>
			<xsl:text>/ S. </xsl:text>
			<xsl:value-of select="@n"/>
			<xsl:text>:] </xsl:text>
		</span>
	</xsl:template>
	<xsl:template match="lb">
		<xsl:apply-templates/>
		<br/>
	</xsl:template>
	<xsl:template match="hi">
		<!-- "i"; "b"; "line-through"; "super" -->
		<span class="{@rend}">
			<xsl:apply-templates/>
		</span>
	</xsl:template>
	<xsl:template match="add">
		<span class="add">
			<xsl:value-of select="."/>
		</span>
	</xsl:template>
	<xsl:template match="list[@type='bulleted']">
		<ul>
			<xsl:for-each select="item">
				<li>
					<xsl:apply-templates/>
				</li>
			</xsl:for-each>
		</ul>
	</xsl:template>
	<xsl:template match="list[@type='simple']">
		<dl>
			<xsl:for-each select="head">
				<dt>
					<xsl:apply-templates/>
				</dt>
			</xsl:for-each>
			<xsl:for-each select="item">
				<dd>
					<xsl:apply-templates/>
				</dd>
			</xsl:for-each>
		</dl>
	</xsl:template>
	<xsl:template match="table">
		<table width="{@rend}">
			<xsl:for-each select="row">
				<tr>
					<xsl:for-each select="cell">
						<td width="{@rend}">
							<xsl:apply-templates/>
						</td>
					</xsl:for-each>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
	<xsl:template match="ref[not(@type='abbr') and not(@type='abb')]">
		<xsl:variable name="targ" select="@target"/>
		<a>
			<xsl:attribute name="name"><xsl:text>ref-</xsl:text><xsl:value-of select="@target"/></xsl:attribute>
		</a>
		<a>
			<xsl:attribute name="href"><xsl:text>#</xsl:text><xsl:value-of select="@target"/></xsl:attribute>
			<xsl:attribute name="title"><xsl:value-of select="//note[@id=$targ]/seg"/><xsl:text>] </xsl:text><xsl:value-of select="normalize-space(//note[@id=$targ]/p)"/></xsl:attribute>
			<xsl:text>[</xsl:text>
			<xsl:apply-templates/>
			<xsl:text>]</xsl:text>
		</a>
	</xsl:template>
	<xsl:template match="ref[@type='abbr']">
		<xsl:variable name="targ" select="@target"/>
		<a>
			<xsl:attribute name="href"><xsl:text>#</xsl:text><xsl:value-of select="@target"/></xsl:attribute>
			<xsl:attribute name="title"><xsl:value-of select="normalize-space(//note[@type='abbr' and @id=$targ])"/></xsl:attribute>
			<xsl:apply-templates/>
		</a>
	</xsl:template>
	<xsl:template match="ref[@type='abb']">
		<xsl:variable name="targ" select="@target"/>
		<a>
			<xsl:attribute name="href"><xsl:text>#</xsl:text><xsl:value-of select="@target"/></xsl:attribute>
			<xsl:attribute name="title"><xsl:value-of select="normalize-space(//xref/figure[@id=$targ]/p)"/></xsl:attribute>
			<xsl:apply-templates/>
		</a>
	</xsl:template>
	<xsl:template match="xref[@type='url']">
		<a href="{@n}" title="{.}">
			<xsl:value-of select="."/>
		</a>
	</xsl:template>
	<xsl:template match="note[not(@type='abbr')]">
		<p class="note">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
			</a>
			<a>
				<xsl:attribute name="href"><xsl:text>#ref-</xsl:text><xsl:value-of select="@id"/></xsl:attribute>
					<xsl:choose>
						<xsl:when test="//profileDesc/langUsage/language='en'">
							<xsl:attribute name="title">back to text</xsl:attribute>
						</xsl:when>
						<xsl:otherwise>
							<xsl:attribute name="title">Zur&uuml;ck zum Text</xsl:attribute>
						</xsl:otherwise>
					</xsl:choose>

				<xsl:apply-templates select="seg"/>
				<xsl:text>]</xsl:text>
			</a>
			<xsl:text>&#xA;</xsl:text>
			<xsl:for-each select="p">
				<xsl:apply-templates/>
				<xsl:if test="position () != last ()">
					<br/>
				</xsl:if>
			</xsl:for-each>
		</p>
	</xsl:template>
	<xsl:template match="note[@type='abbr']">
		<a>
			<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
		</a>
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="cit/q[@rend='indent']/p">
		<p class="quote">
			<xsl:if test="@rend='left' or @rend='right'">
				<xsl:attribute name="align"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:apply-templates/>
		</p>
	</xsl:template>
	<xsl:template match="q[not(parent::cit) and not(@who='aut1')]/p">
		<p class="agora">
			<xsl:if test="@rend">
				<xsl:attribute name="align"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:apply-templates/>
		</p>
	</xsl:template>
	<xsl:template match="q[not(parent::cit) and @who='aut1']/p">
		<p>
			<xsl:if test="@rend='left' or @rend='right'">
				<xsl:attribute name="align"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:if test="@rend='indent'">
				<xsl:attribute name="class"><xsl:value-of select="@rend"/></xsl:attribute>
			</xsl:if>
			<xsl:apply-templates/>
		</p>
	</xsl:template>
	<xsl:template match="p/xref/figure">
		<xsl:variable name="abb">
			<xsl:number level="any"/>
		</xsl:variable>
		<xsl:variable name="anz_abb">
			<xsl:value-of select="count(//p/xref/figure)"/>
		</xsl:variable>
		<xsl:variable name="sub">
			<xsl:value-of select="concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-sub-',$abb,'.html')"/>
		</xsl:variable>
		<xsl:variable name="size">
			<xsl:value-of select="substring-after(@rend, ';')"/>
		</xsl:variable>
		<xsl:variable name="alt">
			<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
					<xsl:text>Fig. </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Abb. </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:value-of select="$abb"/>
			<xsl:text>: </xsl:text>
			<xsl:value-of select="normalize-space(p)"/>
			<xsl:if test="figDesc">
				<xsl:text> [</xsl:text>
				<xsl:for-each select="figDesc/name/name">
					<xsl:value-of select="normalize-space(node())"/>
					<xsl:if test="position() != last()">
						<xsl:text>/</xsl:text>
					</xsl:if>
				</xsl:for-each>
				<xsl:text>]</xsl:text>
			</xsl:if>
			<xsl:text>. </xsl:text>
			<xsl:if test="not(//sourceDesc/bibl[@n='preprint'])">
				<xsl:text>In: Sichtungen </xsl:text>
				<xsl:value-of select="substring-before(@n, '/')"/>
				<xsl:text>, S. </xsl:text>
				<xsl:value-of select="substring-after(@n, '/')"/>
			</xsl:if>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="parent::xref">
				<xsl:if test="@id">
					<a name="{@id}"/>
				</xsl:if>
				<img src="../img/{@entity}.jpg" border="0" hspace="10" alt="{$alt}" width="{substring-before($size, ';')}" height="{substring-after($size, ';')}" align="{substring-before(@rend, ';')}"/>
			</xsl:when>
			<xsl:otherwise>
				<img src="../img/{@entity}.jpg" border="0" hspace="10" alt="{p}" width="{substring-before($size, ';')}" height="{substring-after($size, ';')}" align="{substring-before(@rend, ';')}"/>
			</xsl:otherwise>
		</xsl:choose>
		<p class="bildpara">
			<span class="marginal">
				<xsl:choose>
					<xsl:when test="//profileDesc/langUsage/language='en'">
						<xsl:text>Fig. </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:text>Abb. </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:value-of select="$abb"/>
				<xsl:text>.</xsl:text>
				<br/>
				<xsl:for-each select="p">
					<xsl:apply-templates/>
					<br/>
				</xsl:for-each>
			<xsl:for-each select="figDesc/name/name">
					<xsl:apply-templates/>
					<br/>
				</xsl:for-each>
				<xsl:if test="not(//sourceDesc/bibl[@n='preprint'])">
				<xsl:text>[</xsl:text>
				<xsl:value-of select="substring-before(@n, '/')"/>
				<xsl:text>/ S. </xsl:text>
				<xsl:value-of select="substring-after(@n, '/')"/>
				<xsl:text>]</xsl:text>
				<br/>
				</xsl:if>
			</span>
		</p>
	</xsl:template>
	<xsl:template match="div/head" mode="toc">
		<xsl:variable name="hnr">
			<xsl:number level="any"/>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="@type='h2'">
				<span class="toc-h2">
					<xsl:text>&bull; </xsl:text>
				</span>
			</xsl:when>
			<xsl:otherwise>
				<span class="toc-h3">
					<xsl:text>&#8212;&#xA;</xsl:text>
				</span>
			</xsl:otherwise>
		</xsl:choose>
		<a>
			<xsl:attribute name="href">#h.<xsl:value-of select="$hnr"/></xsl:attribute>
			<xsl:attribute name="class"><xsl:choose><xsl:when test="@type='h2'"><xsl:text>toc-h2</xsl:text></xsl:when><xsl:otherwise><xsl:text>toc-h3</xsl:text></xsl:otherwise></xsl:choose></xsl:attribute>
			<xsl:value-of select="node()"/>
		</a>
		<xsl:if test="@n='preprint'">
			<xsl:text>&#xA;&#xA;</xsl:text>
			<img src="../logos/preprint_2.gif" height="15" width="48" align="top" alt="Preprint"/>
		</xsl:if>
		<br/>
	</xsl:template>
	<xsl:template match="revisionDesc">
HTML-Datei automatisch generiert am <xsl:value-of select="concat (substring ($datum, 1,4), substring ($datum, 9,2), '. ', substring ($datum, 5,3), '. ', substring ($datum, 31,4), ', ', substring ($datum, 12,5), ' Uhr')"/><br/> XSLT-Stylesheet: <a href="../stylesheets/{substring($stylesheetname,28,(string-length($stylesheetname)-27))}">
			<xsl:value-of select="$stylesheetname"/>
		</a>, Vers.  <xsl:value-of select="$stylesheetversion"/>, erstellt am <xsl:value-of select="$stylesheetdate"/> durch <xsl:value-of select="$stylesheetcreator"/><br/>Parser: &quot;<xsl:value-of select="$prozessor"/>&quot;<br/>TEI/XML-Master: <a href="{substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-27))}">
			<xsl:value-of select="//publicationStmt/idno[@type='PURL']"/>
		</a>, erstellt am <xsl:value-of select="change[1]/date"/> durch <xsl:value-of select="change[1]/respStmt/name/name[@type='short']"/>
		<xsl:if test="change/@id !='ch1'">, zuletzt ge&#x00E4;ndert am <xsl:value-of select="change[last()]/date"/> durch <xsl:value-of select="change[last()]/respStmt/name/name[@type='short']"/>
		</xsl:if>
		<br/>
		Version History:
		<xsl:for-each select="change">
		<br/>
		<xsl:text>&#xA;&#xA;&#xA;&#xA;</xsl:text><xsl:value-of select="@id"/>)<xsl:text>&#xA;</xsl:text><xsl:value-of select="date"/><xsl:text>:&#xA;</xsl:text><xsl:value-of select="item[1]"/><xsl:text>&#xA;/&#xA;</xsl:text><xsl:value-of select="respStmt/name/name[@type='short']"/>
		</xsl:for-each>
</xsl:template>
	<xsl:template match="sourceDesc" mode="left">
		<xsl:for-each select="bibl">
			<xsl:if test="@id='s1'">
				<xsl:text>Printversion:</xsl:text>
			</xsl:if>
			<xsl:text>&#xA;</xsl:text>
			<br/>
		</xsl:for-each>
	</xsl:template>
	<xsl:template match="sourceDesc/bibl" mode="right">
		<xsl:if test="title[@type='short']/@n != ''">
			<xsl:apply-templates select="title[@type='short']/@n"/>
			<xsl:text>:&#xA;</xsl:text>
		</xsl:if>
		<xsl:if test="@n='DC.relation.isFormatOf'">
			<xsl:apply-templates select="title[@type='short']"/>
			<xsl:text>,&#xA;</xsl:text>
			<xsl:apply-templates select="biblScope"/>
		</xsl:if>
		<xsl:if test="@n='preprint'">
			<img src="../logos/preprint_2.gif" height="15" width="48" align="top" alt="Preprint"/>
		</xsl:if>
		<br/>
	</xsl:template>
	<xsl:template match="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="left">
		<xsl:if test="text()">
			<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
					<span class="rot">Underlying HTML-document replaces:</span>
				</xsl:when>
				<xsl:otherwise>
					<span class="rot">Zugrundeliegende HTML-Datei Ersatz von:</span>
				</xsl:otherwise>
			</xsl:choose>
			<br/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="right">
		<xsl:if test="text()">
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
					<a href="{concat(substring(node(),28,(string-length(node())-30)),'html')}" title="Underlying HTML-document replaces">
						<xsl:value-of select="concat(substring(node(),1,(string-length(node())-3)),'html')"/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<a href="{concat(substring(node(),28,(string-length(node())-30)),'html')}" title="Zugrundeliegende HTML-Datei Ersatz von">
						<xsl:value-of select="concat(substring(node(),1,(string-length(node())-3)),'html')"/>
					</a>
				</xsl:otherwise>
			</xsl:choose>
			<br/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="PURL">
	
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="{concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'html')}" title="PURL of the underlying HTML-document">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'html')"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="{concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'html')}" title="PURL der zugrundeliegenden HTML-Datei">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'html')"/>
		</a>
				</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
		<xsl:template match="publicationStmt" mode="PURL_this">
		
			<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="{concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.html')}" title="PURL of this document">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.html')"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="{concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.html')}" title="PURL dieser Datei">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.html')"/>
		</a>
				</xsl:otherwise>
			</xsl:choose>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="xml">
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="../{$dir}/{substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-27))}" title="XML-Master of this document">
			<xsl:value-of select="idno[@type='PURL']"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="../{$dir}/{substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-27))}" title="XML-Master dieser Datei">
			<xsl:value-of select="idno[@type='PURL']"/>
		</a>
				</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="last">
	
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="../{$dir}/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-32)),'.html')}" title="Most current version of the underlying HTML-document">
			<xsl:value-of select="substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-5))"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="../{$dir}/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-32)),'.html')}" title="Aktuellste Version der zugrundeliegenden HTML-Datei">
			<xsl:value-of select="substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-5))"/>
		</a>
				</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="rdf">
	
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="../meta/{concat(substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-30)),'rdf')}" title="Metadata to the underlying HTML-document">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'rdf')"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="../meta/{concat(substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-30)),'rdf')}" title="Metadaten zur zugrundeliegenden HTML-Datei">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'rdf')"/>
		</a>
				</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
		<xsl:template match="publicationStmt" mode="rdf_this">
		
		<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
			<a href="../meta/{concat(substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-31)),'-print.rdf')}" title="Metadata to this document">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.rdf')"/>
		</a>
				</xsl:when>
				<xsl:otherwise>
		<a href="../meta/{concat(substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-31)),'-print.rdf')}" title="Metadaten zu dieser Datei">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-4)),'-print.rdf')"/>
		</a>
				</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
	<!-- Metadaten -->
	<xsl:template match="titleStmt" mode="DC">
		<meta name="DC.Title" content="{normalize-space(title[@type='main'])}"/>
		<xsl:if test="title[@type='sub'][text()]">
			<meta name="DC.Title.alternative" content="{normalize-space(title[@type='sub'])}"/>
		</xsl:if>
		<xsl:variable name="creator">
			<xsl:for-each select="author[@n='creator']/name">
				<xsl:value-of select="."/>
				<xsl:if test="position() != last()">
					<xsl:text>; </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:variable>
		<meta name="DC.Creator" content="{normalize-space($creator)}"/>
	</xsl:template>
	<xsl:template match="titleStmt" mode="DCcontributor">
		<xsl:if test="author[@n='contributor']">
			<xsl:variable name="contributor">
				<xsl:for-each select="author[@n='contributor']/name">
					<xsl:value-of select="."/>
					<xsl:if test="position() != last()">
						<xsl:text>; </xsl:text>
					</xsl:if>
				</xsl:for-each>
			</xsl:variable>
			<meta name="DC.Contributor" content="{normalize-space($contributor)}"/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="profileDesc/textClass/keywords" mode="DC">
		<xsl:if test="list/item[text()]">
			<meta name="DC.Subject" content="{normalize-space(list/item)}"/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="DC">
		<xsl:variable name="publisher">
			<xsl:for-each select="publisher/name">
				<xsl:value-of select="."/>
				<xsl:text>; </xsl:text>
			</xsl:for-each>
			<xsl:for-each select="authority/name[@type='editor']/name">
				<xsl:value-of select="."/>
				<xsl:if test="position() != last()">
					<xsl:text>; </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:variable>
		<meta name="DC.Publisher" content="{normalize-space($publisher)}"/>
	</xsl:template>
	<xsl:template match="revisionDesc" mode="DC">
		<meta name="DC.Date.created" scheme="iso-8601" content="{change[1]/date}"/>
		<xsl:if test="change/@id !='ch1'">
			<meta name="DC.Date.modified" scheme="iso-8601" content="{change[last()]/date}"/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="langUsage" mode="DC">
		<meta name="DC.Language" scheme="RFC-1766" content="{language}"/>
	</xsl:template>
	<xsl:template match="seriesStmt" mode="DC">
		<meta name="DC.Relation.isPartOf" content="{title[@type='short']}"/>
		<meta name="DC.Relation.isPartOf" scheme="PURL" content="{idno[@type='PURL']}"/>
		<meta name="DC.Relation.isPartOf" scheme="ISSN" content="{idno[@type='ISSN']}"/>
	</xsl:template>
	<xsl:template match="sourceDesc" mode="DC">
		<xsl:for-each select="bibl[@n='DC.relation.isFormatOf']">
			<xsl:variable name="print">
				<xsl:value-of select="title[@type='short']"/>
				<xsl:if test="biblScope[text()]">
					<xsl:text>, </xsl:text>
					<xsl:value-of select="biblScope"/>
				</xsl:if>
			</xsl:variable>
			<meta name="DC.Relation.isFormatOf" content="{normalize-space($print)}"/>
			<meta name="DC.Relation.isFormatOf" scheme="ISBN" content="{idno[@type='ISBN']}"/>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="requires">
		<xsl:for-each select="//p/xref/figure">
			<meta name="DC.Relation.requires" scheme="URL" content="../img/{@entity}.jpg"/>
		</xsl:for-each>
	</xsl:template>
	<!-- Metatags -->
	<xsl:template match="titleStmt" mode="meta">
		<xsl:variable name="creator">
			<xsl:for-each select="author/name">
				<xsl:value-of select="."/>
				<xsl:if test="position() != last()">
					<xsl:text>; </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:variable>
		<meta name="author" content="{$creator}"/>
	</xsl:template>
	<xsl:template match="profileDesc/textClass/keywords" mode="meta">
		<xsl:if test="list/item[text()]">
			<meta name="keywords" lang="de" content="{normalize-space(list/item)}"/>
		</xsl:if>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="meta">
		<xsl:variable name="publisher">
			<xsl:for-each select="publisher/name">
				<xsl:value-of select="."/>
				<xsl:text>; </xsl:text>
			</xsl:for-each>
			<xsl:for-each select="authority/name[@type='editor']/name">
				<xsl:value-of select="."/>
				<xsl:if test="position() != last()">
					<xsl:text>; </xsl:text>
				</xsl:if>
			</xsl:for-each>
		</xsl:variable>
		<meta name="publisher" content="{normalize-space($publisher)}"/>
	</xsl:template>
	<xsl:template match="revisionDesc" mode="meta">
		<meta name="date" content="{change[last()]/date}"/>
	</xsl:template>
	<xsl:template name="subdoc">
		<xsl:document href="{$sub}">
			<html>
				<head>
					<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
					<meta http-equiv="content-language" content="{//langUsage/language}"/>
					<!-- CSS -->
					<link rel="stylesheet" href="../stylesheets/sicht-style1.css" type="text/css"/>
				</head>
				<body>
					<img src="{../@doc}"/>
				</body>
			</html>
		</xsl:document>
	</xsl:template>
</xsl:stylesheet>
