<?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/sichtcont-xml2html.xsl'"/>
	<xsl:variable name="stylesheetversion" select="'1.1.2'"/>
	<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="/">
		<!-- ERZEUGEN DER REDIRECT-DATEI / ANFANG-->
		<xsl:if test="not(//publicationStmt/availability/p[@n='DC.relation.isReplacedBy'][text()])">
			<xsl:document href="..\{$dir}\{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-32)),'.html')}">
				<html>
					<head>
						<title>redirect</title>
						<meta name="robots" content="noindex, follow"/>
						<meta http-equiv="refresh" content="0; url={concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-30)),'html')}"/>
					</head>
					<body>
						<p>Sollte Ihr Browser keine automatische Weiterleitung unterst&#x00FC;tzen, klicken Sie&#xA;<a href="{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-30)),'html')}" title="Zur aktuellsten Version der Datei">hier</a>, um zur aktuellsten Version der Datei zu gelangen.</p>
					</body>
				</html>
			</xsl:document>
		</xsl:if>
		<!-- / ENDE -->
		<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)),'.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'])-3)),'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'])-3)),'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'])-3)),'html')}"/>
				</xsl:if>
				<meta name="DC.Relation.isFormatOf" scheme="PURL" content="{//publicationStmt/idno[@type='PURL']}"/>
				<meta name="DC.Relation.hasFormat" scheme="URL" content="../print/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-print.html')}"/>
				<xsl:if test="//p/xref/figure">
					<xsl:call-template name="requires"/>
					<xsl:call-template name="hasPart"/>
				</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/sicht-style1.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>
				<!-- Abbildungsskript -->
				<xsl:if test="//p/xref/figure">
					<script language="JavaScript" type="text/javascript">
						<xsl:comment>
							<xsl:text>
