Commit fe07ba50 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

restored tei-conf

parent e8d77a3f
.
./simile
./simile/C07.xml
./simile/simile-timeline-from-header.xsl
./simile/godwin-simile-timeline.xml
./simile/c07-simile-timeline.xml
./simile/index.html
./simile/simile-timeline-godwin.xsl
./simile/godwin-simile-timeline.html
./find.txt
./rtt
./rtt/C07.xml
./rtt/graphml2.xsl
./rtt/.c07.html.swp
./rtt/c07-complete.json
./rtt/reingold-tilford-tree.xsl
./rtt/reingold-tilford-tree.zip
./rtt/c07.json
./rtt/graphml.xsl
./rtt/index.html
./rtt/Unbenannt1.json
./rtt/indent-class.html
./rtt/c072.html
./rtt/d3.v3.js
./rtt/c072.json
./index.html
./heb
./heb/C07.xml
./heb/c07-network
./heb/packages.js
./heb/d3.layout.js
./heb/TEI2xml-network.xsl
./heb/d3.js
./heb/c07-network-experiment.json
./heb/c07-network.xml
./heb/index.html
./heb/script.js
./heb/c07-network.json
./net
./net/c07.json
./net/index.html
./net/d3.v3.js
./index
./index/bg.png
./index/logo.png
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:wgs84_pos="http://www.w3.org/2003/01/geo/wgs84_pos#">
<Folder>
<Placemark>
<name>Thueringen</name>
<address>Thueringen</address>
<TimeStamp>
<when>1873</when>
</TimeStamp>
</Placemark>
<Placemark>
<name>Eisenach</name>
<address>Eisenach</address>
<TimeStamp>
<when>1496</when>
</TimeStamp>
<Point>
<coordinates>10.31522,50.9807</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Eisleben</name>
<address>Eisleben</address>
<TimeStamp>
<when>1483</when>
</TimeStamp>
<Point>
<coordinates>11.54835,51.52754</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Eisenach</name>
<address>Eisenach</address>
<TimeStamp>
<when>1501</when>
</TimeStamp>
<Point>
<coordinates>10.31522,50.9807</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Erfurt</name>
<address>Erfurt</address>
<TimeSpan>
<begin>1501</begin>
<end>1505</end>
</TimeSpan>
<Point>
<coordinates>11.03283,50.9787</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Kloster_EF</name>
<address>Kloster_EF</address>
<TimeStamp>
<when>1505</when>
</TimeStamp>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>11.0292193,50.9813051
11.0294554,50.9813855
11.0294458,50.9813961
11.0294209,50.9814233
11.029372,50.981477
11.029535,50.9815359
11.0295552,50.9815138
11.02978,50.9815944
11.0302073,50.9817308
11.0303574,50.9815647
11.0304522,50.9814403
11.0307522,50.9811434
11.0309225,50.9809657
11.0309518,50.9809059
11.0306146,50.9808504
11.0304795,50.9808541
11.0302407,50.9808346
11.030095,50.9808029
11.0299801,50.9807716
11.0298563,50.980743
11.029731,50.9806962
11.0296633,50.9807717
11.0295469,50.9809032
11.0294579,50.9810068
11.0294496,50.9810172
11.029424,50.981048
11.0292193,50.9813051
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<Point>
<coordinates>11.0292193,50.9813051</coordinates>
</Point>
</MultiGeometry>
</Placemark>
<Placemark>
<name>Kloster_EF</name>
<address>Kloster_EF</address>
<TimeStamp>
<when>1508</when>
</TimeStamp>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>11.0292193,50.9813051
11.0294554,50.9813855
11.0294458,50.9813961
11.0294209,50.9814233
11.029372,50.981477
11.029535,50.9815359
11.0295552,50.9815138
11.02978,50.9815944
11.0302073,50.9817308
11.0303574,50.9815647
11.0304522,50.9814403
11.0307522,50.9811434
11.0309225,50.9809657
11.0309518,50.9809059
11.0306146,50.9808504
11.0304795,50.9808541
11.0302407,50.9808346
11.030095,50.9808029
11.0299801,50.9807716
11.0298563,50.980743
11.029731,50.9806962
11.0296633,50.9807717
11.0295469,50.9809032
11.0294579,50.9810068
11.0294496,50.9810172
11.029424,50.981048
11.0292193,50.9813051
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<Point>
<coordinates>11.0292193,50.9813051</coordinates>
</Point>
</MultiGeometry>
</Placemark>
<Placemark>
<name>Erfurt</name>
<address>Erfurt</address>
<TimeStamp>
<when>1508</when>
</TimeStamp>
<Point>
<coordinates>11.03283,50.9787</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Wittenberg</name>
<address>Wittenberg</address>
<TimeStamp>
<when>1512</when>
</TimeStamp>
<Point>
<coordinates>12.60603,51.87437</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Wittenberg</name>
<address>Wittenberg</address>
<TimeStamp>
<when>1517</when>
</TimeStamp>
<Point>
<coordinates>12.60603,51.87437</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Wittenberg</name>
<address>Wittenberg</address>
<TimeStamp>
<when>1515</when>
</TimeStamp>
<Point>
<coordinates>12.60603,51.87437</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Schlosskirche_WB</name>
<address>Schlosskirche_WB</address>
<TimeStamp>
<when>1517</when>
</TimeStamp>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>12.6379711,51.8662482
12.6375714,51.8663063
12.6376298,51.86645
12.6376085,51.8664644
12.6375964,51.8664808
12.6375927,51.8665009
12.6376003,51.8665211
12.6376181,51.8665383
12.6376368,51.8665482
12.6376693,51.8665566
12.6377023,51.8665576
12.6377277,51.8665536
12.6377569,51.8665421
12.6377778,51.8665253
12.6377882,51.8665035
12.6377857,51.8664827
12.6377772,51.866469
12.6377706,51.8664624
12.6378246,51.8664533
12.6381208,51.866416
12.6384627,51.866373
12.6385048,51.8663134
12.638504,51.8662669
12.6384733,51.8662296
12.6383884,51.8661914
12.6379711,51.8662482
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<Point>
<coordinates>12.6379711,51.8662482</coordinates>
</Point>
</MultiGeometry>
</Placemark>
<Placemark>
<name>Worms</name>
<address>Worms</address>
<TimeStamp>
<when>1521</when>
</TimeStamp>
<Point>
<coordinates>8.35916,49.63278</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Worms</name>
<address>Worms</address>
<TimeSpan>
<begin>1521-05-04</begin>
<end>1522-05-06</end>
</TimeSpan>
<Point>
<coordinates>8.35916,49.63278</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Wittenberg</name>
<address>Wittenberg</address>
<TimeSpan>
<begin>1530-04-16</begin>
<end>1530-10-06</end>
</TimeSpan>
<Point>
<coordinates>12.60603,51.87437</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Lutherhaus</name>
<address>Lutherhaus</address>
<TimeStamp>
<when>1537</when>
</TimeStamp>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>10.4532054,50.7225281
10.4532424,50.7224842
10.4532783,50.7224416
10.453502,50.7225172
10.4534953,50.7225251
10.4534279,50.7226033
10.4532054,50.7225281
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<Point>
<coordinates>10.4532054,50.7225281</coordinates>
</Point>
</MultiGeometry>
</Placemark>
<Placemark>
<name>Schmalkalden</name>
<address>Schmalkalden</address>
<TimeStamp>
<when>1531</when>
</TimeStamp>
<Point>
<coordinates>10.44386,50.72136</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Thueringen</name>
<address>Thueringen</address>
<TimeSpan>
<begin/>
<end>528</end>
</TimeSpan>
</Placemark>
<Placemark>
<name>Thueringen</name>
<address>Thueringen</address>
<TimeStamp>
<when>450</when>
</TimeStamp>
</Placemark>
<Placemark>
<name>Thueringen</name>
<address>Thueringen</address>
<TimeStamp>
<when>1125</when>
</TimeStamp>
</Placemark>
<Placemark>
<name>HRR</name>
<address>HRR</address>
<TimeSpan>
<begin>1125</begin>
<end>1425</end>
</TimeSpan>
</Placemark>
<Placemark>
<name>HRR</name>
<address>HRR</address>
<TimeStamp>
<when>1440</when>
</TimeStamp>
</Placemark>
<Placemark>
<name>Ahnengruft_zu_Reinhardsbrunn</name>
<address>Ahnengruft_zu_Reinhardsbrunn</address>
<TimeSpan>
<begin>1125</begin>
<end>1425</end>
</TimeSpan>
<Point>
<coordinates>10.55912,50.86171</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Thueringen</name>
<address>Thueringen</address>
<TimeSpan>
<begin>1440</begin>
<end>1547</end>
</TimeSpan>
</Placemark>
</Folder>
</kml>
\ No newline at end of file
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wgs84_pos="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="tei xs" version="2.0">
<xsl:template match="/">
<kml xmlns="http://www.opengis.net/kml/2.2">
<Folder>
<xsl:apply-templates select="//tei:sourceDoc//tei:date"/>
</Folder>
</kml>
</xsl:template>
<xsl:template match="tei:date">
<xsl:if test="not(./@prev)">
<xsl:variable name="place_id">
<xsl:choose>
<xsl:when test="(name(following::element()[1]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[1]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[1]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[1]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[1]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[1]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[2]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[2]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[2]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[2]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[2]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[2]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[3]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[3]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[3]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[3]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[3]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[3]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[4]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[4]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[4]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[4]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[4]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[4]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[5]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[5]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[5]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[5]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[5]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[5]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[6]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[6]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[6]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[6]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[6]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[6]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(following::element()[7]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/following::element()[7]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/following::element()[7]/@ref,2)"/>
</xsl:when>
<xsl:when test="(name(preceding::element()[7]) eq 'rs') and (name(//tei:sourceDesc//*[@xml:id eq substring(current()/preceding::element()[7]/@ref,2)]) eq 'place')">
<xsl:value-of select="substring(current()/preceding::element()[7]/@ref,2)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$place_id ne ''">
<Placemark xmlns="http://www.opengis.net/kml/2.2">
<name>
<xsl:value-of select="$place_id"/>
</name>
<address>
<xsl:value-of select="$place_id"/>
</address>
<xsl:choose>
<xsl:when test="./@when-iso">
<TimeStamp>
<when>
<xsl:value-of select="./@when-iso"/>
</when>
</TimeStamp>
</xsl:when>
<xsl:otherwise>
<TimeSpan>
<begin>
<xsl:value-of select="./@notBefore-iso"/>
</begin>
<end>
<xsl:value-of select="./@notAfter-iso"/>
</end>
</TimeSpan>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<!-- <xsl:when test="//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno/@type eq 'Wikipedia'">-->
<!-- <Point>-->
<!-- <coordinates>-->
<!-- <xsl:value-of select="document(concat('http://de.wikipedia.org/wiki/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno))//span[@class eq 'longitude']"/>-->
<!-- <xsl:text>,</xsl:text>-->
<!-- <xsl:value-of select="document(concat('http://de.wikipedia.org/wiki/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno))//span[@class eq 'latitude']"/>-->
<!-- </coordinates>-->
<!-- </Point>-->
<!-- </xsl:when>-->
<xsl:when test="//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno/@type eq 'GeoNames'">
<Point>
<coordinates>
<xsl:value-of select="document(concat('http://sws.geonames.org/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno,'/about.rdf'))//wgs84_pos:long"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="document(concat('http://sws.geonames.org/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno,'/about.rdf'))//wgs84_pos:lat"/>
</coordinates>
</Point>
</xsl:when>
<xsl:when test="//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno/@type eq 'OpenStreetMap'">
<MultiGeometry>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
<xsl:for-each select="document(concat('http://www.openstreetmap.org/api/0.6/way/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno))//nd/@ref">
<xsl:value-of select="document(concat('http://www.openstreetmap.org/api/0.6/node/',.))//node/@lon"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="document(concat('http://www.openstreetmap.org/api/0.6/node/',.))//node/@lat"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<Point>
<coordinates>
<xsl:value-of select="document(concat('http://www.openstreetmap.org/api/0.6/node/',document(concat('http://www.openstreetmap.org/api/0.6/way/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno))//nd[1]/@ref))//node/@lon"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="document(concat('http://www.openstreetmap.org/api/0.6/node/',document(concat('http://www.openstreetmap.org/api/0.6/way/',//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno))//nd[1]/@ref))//node/@lat"/>
</coordinates>
</Point>
</MultiGeometry>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="//tei:sourceDesc//*[@xml:id eq $place_id]/tei:idno/@type"/>
</xsl:otherwise>
</xsl:choose>
<!-- <Point>
<coordinates>
<xsl:value-of select="document(concat('http://nominatim.openstreetmap.org/search?format=xml&q=',$place_id))/searchresults/place[1]/@lon"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="document(concat('http://nominatim.openstreetmap.org/search?format=xml&q=',$place_id))/searchresults/place[1]/@lat"/>
</coordinates>
</Point>
-->
</Placemark>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
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="tei xs" version="2.0">
<xsl:variable name="step1" />
<xsl:template match="/">
<xsl:result-document href="c07.html" indent="yes">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<style type="text/css">
path.arc{
cursor:move;
fill:#fff;
}
.node{
font-size:12px;
font-family:'Ubuntu Condensed', Verdana, sans-serf, sans;
}
.node:hover{
fill:#1f77b4;
}
.link{
fill:none;
stroke:#1f77b4;
stroke-opacity:.4;
pointer-events:none;
}
.link.source,
.link.target{
stroke-opacity:1;
stroke-width:2px;
}
.node.target{
fill:#d62728 !important;
}
.link.source{
stroke:#d62728;
}
.node.source{
fill:#2ca02c;
}
.link.target{
stroke:#2ca02c;
}</style>
</head>
<body>
<div style="z-index:100;position:fixed;bottom:0;font-size:18px;font-family:'Ubuntu Condensed', Verdana, sans-serf, sans;">tension: <input
style="position:relative;top:3px;" type="range" min="-50" max="130"
value="85"/></div>
<script type="text/javascript" src="d3.js"/>
<script type="text/javascript" src="d3.layout.js"/>
<script type="text/javascript" src="packages.js"/>
<script type="text/javascript" src="script.js"/>
</body>
</html>
</xsl:result-document>
<xsl:variable name="step1"><xsl:element name="C07">
<xsl:apply-templates select="//tei:rs"/>
</xsl:element>
</xsl:variable>
<xsl:result-document href=