<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/REC-html40/loose.dtd">
<xsl:variable name="werkurl">http://nietzsche.ps.uni-sb.de/werke/xsl/</xsl:variable>
<xsl:variable name="personurl">http://nietzsche.ps.uni-sb.de/pers/xsl/</xsl:variable>
<xsl:variable name="briefurl">http://nietzsche.ps.uni-sb.de/briefe/draft/</xsl:variable>
<xsl:variable name="orturl">http://nietzsche.ps.uni-sb.de/orte/draft/</xsl:variable>
<xsl:variable name="extrakturl">http://nietzsche.ps.uni-sb.de/extrakte/draft/</xsl:variable>
<xsl:variable name="quelleurl">http://nietzsche.ps.uni-sb.de/quelle/draft/</xsl:variable>
<xsl:variable name="faqurl">http://nietzsche.ps.uni-sb.de/faq/xsl/</xsl:variable>
<xsl:variable name="personpfad">/home/httpd/nietzsche/pers/draft/</xsl:variable>
<xsl:variable name="designfile">
<xsl:value-of select="/faq/head/design/@id"/>
<xsl:text>.xml</xsl:text>
</xsl:variable>
<xsl:variable name="designpfad">
<xsl:value-of select="$personpfad"/>
<xsl:value-of select="$designfile"/>
</xsl:variable>
<xsl:variable name="designurl">
<xsl:value-of select="$personurl"/>
<xsl:value-of select="$designfile"/>
</xsl:variable>
<xsl:variable name="autorfile">
<xsl:value-of select="/faq/head/autor/@id"/>
<xsl:text>.xml</xsl:text>
</xsl:variable>
<xsl:variable name="autorpfad">
<xsl:value-of select="$personpfad"/>
<xsl:value-of select="$autorfile"/>
</xsl:variable>
<xsl:variable name="autorurl">
<xsl:value-of select="$personurl"/>
<xsl:value-of select="$autorfile"/>
</xsl:variable>
<xsl:variable name="designname">
<xsl:value-of select="document($designpfad)/per/body/name/vorname"/>
<xsl:text> </xsl:text>
<xsl:value-of select="document($designpfad)/per/body/name/nachname"/>
</xsl:variable>
<xsl:variable name="autorname">
<xsl:value-of select="document($autorpfad)/per/body/name/vorname"/>
<xsl:text> </xsl:text>
<xsl:value-of select="document($autorpfad)/per/body/name/nachname"/>
</xsl:variable>
<xsl:param name="erweitert"/>
<xsl:template match="/faq">
<xsl:choose>
<xsl:when test="$erweitert!=''">
<xsl:call-template name="erweitertlayout"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="normallayout"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="body">
<h2>
<xsl:value-of select="frage"/> ?
</h2>
<xsl:apply-templates select="antwort"/>
</xsl:template>
<xsl:template match="antwort">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="p">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="hinweis">
<b>
<xsl:apply-templates/>
</b>
</xsl:template>
<xsl:template match="betont">
<i>
<xsl:apply-templates/>
</i>
</xsl:template>
<xsl:template match="erweitert" mode="newwindow">
<xsl:variable name="nummer">
<xsl:number level="any"/>
</xsl:variable>
<xsl:if test="$erweitert=$nummer">
<h4>
<sup class="kommentare">
<xsl:number level="any"/>
</sup>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="beschriftung!=''">
<xsl:apply-templates select="beschriftung" mode="textfuss"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>... ausserdem ...</xsl:text>
</xsl:otherwise>
</xsl:choose>
</h4>
<p><xsl:apply-templates/></p>
<!-- <xsl:apply-templates select="p"/> -->
<xsl:apply-templates select=".." mode="kommentar"/>
</xsl:if>
</xsl:template>
<xsl:template match="erweitert">
<a>
<xsl:attribute name="href">
<xsl:text>javascript:popup('</xsl:text>
<xsl:value-of select="$faqurl"/>
<xsl:value-of select="/faq/@id"/>
<xsl:text>.xml?erweitert=</xsl:text>
<xsl:number level="any"/>
<xsl:text>');</xsl:text>
</xsl:attribute>
<xsl:if test="beschriftung!=''">
<xsl:apply-templates select="beschriftung" mode="inline"/>
</xsl:if>
<xsl:text> </xsl:text>
<sup class="kommentare">
<xsl:number level="any"/>
</sup>
</a>
</xsl:template>
<xsl:template match="beschriftung" mode="inline">
<i>
<xsl:apply-templates/>
</i>
</xsl:template>
<xsl:template match="beschriftung" mode="textfuss">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="beschriftung"/>
<xsl:template match="br">
<br/>
</xsl:template>
<xsl:template match="sprache">
<i>
<xsl:apply-templates/>
</i>
</xsl:template>
<xsl:template match="wichtig">
<b>
<xsl:apply-templates/>
</b>
</xsl:template>
<xsl:template match="ul">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="ol">
<ol>
<xsl:apply-templates/>
</ol>
</xsl:template>
<xsl:template match="li">
<li>
<xsl:apply-templates/>
</li>
</xsl:template>
<xsl:template match="ewerk_ref" mode="kommentar">
<p class="kommentarquelle">
<xsl:text>[</xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>]</xsl:text>
</p>
</xsl:template>
<xsl:template match="*" mode="kommentar"/>
<xsl:template match="ewerk_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$werkurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="per_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$personurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="brief_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$briefurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="ort_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$briefurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="extrakt_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$briefurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="quelle_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$quelleurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="faq_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$faqurl"/>
<xsl:value-of select="@id"/>
<xsl:text>.xml</xsl:text>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="extern_ref">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@href"/>
</xsl:attribute>
<xsl:attribute name="target">Hauptfenster</xsl:attribute>
<xsl:apply-templates/>
<xsl:text> (ext.)</xsl:text>
</a>
</xsl:template>
<xsl:template match="datum" mode="inline">
<xsl:value-of select="tag"/>
<xsl:text>.</xsl:text>
<xsl:value-of select="monat"/>
<xsl:text>.</xsl:text>
<xsl:value-of select="jahr"/>
</xsl:template>
<xsl:template name="normallayout">
<html>
<xsl:call-template name="html-head"/>
<xsl:call-template name="html-body"/>
</html>
</xsl:template>
<xsl:template name="html-head">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
<meta>
<xsl:attribute name="name">author</xsl:attribute>
<xsl:attribute name="content">
<xsl:value-of select="$autorname"/>
</xsl:attribute>
</meta>
<meta name="keywords" content="faq, faqs, fragen, antworten, friedrich, nietzsche"/>
<meta name="description" content="Fragen und Antworten zu Friedrich Nietzsche."/>
<title>
<xsl:text>Nietzsche Online: </xsl:text>
<xsl:value-of select="/faq/body/frage"/>
</title>
<link rel="stylesheet" type="text/css" href="/css/faq.css"/>
<script language="JavaScript" src="funktionen.js"/>
</head>
</xsl:template>
<xsl:template name="html-body">
<body>
<xsl:call-template name="maintable"/>
<!-- <xsl:call-template name="commenttable"/> -->
</body>
</xsl:template>
<xsl:template name="maintable">
<center>
<table width="800pt" border="0" bgcolor="#EEEDEA"><tr><td align="center">
 <br/>
<xsl:call-template name="headertable"/>
<br/>
<xsl:call-template name="contenttable"/>
<br/>
<xsl:call-template name="footertable"/>
</td></tr></table>
</center>
</xsl:template>
<xsl:template name="headertable-orginal">
<table width="100%" border="0" cellpadding="5" cellspacing="5">
<tr>
<td rowspan="3" width="40" valign="middle">
<div align="left">
<img src="/img/nietzsche_left.gif"/>
</div>
</td>
<td colspan="5" height="7"></td>
<td rowspan="3" width="40" valign="middle">
<div align="right">
<img src="/img/nietzsche_right.gif"/>
</div>
</td>
</tr>
<tr>
<td class="thema" nowrap="nowrap">
<div align="center">
<a href="/">Nietzsche Online</a>
</div>
</td>
<td class="thema" nowrap="nowrap">
<div align="center">
<font color="#000080"><b>Antwort zur Frage</b></font>
</div>
</td>
<td class="thema" nowrap="nowrap">
<div align="center">
<a href="../php/faq_sw.php">Schlagwortliste</a>
</div>
</td>
<td class="thema" nowrap="nowrap">
<div align="center">
<a href="../php/faq_them.php">Themenliste</a>
</div>
</td>
<td class="thema" nowrap="nowrap">
<div align="center">
<a href="../php/faq_all.html">Fragenliste</a>
</div>
</td>
</tr>
<tr>
<td colspan="5" height="7"></td>
</tr>
</table>
</xsl:template>
<xsl:template name="headertable">
<table width="100%" border="0" cellpadding="1"
bordercolor="#8080C0">
<tr><td rowspan="3"> </td>
<td rowspan="3" width="40pt" align="center"
valign="middle"> 
<img src="../bilder/nietzsche_left.gif"/> </td>
<td rowspan="3"> </td>
<td rowspan="3"> </td>
<td colspan="6"> </td>
<td rowspan="3"> </td>
<td rowspan="3"> </td>
<td rowspan="3" width="40pt" align="center"
valign="middle"> 
<img src="../bilder/nietzsche_right.gif"/> </td>
<td rowspan="3"> </td>
</tr>
<tr><td class="thema" align="center"> <a
href="../../.">Nietzsche Online</a> </td>
<td class="thema" align="center"> <font
color="#000080"><b>Antwort zur Frage</b>
</font> </td>
<td class="thema" align="center"> <a
href="../php/faq_sw.php">Schlagwortliste</a> </td>
<td class="thema" align="center"> <a
href="../php/faq_them.php">Themenliste</a> </td>
<td class="thema" align="center"> <a
href="../php/faq_all.html">Fragenliste</a> </td>
</tr>
<tr><td colspan="6"> </td></tr>
</table>
</xsl:template>
<xsl:template name="footertable">
<xsl:call-template name="headertable"/>
</xsl:template>
<xsl:template name="contenttable">
<table width="100%" border="0" cellpadding="20">
<tr>
<td width="20" valign="top">
<xsl:call-template name="fragenundantwortenvertical"/>
</td>
<td bgcolor="#FEFEFE">
<xsl:call-template name="content"/>
</td>
<td width="20" valign="top">
<xsl:call-template name="fragenundantwortenvertical"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="fragenundantwortenvertical">
<div align="top"><a href="../html/index.html"><i>
F<br/>
R<br/>
A<br/>
G<br/>
E<br/>
N<br/>
 <br/>
U<br/>
N<br/>
D<br/>
 <br/>
A<br/>
N<br/>
T<br/>
W<br/>
O<br/>
R<br/>
T<br/>
E<br/>
N<br/>
</i></a></div>
</xsl:template>
<xsl:template name="content">
<xsl:call-template name="thema"/>
<xsl:apply-templates select="body"/>
<xsl:call-template name="designautordatum"/>
</xsl:template>
<xsl:template name="thema">
<div class="thema" align="right">
<b>Thema: </b>
<xsl:value-of select="/faq/head/thema"/>
</div>
</xsl:template>
<xsl:template name="designautordatum">
<div class="copy" align="right">
<font size="-2">
<xsl:text>© Design </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$designurl"/>
</xsl:attribute>
<xsl:value-of select="$designname"/>
</a>
<br/>
<xsl:text>© Inhalt </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$autorurl"/>
</xsl:attribute>
<xsl:value-of select="$autorname"/>
</a>
<br/>
<xsl:text>letzte Änderung </xsl:text>
<xsl:apply-templates select="/faq/head/design/datum"
mode="inline"/>
<br/>
© 2001 <a href="http://www.uni-saarland.de">
Universität des Saarlandes</a> -
Fachrichtung <a href="http://is.uni-sb.de"> 5.6
Informationswissenschaft</a>
</font>
</div>
</xsl:template>
<xsl:template name="commenttable">
<xsl:if test="count(//erweitert)!=0">
<p class="spacer"/>
<center>
<table width="800pt" border="0" bgcolor="#EEEDEA"><tr><td align="center">
<table width="100%" border="0" cellpadding="20" style="margin-top:12px;">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="20pt" valign="top"> </td>
<td bgcolor="#FEFEFE" valign="top">
<xsl:apply-templates select="//erweitert" mode="textfuss"/>
</td>
<td width="20pt" valign="top"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</td></tr></table>
</center>
<p class="spacer"/>
</xsl:if>
</xsl:template>
<xsl:template name="erweitertlayout">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/faq.css"/>
</head>
<body>
<xsl:apply-templates select="//erweitert" mode="newwindow"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|