function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
   if (remote.opener == null)
    remote.opener = window;
    remote.opener.name = orgName;
  return remote;
}
</xsl:text>
							<xsl:apply-templates select="//p/xref/figure" mode="script"/>
							<xsl:text>//</xsl:text>
						</xsl:comment>
					</script>
				</xsl:if>
				<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" class="bodydarkblue" width="100%">
					<tr class="top">
						<th colspan="2" width="100%" height="5"/>
					</tr>
					<tr class="top">
						<td width="4%"/>
						<td width="96%" nowrap="nowrap">
							<a href="../index.html" class="top" title="Home">Home</a>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<a href="../docs/inhalt.html" class="top" title="Inhalt">Inhalt</a>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.1')">
									<span class="topaktuell">
										<a href="../docs/beitraege.html" title="Beitr&auml;ge" class="top">Beitr&auml;ge</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/beitraege.html" title="Beitr&auml;ge" class="top">Beitr&auml;ge</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.2')">
									<span class="topaktuell">
										<a href="../docs/rezensionen.html" class="top" title="Rezensionen">Rezensionen</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/rezensionen.html" class="top" title="Rezensionen">Rezensionen</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="starts-with(//textClass/classCode[@scheme='sichtungen'],'s.4')">
									<span class="topaktuell">
										<a href="../docs/berichte.html" class="top" title="Berichte">Berichte</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/berichte.html" class="top" title="Berichte">Berichte</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<a href="../docs/information.html" class="top" title="Information">Information</a>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<a href="../docs/suche.html" class="top" title="Suche, Index">Suche, Index</a>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<a href="../docs/faq.html" class="top" title="FAQ">FAQ</a>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<a href="../docs/sitemap.html" class="top" title="Sitemap">Sitemap</a>
						</td>
					</tr>
					<tr class="top">
						<th colspan="2" width="100%" height="5"/>
					</tr>
				</table>
				<table border="0" cellpadding="0" cellspacing="0" class="bodygrey" width="100%">
					<tr>
						<th colspan="4" height="6" width="100%"/>
					</tr>
					<tr>
						<td width="4%"/>
						<td width="50%" align="left" valign="bottom">
							<a href="../index.html">
								<img height="71" width="346" src="../logos/Sichtungen_Logo_UT_blau5.jpg" align="middle" border="0" alt="Sichtungen. Archiv - Bibliothek - Literaturwissenschaft"/>
							</a>
						</td>
						<td width="42%" class="marginal" align="right" valign="bottom">ISSN: 1680-8975<br/>PURL: http://purl.org/sichtungen/</td>
						<td width="4%"/>
					</tr>
					<tr>
						<th colspan="4" height="8" width="100%"/>
					</tr>
				</table>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<th colspan="2" height="1" width="100%" class="spacer"/>
					</tr>
					<tr>
						<th colspan="2" height="6" width="100%"/>
					</tr>
					<tr>
						<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="breadcrumb"/>
					</tr>
					<tr>
						<th colspan="2" height="7" width="100%"/>
					</tr>
				</table>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="4%"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="1" width="2%" class="spacer"/>
						<td height="1" width="60%" class="spacer"/>
						<td height="1" width="2%" class="spacer"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td width="2%"/>
						<td width="26%"/>
						<td width="4%"/>
					</tr>
					<tr>
						<td width="4%"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td width="2%" class="white"/>
						<td width="60%" class="white">
							<br/>
							<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 align="center">
									<img src="../logos/preprint_1.gif" height="30" width="94" alt="Preprint"/>
								</p>
							</xsl:if>
							<p>
								<xsl:apply-templates select="//div/head" mode="toc"/>
							</p>
							<table border="0" class="white" cellpadding="0" cellspacing="0" width="100%">
								<tr>
									<th colspan="2" height="1" width="100%" class="spacer"/>
								</tr>
								<tr>
									<td width="40%" class="marginal" valign="top" nowrap="nowrap">
										<xsl:choose>
											<xsl:when test="//profileDesc/langUsage/language='en'">
												<xsl:apply-templates select="//sourceDesc" mode="left"/>PURL <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info PURL"/> of this document:<br/>TEI/XML-Master <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info TEI/XML-Master"/> of this document:<br/>Date of TEI/XML-Master:<br/>
										<xsl:apply-templates select="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="left"/>Most current version of this document:<br/>DC/RDF metadata <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info DC/RDF metadata"/> to this document:
											</xsl:when>
											<xsl:otherwise>
												<xsl:apply-templates select="//sourceDesc" mode="left"/>PURL <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info PURL"/> dieser Datei:<br/>TEI/XML-Master <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info TEI/XML-Master"/> dieser Datei:<br/>Datum TEI/XML-Master:<br/>
										<xsl:apply-templates select="//publicationStmt/availability/p[@n='DC.relation.replaces']" mode="left"/>Aktuellste Version dieser Datei:<br/>DC/RDF-Metadaten <img src="../logos/help.gif" align="bottom" height="11" width="12" alt="Info DC/RDF-Metadaten"/> zu dieser Datei:
											</xsl:otherwise>
										</xsl:choose>
										</td>
									<td width="60%" class="marginal" align="right" valign="top" nowrap="nowrap">
										<xsl:apply-templates select="//sourceDesc/bibl" mode="right"/>
										<xsl:apply-templates select="//publicationStmt" mode="PURL"/>
										<xsl:apply-templates select="//publicationStmt" mode="xml"/>
										<xsl:value-of select="//revisionDesc/change[last()]/date"/>
										<br/>
										<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>
								</tr>
								<tr>
									<th colspan="2" height="1" width="100%" class="spacer"/>
								</tr>
							</table>
							<br/>
							<xsl:apply-templates select="//div[not(ancestor::div) and position()=1]"/>
						</td>
						<td width="2%" class="white"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td width="2%"/>
						<td width="26%" valign="top">
							<table border="0" class="tabellerechts" cellpadding="0" cellspacing="0" width="100%">
								<tr>
									<td width="100%">
										<xsl:choose>
											<xsl:when test="//profileDesc/langUsage/language='en'">
	<a href="javascript:launchZitat()" title="Help for quotation">Help for quotation <img src="../logos/zitat_4.gif" alt="Help for quotation" border="0"/>
										</a>
											</xsl:when>
											<xsl:otherwise>
	<a href="javascript:launchZitat()" title="
	inweis">Zitierhinweis <img src="../logos/zitat_4.gif" alt="Zitierhinweis" border="0"/>
										</a>
											</xsl:otherwise>
										</xsl:choose>
									
									</td>
								</tr>
								<tr>
									<td width="100%">
										<xsl:choose>
											<xsl:when test="//profileDesc/langUsage/language='en'">
												<a href="../print/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-print.html')}" title="Prepare printout">Prepare printout <img src="../logos/print.gif" alt="Prepare printout" border="0"/>
												</a>
											</xsl:when>
											<xsl:otherwise>
												<a href="../print/{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-print.html')}" title="Textausdruck vorbereiten">Textausdruck vorbereiten <img src="../logos/print.gif" alt="Textausdruck vorbereiten" border="0"/>
												</a>
											</xsl:otherwise>
										</xsl:choose>

									</td>
								</tr>
								<tr>
									<td width="100%">
										<xsl:choose>
											<xsl:when test="//profileDesc/langUsage/language='en'">
												<a href="mailto:sichtungen@onb.ac.at?subject=Letter to the editors about: {normalize-space(//titleStmt/title[@type='short'])}" title="Letter to the editors">Letter to the editors <img src="../logos/email.gif" alt="Letter to the editors" border="0"/>
												</a>
											</xsl:when>
											<xsl:otherwise>
												<a href="mailto:sichtungen@onb.ac.at?subject=Leserbrief zu: {normalize-space(//titleStmt/title[@type='short'])}" title="Mail an die Redaktion">Mail an die Redaktion <img src="../logos/email.gif" alt="Mail an die Redaktion" border="0"/>
												</a>
											</xsl:otherwise>
										</xsl:choose>

									</td>
								</tr>
							</table>
							<p/>
							<table border="0" cellpadding="0" cellspacing="0" width="100%" class="white">
								<tr class="bodydarkblue">
									<td width="1%" height="16" class="top"/>
									<td width="99%" height="16" class="kleinweiss">
										<xsl:choose>
											<xsl:when test="//textClass/classCode[@scheme='sichtungen'] != 's.4.1'">
												<xsl:choose>
													<xsl:when test="//profileDesc/langUsage/language='en'">Contribution by:</xsl:when>
													<xsl:otherwise>Beitrag von:</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:otherwise>Institution</xsl:otherwise>
										</xsl:choose>
									</td>
									<td width="1%" class="top"/>
								</tr>
								<tr>
									<th colspan="3" width="100%" height="4"/>
								</tr>
								<tr>
									<td width="1%" class="top"/>
									<td width="98%" class="klein">
										<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/author" mode="address"/>
									</td>
									<td width="1%" class="top"/>
								</tr>
							</table>
						</td>
						<td width="4%"/>
					</tr>
				</table>
				<xsl:apply-templates select="//div[not(ancestor::div) and position() != 1]"/>
				
				<xsl:if test="//xref[@type='url'][@crdate]">
				
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td height="8" width="4%"/>
						<td height="8" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="8" width="2%" class="white"/>
						<td height="8" width="60%" class="white"/>
						<td height="8" width="2%" class="white"/>
						<td height="8" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="8" width="2%"/>
						<td height="8" width="26%"/>
						<td height="8" width="4%"/>
					</tr>
					<tr>
						<td height="1" width="4%"/>
						<td height="1" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<th colspan="3" height="1" width="64%" class="spacer"/>
						<td height="1" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="1" width="2%"/>
						<td height="1" width="26%"/>
						<td height="1" width="4%"/>
					</tr>
										<tr>
						<td height="8" width="4%"/>
						<td height="8" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="8" width="2%" class="white"/>
						<td height="8" width="60%" class="white"/>
						<td height="8" width="2%" class="white"/>
						<td height="8" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="8" width="2%"/>
						<td height="8" width="26%"/>
						<td height="8" width="4%"/>
					</tr>
					<tr>
						<td width="4%"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td width="2%" class="white"/>
						<td width="60%" class="white">
						<xsl:choose>
							<xsl:when test="//profileDesc/langUsage/language='en'">
								<h2>Hyperlinks to this document</h2>
							</xsl:when>
							<xsl:otherwise>
								<h2>Hyperlinks zu diesem Text</h2>
							</xsl:otherwise>
						</xsl:choose>
						
							<xsl:apply-templates select="//xref[@type='url']" mode="linkverz"/>
						</td>
						<td width="2%" class="white"/>
						<td width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td width="2%"/>
						<td width="26%"/>
						<td width="4%"/>
					</tr>
				</table>
				</xsl:if>
				
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td height="4" width="4%"/>
						<td height="4" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="4" width="2%" class="white"/>
						<td height="4" width="60%" class="white"/>
						<td height="4" width="2%" class="white"/>
						<td height="4" width="1" class="spacer">
							<img src="../logos/pixel.gif" alt="spacer"/>
						</td>
						<td height="4" width="2%"/>
						<td height="4" width="26%"/>
						<td height="4" width="4%"/>
					</tr>
				</table>
				
				<!-- BEGINN BOTTOM-MENUE -->
				<div align="center">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<th colspan="3" height="1" width="100%" class="spacer"/>
						</tr>
						<tr>
							<th colspan="3" height="6" width="100%"/>
						</tr>
						<tr class="kleingrau">
							<td width="7%"/>
							<td width="60%" align="center" class="marginal">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">[Zum Seitenanfang]</a>
							</td>
							<td width="33%"/>
						</tr>
						<tr>
							<td width="7%"/>
							<td width="60%" align="center" class="marginal">
								<a href="../index.html" title="Home">Home</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/inhalt.html" title="Inhalt">Inhalt</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/beitraege.html" title="Beitr&auml;ge">Beitr&auml;ge</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/rezensionen.html" title="Rezensionen">Rezensionen</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/berichte.html" title="Berichte">Berichte</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/information.html" title="Information">Information</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/suche.html" title="Suche, Index">Suche, Index</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/faq.html" title="FAQ">FAQ</a>
								<xsl:text>&#xA;|&#xA;</xsl:text>
								<a href="../docs/sitemap.html" title="Sitemap">Sitemap</a>
							</td>
							<td width="33%"/>
						</tr>
					</table>
				</div>
				<!-- ENDE BOTTOM-MENUE -->
				<!-- 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>
							<br/>
						</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 width="4%"/>
			<td class="blau" valign="top" width="96%" 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">
					<xsl:apply-templates/>
				</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'] != ''">

					<br/>

			<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'] != ''">

					<br/>

			<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>
		
		<xsl:if test="address/addrLine/name/@type='infotext' and address/addrLine/name[@type='infotext'] != ''">
		<br/>
			<xsl:apply-templates select="address/addrLine/name[@type='infotext']"/>
			
		</xsl:if>
		<xsl:if test="address/addrLine/date and address/addrLine/date != ''">
		<br/>
			<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>
		</xsl:if>
		<span class="marginal">
			<br/>
				<xsl:choose>
					<xsl:when test="//profileDesc/langUsage/language='en'">
						<a href="mailto:sichtungen@onb.ac.at?subject=Report change of address, document:: {//publicationStmt/idno[@type='PURL']}" title="report change of address">Report change of address <img src="../logos/email_klein.gif" height="9" width="11" border="0" alt="Report change of address"/>
						</a>
					</xsl:when>
					<xsl:otherwise>
						<a href="mailto:sichtungen@onb.ac.at?subject=Adressaenderung melden, Artikel: {//publicationStmt/idno[@type='PURL']}" title="Meldung Adress&auml;nderung">Adress&auml;nderung melden <img src="../logos/email_klein.gif" height="9" width="11" border="0" alt="Meldung Adress&auml;nderung"/>
						</a>
					</xsl:otherwise>
				</xsl:choose>

		</span>
		<xsl:if test="position() != last()">
			<br/>
			<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) and position() =1]">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td width="100%">
					<xsl:choose>
						<xsl:when test="@type='abstract'">
							<div class="abstract">
								<br />
								<xsl:apply-templates/>
								
							</div>
						</xsl:when>
						<xsl:otherwise>
							<xsl:apply-templates/>
						</xsl:otherwise>
					</xsl:choose>
				</td>
				<td width="4%" valign="top"/>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="div[not(ancestor::div) and position() !=1]">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<th rowspan="2" width="4%"/>
				<th rowspan="2" width="1" class="spacer">
					<img src="../logos/pixel.gif" alt="spacer"/>
				</th>
				<th rowspan="2" width="2%" class="white"/>
				<th rowspan="2" width="60%" class="white">
					<xsl:choose>
						<xsl:when test="@type='abstract'">
							<div class="abstract">
							<br />
								<xsl:apply-templates/>
							</div>
						</xsl:when>
						<xsl:otherwise>
							<xsl:apply-templates/>
						</xsl:otherwise>
					</xsl:choose>
				</th>
				<th rowspan="2" width="2%" class="white"/>
				<th rowspan="2" width="1" class="spacer">
					<img src="../logos/pixel.gif" alt="spacer"/>
				</th>
				<td width="2%" valign="top"/>
				<td width="26%" valign="top">
				<xsl:if test="count(p)>3 or count(note)>10 or count(p/table/row)>10">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" class="tabellerechts">
						<tr>
							<td width="100%" align="center" class="marginal" valign="top">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">
									<img src="../logos/Arrow_up_bl.gif" alt="Zur&uuml;ck zum Seitenanfang" border="0"/>
								</a>
							</td>
						</tr>
						<tr>
							<td width="100%" align="center" class="marginal" valign="top">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">Top</a>
							</td>
						</tr>
						<tr>
							<td align="left" class="marginal">
								<xsl:if test="//head[@type='h2'][text()]">
								
									<hr size="1"/>Inhalt:<br/>
																		
									<xsl:apply-templates select="//div/head" mode="toc"/>
									
								</xsl:if>
							</td>
						</tr>
					</table>
					</xsl:if>
				</td>
				<td width="4%" valign="top"/>
			</tr>
			<tr>
				<xsl:choose>
					<xsl:when test="position () =last()">
						<td width="2%" valign="bottom"/>
						<td width="26%" valign="bottom">
							<table border="0" cellpadding="0" cellspacing="0" width="100%" class="tabellerechts">
								<tr>
							<td width="100%" align="center" class="marginal" valign="top">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">
									<img src="../logos/Arrow_up_bl.gif" alt="Zur&uuml;ck zum Seitenanfang" border="0"/>
								</a>
							</td>
						</tr>
						<tr>
							<td width="100%" align="center" class="marginal" valign="top">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">Top</a>
							</td>
						</tr>
						<tr>
							<td align="left" class="marginal">
										<xsl:if test="//head[@type='h2'][text()]">
											<hr size="1"/>Inhalt:<br/>
											<xsl:apply-templates select="//div/head" mode="toc"/>
										</xsl:if>
									</td>
								</tr>
							</table>
						</td>
						<td width="4%" valign="bottom"/>
					</xsl:when>
					<xsl:otherwise>
						<td width="2%"/>
						<td width="26%"/>
						<td width="4%"/>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
		</table>
	</xsl:template>
	
	<xsl:template match="div/head">
		<xsl:variable name="hnr">
			<xsl:number level="any" count="div/head"/>
		</xsl:variable>

		<xsl:if test="not(parent::list)">
		<xsl:element name="{@type}">
			<a>
				<xsl:attribute name="name">h.<xsl:value-of select="$hnr"/></xsl:attribute>
			</a>
			<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:if test="$hnr != 1">
				<xsl:text>&#xA;&#xA;</xsl:text>
				
				
				<a>
					<xsl:attribute name="href">#h.<xsl:value-of select="$hnr - 1"/></xsl:attribute>
					<img src="../logos/Arrow_up_bl.gif" alt="Zum vorigen Abschnitt" border="0"/>
				</a>
				

				
			</xsl:if>
			<xsl:if test="$hnr != count(//div/head[not(descendant::list)])">
				<xsl:text>&#xA;&#xA;</xsl:text>
				<a>
					<xsl:attribute name="href">#h.<xsl:value-of select="$hnr + 1"/></xsl:attribute>
					<img src="../logos/Arrow_down_bl.gif" alt="Zum n&auml;chsten Abschnitt" border="0"/>
				</a>
			</xsl:if>
		</xsl:element>
		
		</xsl:if>
	</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">
		<xsl:variable name="pbnr">
			<xsl:number level="any"/>
		</xsl:variable>
		<a>
			<xsl:attribute name="name">pb<xsl:value-of select="$pbnr"/></xsl:attribute>
		</a>
		<xsl:if test="$pbnr != 1">
			<a>
				<xsl:attribute name="href">#pb<xsl:value-of select="$pbnr - 1"/></xsl:attribute>
				<img height="14" width="11" src="../logos/Arrow_left_bl.gif" alt="Zur vorigen Seite" border="0" align="bottom"/>
			</a>
		</xsl:if>
		<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:if test="$pbnr != count(//pb)">
			<a>
				<xsl:attribute name="href">#pb<xsl:value-of select="$pbnr + 1"/></xsl:attribute>
				<img height="14" width="11" src="../logos/Arrow_right_bl.gif" alt="Zur n&auml;chsten Seite" border="0" align="bottom"/>
			</a>
		</xsl:if>
	</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 valign="top">
					<xsl:for-each select="cell">
						<td width="{@rend}" class="inlinetable">
							<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']">
	<!-- FUER FRUEHERE KODIERUNGSPRAXIS -->
	<xsl:if test="not(@crdate)">
		<a href="{@n}" title="{.}">
			<xsl:value-of select="."/>
		</a>
	</xsl:if>
	<!-- ENDE FRUEHERE KODIERUNGSPRAXIS -->
	<xsl:if test="@crdate">
	<xsl:variable name="a-link">
		<xsl:number level="any"/>
	</xsl:variable>
		<a name="a-link{$a-link}"></a>
		<a href="#link{$a-link}" title="{.}">
			<xsl:value-of select="."/>
		</a>
	</xsl:if>
	</xsl:template>
	<!-- LINKVERZEICHNIS, NUR BEI NEUER KODIERUNGSPRAXIS -->
	<xsl:template match="xref[@type='url']" mode="linkverz">
	<xsl:if test="@crdate">
	<xsl:variable name="link">
		<xsl:number level="any"/>
	</xsl:variable>
	<p>
	<a name="link{$link}"></a>
	<span class="note"><xsl:value-of select="."/></span><br />
		<xsl:choose>
			<xsl:when test="//profileDesc/langUsage/language='en'">
				<span class="rot">Current URL: </span><a href="{@n}" title="{@n}" target="_blank"><xsl:value-of select="@n"/></a><br />
	<span class="note">Date of most recent hyperlink check: <xsl:value-of select="@crdate"/>.<xsl:text>  
	</xsl:text><a href="#a-link{$link}" title="back to text">[back to text]</a></span>
			</xsl:when>
			<xsl:otherwise>
				<span class="kleinrot">Aktueller URL: </span><span class="note"><a href="{@n}" title="{@n}" target="_blank"><xsl:value-of select="@n"/></a></span><br />
	<span class="note">Hyperlink zuletzt &uuml;berpr&uuml;ft: <xsl:value-of select="@crdate"/>.<xsl:text>  
	</xsl:text><a href="#a-link{$link}" title="Zur&uuml;ck zum Text">[Zur&uuml;ck zum Text]</a></span>
			</xsl:otherwise>
		</xsl:choose>
	</p>
	</xsl:if>
	</xsl:template>
	<!-- ENDE LINKVERZEICHNIS -->
	<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>
				<a href="javascript:launchAbb{$abb}()">
					<img src="../img/{@entity}.jpg" border="0" hspace="10" alt="{$alt}" width="{substring-before($size, ';')}" height="{substring-after($size, ';')}" align="{substring-before(@rend, ';')}"/>
				</a>
				<xsl:if test="contains($prozessor, 'SAXON')">
					<!--SUBDOC -->
					<xsl:variable name="size_B">
						<xsl:value-of select="substring-after(../@rend, ';')"/>
					</xsl:variable>
					<xsl:document href="../{$dir}/{$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"/>
								<title>Sichtungen online<xsl:call-template name="title"/>
									<xsl:text> | Abb. </xsl:text>
									<xsl:value-of select="$abb"/>
								</title>
							</head>
							<body>
								<table border="0" cellpadding="0" cellspacing="2" width="100%">
									<tr>
										<td width="{number(substring-before($size_B, ';'))+10}" valign="top">
											<p>
												<img src="../img/{../@doc}.jpg" hspace="10" alt="{$alt}" width="{substring-before($size_B, ';')}" height="{substring-after($size_B, ';')}" align="left"/>
											</p>
										</td>
										<td width="320" valign="top">
											<img width="250" height="56" src="../logos/Sichtungen_Logo_klein.gif" align="right" alt="Sichtungen. Archiv - Bibliothek - Literaturwissenschaft"/>
											<p class="klein" align="center">
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
													<xsl:choose>
														<xsl:when test="//profileDesc/langUsage/language='en'">Figure from:</xsl:when>
														<xsl:otherwise>Abbildung aus:</xsl:otherwise>
													</xsl:choose>
												</p>
											<xsl:apply-templates select="//fileDesc/titleStmt/title" mode="subdoc"/>
											<h2 align="center">
												<xsl:apply-templates select="//fileDesc/titleStmt/author[@n='creator']" mode="author"/>
											</h2>
											<p class="bildpara">
												<span class="grau">
													<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>
													</xsl:if>
												</span>
											</p>
											<p class="klein">
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:for-each select="//p/xref/figure">
													<xsl:variable name="abb2">
														<xsl:number level="any"/>
													</xsl:variable>
													<xsl:if test="$abb2 != $abb">
														<xsl:choose>
															<xsl:when test="//profileDesc/langUsage/language='en'">
																<a href="javascript:window.location.replace('{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-sub-',$abb2,'.html')}')">Fig. <xsl:value-of select="$abb2"/>
																	<xsl:text>: </xsl:text>
																	<xsl:value-of select="p"/>
																</a>
															</xsl:when>
															<xsl:otherwise>
																<a href="javascript:window.location.replace('{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31)),'-sub-',$abb2,'.html')}')">Abb. <xsl:value-of select="$abb2"/>
																	<xsl:text>: </xsl:text>
																	<xsl:value-of select="p"/>
																</a>
															</xsl:otherwise>
														</xsl:choose>
													
													
												
														<br/>
													</xsl:if>
												</xsl:for-each>
											</p>
											<p>
													<xsl:choose>
														<xsl:when test="//profileDesc/langUsage/language='en'">
															<a href="javascript:window.close()">Close window</a>
														</xsl:when>
														<xsl:otherwise>
															<a href="javascript:window.close()">Fenster schlie&szlig;en</a>
														</xsl:otherwise>
													</xsl:choose>
											
												
											</p>
											<p class="kleingrau">
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:text>&#xA;</xsl:text>
												<br/>
												<xsl:value-of select="$zitat1"/>
												<xsl:text> .</xsl:text>
												<xsl:value-of select="substring($zitat2,1,string-length($zitat2)-1)"/>
												<xsl:text>, hier S. </xsl:text>
												<xsl:value-of select="substring-after(@n, '/')"/>
												<xsl:text>.</xsl:text>
											</p>
										</td>
									</tr>
								</table>
							</body>
						</html>
					</xsl:document>
					<!-- ENDE SUBDOC -->
					<!-- <xsl:call-template name="subdoc"/> -->
				</xsl:if>
			</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>
				<xsl:choose>
					<xsl:when test="//profileDesc/langUsage/language='en'">
						<a href="javascript:launchAbb{$abb}()" title="Open figure in new window">Open figure in new window [<xsl:value-of select="substring-before(../@rend, ';')"/>]</a>
					</xsl:when>
					<xsl:otherwise>
						<a href="javascript:launchAbb{$abb}()" title="Abbildung in eigenem Fenster &ouml;ffnen">Abbildung in eigenem Fenster &ouml;ffnen [<xsl:value-of select="substring-before(../@rend, ';')"/>]</a>
					</xsl:otherwise>
				</xsl:choose>
			</span>
		</p>
	</xsl:template>
	<xsl:template match="p/xref/figure" mode="script">
		<xsl:variable name="abb">
			<xsl:number level="any"/>
		</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_B">
			<xsl:value-of select="substring-after(../@rend, ';')"/>
		</xsl:variable>
		<xsl:text>function launchAbb</xsl:text>
		<xsl:value-of select="$abb"/>
		<xsl:text>() {
myRemote = launch("</xsl:text>
		<xsl:value-of select="$sub"/>
		<xsl:text>", "abbildung</xsl:text>
		<xsl:value-of select="$abb"/>
		<xsl:text>", "height=</xsl:text>
		<xsl:value-of select="number(substring-after($size_B, ';'))+90"/>
		<xsl:text>,width=</xsl:text>
		<xsl:value-of select="number(substring-before($size_B, ';'))+330"/>
		<xsl:text>,screenX=0,screenY=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "</xsl:text>
		<xsl:value-of select="substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-31))"/>
		<xsl:text>");
}
</xsl:text>
	</xsl:template>
	<xsl:template match="div/head" mode="toc">
		<xsl:variable name="hnr">
			<xsl:number level="any" count="div/head"/>
		</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">Replaces:</span>
				</xsl:when>
				<xsl:otherwise>
					<span class="rot">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="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="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 this 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 dieser 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="xml">
	<xsl:choose>
				<xsl:when test="//profileDesc/langUsage/language='en'">
					<a href="{substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-27))}" title="TEI/XML-Master of this document">
						<xsl:value-of select="idno[@type='PURL']"/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<a href="{substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-27))}" title="TEI/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="{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-32)),'.html')}" title="Most current version of this document">
						<xsl:value-of select="substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-5))"/>
					</a>
				</xsl:when>
				<xsl:otherwise>
					<a href="{concat(substring(//publicationStmt/idno[@type='PURL'],28,(string-length(//publicationStmt/idno[@type='PURL'])-32)),'.html')}" title="Aktuellste Version dieser 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="DC/RDF metadata to this cocument">
						<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="DC/RDF-Metadaten zu dieser 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>
	<!-- 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="hasPart">
		<xsl:for-each select="//p/xref/figure">
			<xsl:variable name="abb">
				<xsl:number level="any"/>
			</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>
			<meta name="DC.Relation.hasPart" scheme="URL" content="../{$dir}/{$sub}"/>
		</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>
