<?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/sichtpara-xml2html.xsl'"/>
	<xsl:variable name="stylesheetversion" select="'0.6'"/>
	<xsl:variable name="stylesheetdate" select="'2002-01-21'"/>
	<xsl:variable name="stylesheetcreator" select="'mka'"/>
	<xsl:variable name="stylesheetcopyright" select="'Copyright (C) 2001 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: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)),'.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.isFormatOf" scheme="PURL" content="{//publicationStmt/idno[@type='PURL']}"/>
				<xsl:apply-templates select="//sourceDesc" mode="DC"/>
				<meta name="DC.Rights" content="{//publicationStmt/availability}"/>
				<!-- Titel -->
				<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="title"/>
				<!-- CSS -->
				<link rel="stylesheet" href="../stylesheets/sicht-style_para1.css" type="text/css"/>
				<!-- Scripts -->
				<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>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='inhalt.html' or //titleStmt/title[@type='short-superior'][1]/@n='inhalt.html'">
									<span class="topaktuell">
										<a href="../docs/inhalt.html" class="top" title="Inhalt">Inhalt</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/inhalt.html" class="top" title="Inhalt">Inhalt</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='beitraege.html' or //titleStmt/title[@type='short-superior'][1]/@n='beitraege.html'">
									<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="//titleStmt/title[@type='short']/@n='rezensionen.html' or //titleStmt/title[@type='short-superior'][1]/@n='rezensionen.html'">
									<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="//titleStmt/title[@type='short']/@n='berichte.html' or //titleStmt/title[@type='short-superior'][1]/@n='berichte.html'">
									<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>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='information.html' or //titleStmt/title[@type='short-superior'][1]/@n='information.html'">
									<span class="topaktuell">
										<a href="../docs/information.html" class="top" title="Information">Information</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/information.html" class="top" title="Information">Information</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='suche.html' or //titleStmt/title[@type='short-superior'][1]/@n='suche.html'">
									<span class="topaktuell">
										<a href="../docs/suche.html" class="top" title="Suche, Index">Suche, Index</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/suche.html" class="top" title="Suche, Index">Suche, Index</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='faq.html' or //titleStmt/title[@type='short-superior'][1]/@n='faq.html'">
									<span class="topaktuell">
										<a href="../docs/faq.html" class="top" title="FAQ">FAQ</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/faq.html" class="top" title="FAQ">FAQ</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text>&#xA;|&#xA;</xsl:text>
							<xsl:choose>
								<xsl:when test="//titleStmt/title[@type='short']/@n='sitemap.html' or //titleStmt/title[@type='short-superior'][1]/@n='sitemap.html'">
									<span class="topaktuell">
										<a href="../docs/sitemap.html" class="top" title="Sitemap">Sitemap</a>
									</span>
								</xsl:when>
								<xsl:otherwise>
									<span class="top">
										<a href="../docs/sitemap.html" class="top" title="Sitemap">Sitemap</a>
									</span>
								</xsl:otherwise>
							</xsl:choose>
						</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>
						<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>
							<xsl:if test="//title[@type='short-superior'][text()]">
								<xsl:for-each select="//title[@type='short-superior']">
									<a href="{@n}" title="{.}">
										<xsl:value-of select="."/>
									</a>
									<xsl:text>&#xA;&gt;&#xA;</xsl:text>
								</xsl:for-each>
							</xsl:if>
							<span class="rot">
								<xsl:value-of select="//title[@type='short']"/>
							</span>
						</td>
					</tr>
					<tr>
						<th colspan="2" height="7" width="100%"/>
					</tr>
				</table>
				<table border="0" cellpadding="0" cellspacing="2" width="100%">
				<tr><th colspan="3" width="100%" height="10"/></tr>
					<tr>
						<td width="20%"/>
						<td width="60%">
							<xsl:apply-templates select="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="doctitle"/>
							<p>
								<xsl:apply-templates select="//div/head" mode="toc"/>
							</p>
							<br/>
							<xsl:apply-templates select="TEI.2/text/body"/>
							<br/>
							<table border="0" cellpadding="0" cellspacing="0" width="100%">
								<tr>
									<th colspan="4" height="1" class="spacer"/>
								</tr>
								<tr>
									<th colspan="4" height="4"/>
								</tr>
								<tr>
									<td width="2%" class="marginal" valign="top" nowrap="nowrap"/>
									<td width="38%" class="marginal" valign="top" nowrap="nowrap">
										<xsl:apply-templates select="//sourceDesc" mode="left"/>PURL dieser Datei:<br/>XML-Master dieser Datei:<br/>Datum XML-Master:<br/>Metadaten zu dieser Datei:</td>
									<td width="58%" class="marginal" align="right" valign="top" nowrap="nowrap">
										<xsl:apply-templates select="//sourceDesc/bibl[@n='DC.relation.isFormatOf']/idno[@type='ISBN']" 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" mode="rdf"/>
									</td>
									<td width="2%" class="marginal" valign="top" nowrap="nowrap"/>
								</tr>
								<tr>
									<th colspan="4" height="4"/>
								</tr>
							</table>
						</td>
						<td width="20%"/>
					</tr>
				</table>
				<hr size="1"/>
				<!-- BEGINN BOTTOM-MENUE -->
				<div align="center">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr class="kleingrau">
							<td align="center" width="100%" class="marginal">
								<a href="#top" title="Zur&uuml;ck zum Seitenanfang">[Zum Seitenanfang]</a>
								<br/>
								<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>
						</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="copyright.html" title="Copyright-Hinweis">Copyright</a> 2001 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="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 match="TEI.2/teiHeader/fileDesc/titleStmt/title" mode="title">
		<xsl:if test="@type='short'">
			<title>Sichtungen online<xsl:text> | </xsl:text>
				<xsl:if test="//title[@type='short-superior'][text()]">
					<xsl:for-each select="//title[@type='short-superior']">
						<xsl:value-of select="."/>
						<xsl:text> | </xsl:text>
					</xsl:for-each>
				</xsl:if>
				<xsl:value-of select="//title[@type='short']"/>
			</title>
		</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>
						<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[@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/head">
		<xsl:variable name="hnr">
			<xsl:number level="any"/>
		</xsl:variable>
		<xsl:element name="{@type}">
			<a>
				<xsl:attribute name="name">h.<xsl:value-of select="$hnr"/></xsl:attribute>
			</a>
			<xsl:apply-templates/>
			<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(//head)">
				<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:template>
	<xsl:template match="p[not(descendant::table)]">
		<p>
			<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="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="blau">
			<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">
		<span class="{@rend}">
			<xsl:value-of select="."/>
		</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="div/p/ref">
		<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="xref[@type='url']">
		<a href="{@n}" title="{.}">
			<xsl:value-of select="."/>
		</a>
	</xsl:template>
	<xsl:template match="bibl[@n='tocpara']">
		<xsl:choose>
			<xsl:when test="not(@rend='preprint')">
				<xsl:text>&#xA;|&#xA;</xsl:text>
				<xsl:value-of select="title[@type='short']"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:text>&#xA;&#xA;</xsl:text>
				<img src="../logos/preprint_2.gif" height="15" width="48" align="top" alt="Preprint"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="div/note">
		<p>
			<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:attribute name="title">Zur&uuml;ck zum Text</xsl:attribute>
				<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="figure">
		<xsl:variable name="size">
			<xsl:value-of select="substring-after(@rend, ';')"/>
		</xsl:variable>
		<xsl:variable name="alt">
			<xsl:value-of select="normalize-space(head)"/>
			<xsl:if test="figDesc">
				<xsl:text> [</xsl:text>
				<xsl:value-of select="normalize-space(figDesc)"/>
				<xsl:text>]</xsl:text>
			</xsl:if>
			<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:variable>
		<xsl:choose>
			<xsl:when test="parent::xref">
				<a href="{../@doc}">
					<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')">
					<xsl:call-template name="subdoc"/>
				</xsl:if>
			</xsl:when>
			<xsl:otherwise>
				<img src="../img/{@entity}.jpg" border="0" hspace="10" alt="{head}" width="{substring-before($size, ';')}" height="{substring-after($size, ';')}" align="{substring-before(@rend, ';')}"/>
			</xsl:otherwise>
		</xsl:choose>
	</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>
		<br/>
	</xsl:template>
	<xsl:template match="revisionDesc">
Diese HTML-Datei wurde 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')"/> mittels eines XSLT-Stylesheets (<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"/>) unter Verwendung des Parsers &quot;<xsl:value-of select="$prozessor"/>&quot; automatisch aus einem 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>) generiert.
</xsl:template>
	<xsl:template match="sourceDesc" mode="left">
		<xsl:for-each select="bibl[@n='DC.relation.isFormatOf']/idno[@type='ISBN']">
			<xsl:if test="parent::bibl/@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[@n='DC.relation.isFormatOf']/idno[@type='ISBN']" 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:apply-templates select="../title[@type='short']"/>
		<xsl:text>,&#xA;</xsl:text>
		<xsl:apply-templates select="../biblScope"/>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="PURL">
		<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>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="xml">
		<a href="{substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-27))}" title="XML-Master dieser Datei">
			<xsl:value-of select="idno[@type='PURL']"/>
		</a>
		<br/>
	</xsl:template>
	<xsl:template match="publicationStmt" mode="rdf">
		<a href="../meta/{concat(substring(idno[@type='PURL'],28,(string-length(idno[@type='PURL'])-30)),'rdf')}" title="Metadaten zu dieser Datei">
			<xsl:value-of select="concat(substring(idno[@type='PURL'],1,(string-length(idno[@type='PURL'])-3)),'rdf')"/>
		</a>
		<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>
	<!-- 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">
			<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>
