Commit dc312f7c authored by Jakob Schmidt's avatar Jakob Schmidt
Browse files

'XSLT' und 'www' gelöscht

parent 5c99688d
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<!-- alle Vorkommnisse von @ref mit #l am Anfang (außer unter "history"), sortiert nach @ref -->
<xsl:key name="occ" match="*[@ref][starts-with(@ref, '#l')][not(ancestor::*[local-name() = 'history'])]" use="@ref"/>
<!-- alle Seitenumbrüche, sortiert nach Dateinamen (vor dem Unterstrich) -->
<xsl:key name="pbs" match="*[@facs]" use="substring-before(@facs, '_')"/>
<xsl:variable name="pathlist">
<xsl:text>../text/letters?select=*.xml;recurse=yes;on-error=warning</xsl:text>
</xsl:variable>
<xsl:variable name="docs" select="collection($pathlist)"/>
<xsl:template match="/">
<xsl:for-each select="$docs">
<xsl:sort select="(tokenize(substring-before(base-uri(.), '.xml'),'/'))[last()]"/>
<xsl:variable name="cur_doc" select="."/>
<xsl:variable name="file" select="(tokenize(substring-before(base-uri(.), '.xml'),'/'))[last()]"/>
<xsl:choose>
<xsl:when test="key('occ', '#l0029')"><!-- Bsp. ist durch Variable $cur_ref zu ersetzen -->
<h2>Dokument: <xsl:value-of select="$file"/></h2>
<h3>Titel: <xsl:value-of select="$cur_doc//*[local-name() = 'titleStmt']/*[local-name() = 'title']"/></h3>
<p>Seite
<xsl:for-each select="key('pbs', $file)">
<xsl:sort select="number(@n)"/>
<xsl:variable name="cur_pb_n" select="@n"/>
<!-- für jedes erste Vorkommen eines @ref, zu dem der gerade aktuelle pb der erste vorherige pb ist -->
<xsl:for-each select="key('occ', '#l0029')[preceding::*[local-name() = 'pb'][1]/@n=$cur_pb_n][1]">
<a href="{$file}.html#{$cur_pb_n}"><xsl:value-of select="$cur_pb_n"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:for-each>
</p>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
version="2.0"
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="#all">
<xsl:output indent="yes" method="html" encoding="UTF-8"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" exclude-result-prefixes="#all"/>
<!-- alle Vorkommnisse von ref@target mit #b am Anfang (nur Transkription und accMat), sortiert nach @ref -->
<xsl:key name="occ" match="*[starts-with(@target, '#b')][ancestor::*[local-name() = 'div']/@type='transcription' or ancestor::*[local-name() = 'accMat']]" use="@target"/>
<!-- alle Seitenumbrüche, sortiert nach Dateinamen (vor dem Unterstrich) -->
<xsl:key name="pbs" match="*[@facs]" use="substring-before(@facs, '_')"/>
<xsl:variable name="pathlist">
<xsl:text>../text/letters?select=*.xml;recurse=yes;on-error=warning</xsl:text>
</xsl:variable>
<xsl:variable name="docs" select="collection($pathlist)"/>
<xsl:include href="template_pages_index.xsl"/>
<!--
noch zu tun:
– DNB-Beacon
– Publikationsdaten als Auswertung der ISO-Angabe
– ...
-->
<xsl:template name="html_tree">
<xsl:variable name="cur_id" select="@xml:id"/>
<xsl:variable name="cur_ref" select="concat('#', $cur_id)"/>
<!-- Monographie oder nicht? -->
<xsl:variable name="ana_mon">
<xsl:choose>
<xsl:when test="analytic"><xsl:value-of select="'analytic'"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'monogr'"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<html>
<head>
<script type="text/javascript">
if (window.location.protocol == "file:")
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('&lt;base href=&quot;file://' + grandparentDir + '&quot; /&gt;');
}
else
{
document.write('&lt;base href=&quot;http://www.busoni-nachlass.org/&quot; /&gt;');
}
</script>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<title><xsl:value-of select="*[name()=$ana_mon]/author/surname"/><xsl:text> </xsl:text><xsl:value-of select="monogr/imprint/date"/> (Referenz in «<xsl:value-of select="//seriesStmt/title"/>»)</title>
<style type="text/css">
dd.closed { display:none; }
</style>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="js/libs/jquery.js"></script>
<script type="text/javascript" src="js/jquery.fullscreenBackground.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#background-image").fullscreenBackground();
$("img#hideshow").click(function(event) { $("ul#showhidenav").toggle("slow"); });
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$("dt").click(function(){ // trigger
$(this).next("dd").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein.
$(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open".
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$(".ergebnisSuche:has(ul:empty)").prev('dt').hide();
});
</script>
</head>
<body>
<div id="weisserHintergrundContentDiv"></div>
<div id="ueberHintergrundbild">
<div id="headerDiv">
<div id="headerSchriftzugMainDiv">
<a class="headerSchriftzug" href="./?de"><xsl:value-of select="substring-before(//seriesStmt/title, 'in')"/><br/><xsl:value-of select="substring-after(//seriesStmt/title, 'Busonis')"/></a>
<h1><img src="imgs/pfeil_headline.gif" style="margin-bottom:3px; margin-right:5px;"/>Literatur</h1>
</div>
<div id="mainNavDiv">
<div id="plusLeftDiv"><img src="imgs/plus.gif" id="hideshow"/></div><div id="mainNavLeftDiv">
<ul id="showhidenav" style="display: none">
<li><a href="authors?de">Autoren</a></li>
<li><a href="genre?de">Textgattungen</a></li>
<li><a href="topic?de">Themen</a></li>
<li><a href="repo?de">Aufbewahrungsorte</a></li>
<li><a href="date?de">Entstehungszeit</a></li>
</ul>
</div>
<div id="mainNavRightDiv">
<ul>
<li class="active"><a href="search?de">Suche</a></li>
<li><a href="about?de">Editorische Richtlinien</a></li>
<li><a href="partners?de">Kooperationspartner</a></li>
<li><a href="imprint?de">Impressum</a></li>
</ul>
</div>
<div id="subNavRightDiv"><ul>
<li><a href="entities/people.html">Personenindex</a></li>
<li><a href="entities/organizations.html">Institutionenindex</a></li>
<li><a href="entities/works.html">Werkindex</a></li>
<li><a href="entities/locations.html">Ortsindex</a></li>
</ul>
</div>
<div id="mainNavLeftAbschlussDiv" style="border-top:1px solid #fff;"></div>
<div id="mainNavRightAbschlussDiv"></div>
</div>
</div>
<div id="hintergrundBeigeNav"></div>
<div id="navLangDiv">
<div id="navLangContentDiv">
de | <a href="entities/{@xml:id}+en">en</a> | <a href="entities/{@xml:id}+fr">fr</a></div>
</div>
<div id="navLangAbschlussDiv"></div>
<div id="contentDiv">
<div id="contentEineBreiteSpalteDiv">
<h2><xsl:value-of select="*[name()=$ana_mon]/author/surname"/><xsl:text> </xsl:text><xsl:value-of select="monogr/imprint/date"/></h2>
<dl class="ergebnisSuche">
<dt><a href="javascript:return false" class="open"><img src="imgs/pfeil_nav.gif" style="padding-bottom:2px;padding-right:5px;"/>Bibliographische Angabe</a></dt>
<dd class="ergebnisSuche" style="display: block">
<h3>Autor</h3>
<ul class="ergebnisSuche">
<li><xsl:value-of select="*[name()=$ana_mon]/author"/></li>
</ul>
<h3>Titel</h3>
<ul class="ergebnisSuche">
<li>
<xsl:choose>
<xsl:when test="analytic">
<xsl:value-of select="analytic/title[not(@type='sub')]"/>
<xsl:for-each select="analytic/title[@type='sub']">. <xsl:value-of select="."/></xsl:for-each>
</xsl:when>
<xsl:otherwise>
<i><xsl:value-of select="monogr/title[not(@type='sub')]"/>
<xsl:for-each select="monogr/title[@type='sub']">. <xsl:value-of select="."/></xsl:for-each></i>
</xsl:otherwise>
</xsl:choose>
</li>
</ul>
<xsl:if test="analytic">
<h3>publiziert in</h3>
<ul class="ergebnisSuche">
<li>
<i><xsl:value-of select="monogr/title[not(@type='sub')]"/>
<xsl:for-each select="monogr/title[@type='sub']">. <xsl:value-of select="."/></xsl:for-each></i>
<xsl:text> </xsl:text><xsl:value-of select="monogr/imprint/biblScope[@unit='volume']"/>
<xsl:text> </xsl:text>(<xsl:value-of select="monogr/imprint/date"/>), S.&#8239;<xsl:value-of select="monogr/imprint/biblScope[@unit='page']"/>
</li>
</ul>
</xsl:if>
<xsl:if test="monogr/editor">
<h3>Herausgeber</h3>
<ul class="ergebnisSuche">
<li><xsl:for-each select="monogr/editor"><xsl:value-of select="."/><xsl:if test="following-sibling::editor">, </xsl:if></xsl:for-each></li>
</ul>
</xsl:if>
<xsl:if test="monogr/edition">
<h3>Ausgabe</h3>
<ul class="ergebnisSuche">
<li><xsl:for-each select="monogr/edition"><xsl:value-of select="."/><xsl:if test="following-sibling::editor">, </xsl:if></xsl:for-each></li>
</ul>
</xsl:if>
<h3>erschienen</h3>
<ul class="ergebnisSuche">
<li>
<xsl:for-each select="monogr/imprint/pubPlace"><xsl:value-of select="."/><xsl:if test="following-sibling::pubPlace">, </xsl:if></xsl:for-each>
<xsl:if test="monogr/imprint/publisher">: <xsl:value-of select="monogr/imprint/publisher"/>,</xsl:if>
<xsl:text> </xsl:text><xsl:value-of select="monogr/imprint/date"/>
</li>
</ul>
</dd>
<xsl:if test="note[@type='event']">
<dt><a href="javascript:return false" class="open"><img src="imgs/pfeil_nav.gif" style="padding-bottom:2px;padding-right:5px;"/>Beschreibung</a></dt>
<dd class="ergebnisSuche" style="display: block">
<ul class="ergebnisSuche">
<xsl:for-each select="note[@type='event']">
<li><xsl:apply-templates select="."/></li>
</xsl:for-each>
</ul>
</dd>
</xsl:if>
</dl>
<h2>In dieser Edition</h2>
<xsl:call-template name="pages_ind">
<xsl:with-param name="cur_ref" select="$cur_ref"/>
</xsl:call-template>
</div>
</div>
<div id="abschlussLinieContentBreiteSpalteDiv"></div>
<div id="footerDiv" style="width:875px;"><a href="http://www.hu-berlin.de/" target="_blank"><img src="imgs/logo-hu.jpg"/></a></div>
</div>
<!--<div id="background-image"><img src="imgs/siegel/hintergrund.jpg" width="2800" height="1600" /></div>-->
</body>
</html>
</xsl:template>
<xsl:template match="*[@ref]">
<a href="entities/{substring-after(@ref, '#')}.html"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="ref[@target][not(@type='letter')]">
<a href="entities/{substring-after(@target, '#')}.html"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="ref[@type='letter']">
<a href="{substring-after(@target, '#')}.html"><xsl:value-of select="."/></a>
</xsl:template>
<!-- Resultat-Dokumente -->
<xsl:template match="/">
<xsl:for-each select="doc('../indices/bibliography.xml')//biblStruct">
<xsl:result-document method="html" href="../www/entities/{@xml:id}.html">
<xsl:call-template name="html_tree"/>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0"
version="2.0" xpath-default-namespace="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="#all">
<xsl:output indent="yes" method="html" encoding="UTF-8"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
exclude-result-prefixes="#all"/>
<xsl:key name="surname-firstletter" match="//person/persName" use="substring(surname[not(@type='birth')], 1, 1)" />
<xsl:key name="loc-firstletter" match="//place" use="substring(*[not(preceding-sibling::*)], 1, 1)"/>
<xsl:key name="org-firstletter" match="//org" use="substring(orgName, 1, 1)"/>
<!-- gruppiert alle Werkknoten nach Komponisten-Referer -->
<xsl:key name="work-comp-ref" match="//biblStruct/monogr" use="author/@ref"/>
<!-- speichert alle Komponisten-Referer gruppiert (einmal) je als einzelnes Item -->
<xsl:variable name="comp_id" as="element()*">
<xsl:for-each select="doc('../indices/works.xml')//biblStruct/monogr[count(. | key('work-comp-ref', author/@ref)[1]) = 1]">
<Item><xsl:value-of select="substring-after(author/@ref, '#')"/></Item>
</xsl:for-each>
</xsl:variable>
<!-- speichert alle Anfangsbuchstaben der zu den Komponisten-Referern gehörenden Nachnamen -->
<xsl:key name="comp_id_surname_firstletter" match="//person[@xml:id=$comp_id]/persName" use="substring(surname, 1, 1)"/>
<xsl:template name="html_tree">
<xsl:param name="title_string"/>
<html>
<head>
<script type="text/javascript">
if (window.location.protocol == "file:")
{
var curDir = location.pathname
var parentDir = curDir.substring( 0, curDir.lastIndexOf( "/" ));
var grandparentDir = parentDir.substring( 0, parentDir.lastIndexOf( "/" ) +1);
document.write('&lt;base href=&quot;file://' + grandparentDir + '&quot; /&gt;');
}
else
{
document.write('&lt;base href=&quot;http://www.busoni-nachlass.org/&quot; /&gt;');
}
</script>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<title><xsl:value-of select="//seriesStmt/title"/>: <xsl:value-of select="$title_string"/></title>
<style type="text/css">
dd.closed{
display:none;
}</style>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="js/libs/jquery.js"/>
<script type="text/javascript" src="js/jquery.fullscreenBackground.js"/>
<script type="text/javascript">
$(document).ready(function () {
$("#background-image").fullscreenBackground();
$("img#hideshow").click(function(event) { $("ul#showhidenav").toggle("slow"); });
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$("dt").click(function(){ // trigger
$(this).next("dd").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein.
$(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open".
});
});
</script>
</head>
<body>
<a name="oben" id="oben"></a>
<div id="weisserHintergrundContentDiv"/>
<div id="ueberHintergrundbild">
<div id="headerDiv">
<div id="headerSchriftzugMainDiv">
<a class="headerSchriftzug" href="./?de">
<xsl:value-of select="substring-before(//seriesStmt/title, 'in')"/><br/>
<xsl:value-of select="substring-after(//seriesStmt/title, 'Busonis')"/>
</a>
<h1><img src="imgs/pfeil_headline.gif" style="margin-bottom:3px; margin-right:5px;"/><xsl:value-of select="$title_string"/></h1>
</div>
<div id="mainNavDiv">
<div id="plusLeftDiv">
<img src="imgs/plus.gif" id="hideshow"/>
</div>
<div id="mainNavLeftDiv">
<ul id="showhidenav" style="display: none">
<li><a href="authors?de">Autoren</a></li>
<li><a href="genre?de">Textgattungen</a></li>
<li><a href="topic?de">Themen</a></li>
<li><a href="repo?de">Aufbewahrungsorte</a></li>
<li><a href="date?de">Entstehungszeit</a></li>
</ul>
</div>
<div id="mainNavRightDiv">
<ul>
<li class="active"><a href="search?de">Suche</a></li>
<li><a href="about?de">Editorische Richtlinien</a></li>
<li><a href="partners?de">Kooperationspartner</a></li>
<li><a href="imprint?de">Impressum</a></li>
</ul>
</div>
<div id="subNavRightDiv">
<ul>
<li><xsl:if test="$title_string = 'Personen'"><xsl:call-template name="if_active"/></xsl:if><a href="entities/people.html">Personenindex</a></li>
<li><xsl:if test="$title_string = 'Institutionen'"><xsl:call-template name="if_active"/></xsl:if><a href="entities/organizations.html">Institutionenindex</a></li>
<li><xsl:if test="$title_string = 'Werke'"><xsl:call-template name="if_active"/></xsl:if><a href="entities/works.html">Werkindex</a></li>
<li><xsl:if test="$title_string = 'Orte'"><xsl:call-template name="if_active"/></xsl:if><a href="entities/locations.html">Ortsindex</a></li>
</ul>
</div>
<div id="mainNavLeftAbschlussDiv" style="border-top:1px solid #fff;"/>
<div id="mainNavRightAbschlussDiv"/>
</div>
</div>
<div id="hintergrundBeigeNav"/>
<div id="navLangDiv">
<div id="navLangContentDiv"> de | <a href="entities/{@xml:id}+en">en</a> |
<a href="entities/{@xml:id}+fr">fr</a></div>
</div>
<div id="navLangAbschlussDiv"></div>
<div id="abcDiv">
<xsl:choose>
<xsl:when test="$title_string = 'Personen'">
<xsl:for-each select="doc('../indices/people.xml')//person/persName[count(. | key('surname-firstletter', substring(surname[not(@type='birth')], 1, 1))[1]) = 1]">
<xsl:sort select="surname" />
<xsl:variable name="cur_ind" select="substring(surname[not(@type='birth')], 1, 1)"/>
<a href="entities/people.html#{$cur_ind}"><xsl:value-of select="$cur_ind"/></a><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Orte'">
<xsl:for-each select="doc('../indices/locations.xml')//place[count(. | key('loc-firstletter', substring(*[not(preceding-sibling::*)], 1, 1))[1]) = 1]">
<xsl:sort select="*[1]" />
<xsl:variable name="cur_ind" select="substring(*[1], 1, 1)"/>
<a href="entities/locations.html#{$cur_ind}"><xsl:value-of select="$cur_ind"/></a><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Institutionen'">
<xsl:for-each select="doc('../indices/organizations.xml')//org[count(. | key('org-firstletter', substring(orgName, 1, 1))[1]) = 1]">
<xsl:sort select="orgName" />
<xsl:variable name="cur_ind" select="substring(orgName, 1, 1)"/>
<a href="entities/organizations.html#{$cur_ind}"><xsl:value-of select="$cur_ind"/></a><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Werke'">
<xsl:for-each select="doc('../indices/people.xml')//person[@xml:id=$comp_id]/persName[count(. | key('comp_id_surname_firstletter', substring(surname, 1, 1))[1]) = 1]">
<xsl:sort select="surname" />
<xsl:variable name="cur_ind" select="substring(surname, 1, 1)"/>
<a href="entities/people.html#{$cur_ind}"><xsl:value-of select="$cur_ind"/></a><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:when>
</xsl:choose>
</div>
<div id="contentDiv">
<div id="contentEineBreiteSpalteDiv" class="namensliste">
<!-- Sortierung mit «Muenchian Method» -->
<xsl:choose>
<xsl:when test="$title_string = 'Personen'">
<xsl:for-each select="doc('../indices/people.xml')//person/persName[count(. | key('surname-firstletter', substring(surname[not(@type='birth')], 1, 1))[1]) = 1]">
<xsl:sort select="surname[not(@type='birth')]" />
<xsl:variable name="cur_ind" select="substring(surname[not(@type='birth')], 1, 1)"/>
<h3 id="{$cur_ind}"><xsl:value-of select="$cur_ind"/></h3>
<xsl:for-each select="key('surname-firstletter', $cur_ind)">
<xsl:sort select="surname[not(@type='birth')]"/>
<xsl:sort select="forename[not(@type='unused')][1]"/>
<p><a href="entities/{../@xml:id}.html"><xsl:value-of select="surname[not(@type='birth')]"/>,
<xsl:value-of select="forename[not(@type='unused')]"/>
<xsl:if test="nameLink">
<xsl:text> </xsl:text><xsl:value-of select="nameLink"/>
</xsl:if>
<xsl:if test="addName[@type='nick']">
<xsl:text> </xsl:text><xsl:value-of select="addName[@type='nick']"/>»)
</xsl:if>
</a></p>
</xsl:for-each>
<p><a href="entities/people.html#oben">[nach oben]</a></p>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Orte'">
<xsl:for-each select="doc('../indices/locations.xml')//place[count(. | key('loc-firstletter', substring(*[not(preceding-sibling::*)], 1, 1))[1]) = 1]">
<xsl:sort select="*[1]" />
<xsl:variable name="cur_ind" select="substring(*[1], 1, 1)"/>
<h3 id="{$cur_ind}"><xsl:value-of select="$cur_ind"/></h3>
<xsl:for-each select="key('loc-firstletter', $cur_ind)">
<xsl:sort select="*[1]"/>
<p><a href="entities/{@xml:id}.html"><xsl:value-of select="*[1]"/></a></p>
</xsl:for-each>
<p><a href="entities/locations.html#oben">[nach oben]</a></p>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Institutionen'">
<xsl:for-each select="doc('../indices/organizations.xml')//org[count(. | key('org-firstletter', substring(orgName, 1, 1))[1]) = 1]">
<xsl:sort select="orgName" />
<xsl:variable name="cur_ind" select="substring(orgName, 1, 1)"/>
<h3 id="{$cur_ind}"><xsl:value-of select="$cur_ind"/></h3>
<xsl:for-each select="key('org-firstletter', $cur_ind)">
<xsl:sort select="orgName"/>
<p><a href="entities/{@xml:id}.html"><xsl:value-of select="orgName"/></a></p>
</xsl:for-each>
<p><a href="entities/organizations.html#oben">[nach oben]</a></p>
</xsl:for-each>
</xsl:when>
<xsl:when test="$title_string = 'Werke'">
<xsl:for-each select="doc('../indices/people.xml')//person[@xml:id=$comp_id]/persName[count(. | key('comp_id_surname_firstletter', substring(surname, 1, 1))[1]) = 1]">
<xsl:sort select="surname" />
<xsl:variable name="cur_ind" select="substring(surname, 1, 1)"/>
<h3 id="{$cur_ind}"><xsl:value-of select="$cur_ind"/></h3>
<xsl:for-each select="key('comp_id_surname_firstletter', $cur_ind)">
<xsl:sort select="surname"/>
<xsl:sort select="forename[not(@type='unused')][1]"/>
<xsl:variable name="cur_id" select="../@xml:id"/>
<dt><a href="javascript:return false" class="open active"><img src="imgs/pfeil_nav.gif" style="padding-bottom:2px;padding-right:5px;"/><xsl:value-of select="surname"/>,
<xsl:value-of select="forename[not(@type='unused')]"/>
<xsl:if test="nameLink">
<xsl:text> </xsl:text><xsl:value-of select="nameLink"/>
</xsl:if>
<xsl:if test="addName[@type='nick']">
<xsl:text> </xsl:text><xsl:value-of select="addName[@type='nick']"/>»)
</xsl:if>
</a></dt>
<dd class="ergebnisSuche" style="display: block">
<ul class="ergebnisSuche">
<xsl:for-each select="doc('../indices/works.xml')//biblStruct/monogr[child::author[@ref=concat('#', $cur_id)]]">
<xsl:sort select="title[1]"/>
<li><a href="entities/{../@xml:id}.html"><xsl:value-of select="title[1]"/></a></li>
</xsl:for-each>
</ul>
</dd>
</xsl:for-each>
<p><a href="entities/works.html#oben">[nach oben]</a></p>
</xsl:for-each>
</xsl:when>
</xsl:choose>
</div>
</div>
<div id="abschlussLinieContentBreiteSpalteDiv"/>
<div id="footerDiv" style="width:875px;">
<a href="http://www.hu-berlin.de/" target="_blank">
<img src="imgs/logo-hu.jpg"/>
</a>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template name="if_active">
<xsl:attribute name="class" select="'active'"/><img src="imgs/pfeil_nav_grau.gif" style="padding-bottom:2px;padding-right:5px;"/>
</xsl:template>
<!-- Resultat-Dokumente -->
<!-- Achtung: unter Linux braucht der href=""-Pfad jeweils "../../", unter Windows nur "../" – warum auch immer -->
<xsl:template match="/">
<xsl:result-document method="html" href="../www/entities/people.html">
<xsl:call-template name="html_tree">
<xsl:with-param name="title_string" select="'Personen'"/>
</xsl:call-template>
</xsl:result-document>
<xsl:result-document method="html" href="../www/entities/locations.html">
<xsl:call-template name="html_tree">
<xsl:with-param name="title_string" select="'Orte'"/>
</xsl:call-template>
</xsl:result-document>
<xsl:result-document method="html" href="../www/entities/organizations.html">
<xsl:call-template name="html_tree">
<xsl:with-param name="title_string" select="'Institutionen'"/>
</xsl:call-template>
</xsl:result-document>
<xsl:result-document method="html" href="../www/entities/works.html">
<xsl:call-template name="html_tree">
<xsl:with-param name="title_string" select="'Werke'"/>
</xsl:call-template>
</xsl:result-document>
<!--<xsl:result-document method="html" href="../../www/entities/bibliography.html">
<xsl:call-template name="html_tree">
<xsl:with-param name="title_string" select="'Literatur'"/>
</xsl:call-template>
</xsl:result-document>-->
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs" version="2.0">
<xsl:output method="text" encoding="UTF-8" media-type="text/plain"/>
<xsl:template match="/">
<xsl:result-document method="text" href="../www/js/locations-map.js">
<xsl:call-template name="js_tree"/>
</xsl:result-document>
</xsl:template>