2019-02-27 23:49:28 +01:00
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version= "1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:date="http://exslt.org/dates-and-times"
2019-04-16 15:36:32 +02:00
xmlns:str="http://exslt.org/strings"
2019-02-27 23:49:28 +01:00
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
2019-04-16 15:36:32 +02:00
exclude-result-prefixes="xsl date str dc itunes">
2019-02-27 23:49:28 +01:00
2019-04-16 15:36:32 +02:00
<xsl:include href= "../common.xsl" />
2019-02-27 23:49:28 +01:00
<xsl:output method= "xml"
version="1.0"
encoding="utf-8"
indent="yes"/>
<xsl:strip-space elements= "p ul td" />
<xsl:template match= "/page" >
2019-04-18 22:23:16 +02:00
<xsl:text disable-output-escaping= "yes" > < !DOCTYPE html> </xsl:text>
2019-02-27 23:49:28 +01:00
<xsl:variable name= "title" >
<xsl:choose >
<xsl:when test= "/page/@pagetitle" >
<xsl:value-of select= "/page/@pagetitle" />
</xsl:when>
<xsl:when test= "/page/@title" >
<xsl:value-of select= "/page/@title" />
</xsl:when>
<xsl:otherwise >
<xsl:comment > <xsl:text > missing title </xsl:text> </xsl:comment>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
2019-04-18 23:46:15 +02:00
<html lang= "de" xml:lang= "de" dir= "ltr" >
2019-02-27 23:49:28 +01:00
<xsl:call-template name= "htmlhead" >
<xsl:with-param name= "title" select= "$title" />
</xsl:call-template>
<body >
<div class= "wrapper" >
<nav >
<ul >
<li class= "index" >
<a title= "Start" href= "index.html" > Start</a>
</li>
<!-- <li> -->
<!-- <a href="about.html">Über</a> -->
<!-- </li> -->
<!-- <li> -->
<!-- <a href="cfp.html">CfP</a> -->
<!-- </li> -->
<!-- <li> -->
<!-- <a href="fahrplan.html">Programm</a> -->
<!-- </li> -->
</ul>
2020-03-07 02:13:35 +01:00
<div class= "a-content" >
<a href= "{$baseurl}index.html" >
<img title= "Autotopia, Header" alt= "Autotopia, Header" class= "header-image" src= "{$baseurl}autotopia2_flat.svg" />
</a>
</div>
2019-02-27 23:49:28 +01:00
</nav>
<article >
2019-04-16 15:36:32 +02:00
<input type= "radio" id= "lang-de" name= "langselect" checked= "" />
<input type= "radio" id= "lang-en" name= "langselect" />
<div class= "a-content vertical-header" >
<div class= "a-item" >
2019-04-28 21:31:49 +02:00
<label lang= "en" for= "lang-de" > <h1 > Auf deutsch anzeigen</h1> </label>
<label lang= "de-DE" for= "lang-en" > <h1 > Switch to english</h1> </label>
2019-04-16 15:36:32 +02:00
</div>
</div>
<div class= "a-content a-main" >
<xsl:apply-templates />
</div>
<div class= "a-panel a-content" >
<div class= "a-item" >
2019-04-28 21:31:49 +02:00
<h1 > meta</h1>
2019-04-16 15:36:32 +02:00
<p >
2019-04-16 18:48:06 +02:00
<a href= "https://wiki.c3d2.de/GesellschaftMachtTechnik" > wiki</a>
2019-04-16 15:36:32 +02:00
|
2019-04-16 18:48:06 +02:00
<a href= "https://hackmd.c3d2.de/Autotopia" > pad</a>
2019-04-16 15:36:32 +02:00
</p>
<p >
2019-04-16 18:48:06 +02:00
email: <a href= "mailto:autotopia@c3d2.de" > autotopia@c3d2.de</a>
2019-04-16 15:36:32 +02:00
</p>
2020-03-07 16:22:48 +01:00
<!-- <p>
2019-04-17 18:37:10 +02:00
pgp: <a href= "{$baseurl}autotopia@c3d2.de.asc" >
2019-04-16 15:36:32 +02:00
<span lang= "en" > public key</span>
<span lang= "de-DE" > öffentlicher Schlüssel</span>
2019-04-16 18:48:06 +02:00
</a>
2019-04-16 15:36:32 +02:00
| AA02 D6BC 2B6B 5264 E952 145C 54F8 77CE CBC2 D22E
2020-03-07 16:22:48 +01:00
</p> -->
2019-04-16 15:36:32 +02:00
<p >
2019-04-16 18:48:06 +02:00
mastodon: <a href= "https://chaos.social/tags/autotopiadd" > #AutotopiaDD</a> via <a href= "https://chaos.social/@autotopia" > @autotopia</a>
2019-04-16 15:36:32 +02:00
</p>
<p >
2019-04-16 18:48:06 +02:00
twitter: <a href= "https://twitter.com/hashtag/AutotopiaDD?src=hash" > #AutotopiaDD</a> via <a href= "https://twitter.com/AutotopiaDD" > @AutotopiaDD</a>
2019-04-16 15:36:32 +02:00
</p>
</div>
<div class= "a-item" >
2019-04-28 21:31:49 +02:00
<h1 lang= "en" > events</h1>
<h1 lang= "de-DE" > veranstaltungen</h1>
2019-04-21 00:24:16 +02:00
<p >
<table >
<xsl:for-each select= "document('../../autotopia-events.xml')/page/news/newsfile" >
<xsl:sort select= "date:seconds(document(concat('../../', .))/page/event/start)" data-type= "number" order= "ascending" />
<xsl:apply-templates mode= "event-list" select= "document(concat('../../', .))/page/event" >
<xsl:with-param name= "file" select= "." />
</xsl:apply-templates>
</xsl:for-each>
</table>
</p>
2019-04-16 15:36:32 +02:00
</div>
</div>
2019-02-27 23:49:28 +01:00
</article>
</div>
2020-03-07 16:22:48 +01:00
<footer >
<a href= "{$baseurl}code_of_conduct.html" > Code of Conduct</a>
<a href= "{$baseurl}datenschutz.html" > Dateschutzerklärung</a>
</footer>
2019-02-27 23:49:28 +01:00
</body>
</html>
</xsl:template>
<xsl:template name= "htmlhead" >
<xsl:param name= "title" />
<head >
<meta charset= "utf-8" />
<meta http-equiv= "content-type" content= "text/html; charset=UTF-8" />
<meta name= "description" content= "Veranstaltungsreihe die sich mit gesellschaftlichen Auswirkungen von Automatiserung beschäftigt" />
<meta name= "keywords" content= "automatisierung" />
<meta name= "viewport" content= "width=device-width, initial-scale=1, user-scalable=no" />
<meta name= "robots" content= "index,follow" />
<meta name= "language" content= "German" />
2019-04-16 15:36:32 +02:00
<link rel= "stylesheet" type= "text/css" href= "{$baseurl}autotopia.css" />
2020-03-07 16:35:49 +01:00
<link rel= "shortcut icon" href= "{$baseurl}favicon.ico" type= "image/x-icon" />
2019-02-27 23:49:28 +01:00
<!-- link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="news - rss.xml" />
<link rel= "alternate" type= "application/atom+xml" title= "Atom 1.0" href= "news-atom.xml" / - - >
<title >
<xsl:text > Autotopia — </xsl:text>
<xsl:value-of select= "$title" />
</title>
</head>
</xsl:template>
<xsl:template match= "news-list" >
<xsl:variable name= "prefix" select= "@prefix" />
<xsl:variable name= "details" select= "@details" />
<xsl:for-each select= "document('../../news.xml')/page/news/newsfile" >
<xsl:sort select= "date:seconds(document(concat('../../', .))/item/@date)" data-type= "number" order= "descending" />
<xsl:variable name= "newsfile" select= "." />
<xsl:for-each select= "document(concat('../../', $newsfile))/item" >
<xsl:if test= "((string-length($prefix) = 0) or starts-with($newsfile, concat('content/news/', $prefix))) and (($details != 'resources-only') or (count(resource) > 0))" >
<h3 class= "summary" >
<date >
<xsl:call-template name= "get-short-datestring" >
<xsl:with-param name= "date" select= "@date" />
</xsl:call-template>
</date>
2019-04-16 15:51:42 +02:00
<a href= "{$baseurl}/news/{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html" class= "url" >
2019-02-27 23:49:28 +01:00
<xsl:value-of select= "@title" />
</a>
</h3>
<xsl:apply-templates />
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
<xsl:template match= "item/image" >
<!-- Nix Bilder in den Autotopia - News -->
</xsl:template>
2019-04-18 22:23:16 +02:00
2019-04-20 23:48:55 +02:00
<xsl:template match= "event" >
<div class= "a-item" >
<xsl:apply-templates />
</div>
2019-04-18 22:23:16 +02:00
</xsl:template>
2019-03-26 18:42:28 +01:00
2019-04-20 23:48:55 +02:00
<xsl:template match= "event/title" >
2019-04-27 21:29:57 +02:00
<h1 lang= "{@lang}" class= "a-event-title header" >
2019-04-20 23:48:55 +02:00
<xsl:copy-of select= "./node()" />
2019-04-27 21:29:57 +02:00
</h1>
2019-04-20 23:48:55 +02:00
</xsl:template>
<xsl:template match= "event/start" >
<p datetime= "{./text()}" class= "a-event-start" >
<xsl:value-of select= "format-number(date:day-in-month(.), '00')" />
<xsl:text > .</xsl:text>
<xsl:value-of select= "format-number(date:month-in-year(.), '00')" />
<xsl:text > . </xsl:text>
<xsl:value-of select= "format-number(date:hour-in-day(.), '00')" />
<xsl:text > :</xsl:text>
<xsl:value-of select= "format-number(date:minute-in-hour(.), '00')" />
</p>
</xsl:template>
2019-05-02 21:34:14 +02:00
<xsl:template match= "event/location" >
<p lang= "{@lang}" class= "a-event-location" >
2019-05-02 22:49:57 +02:00
<xsl:apply-templates />
2019-04-20 23:48:55 +02:00
</p>
</xsl:template>
<xsl:template match= "event/speaker" >
<p lang= "{@lang}" class= "a-event-speaker" >
2019-05-02 22:49:57 +02:00
<xsl:apply-templates />
2019-04-20 23:48:55 +02:00
</p>
</xsl:template>
<xsl:template match= "event/description" >
2019-04-22 01:20:48 +02:00
<div lang= "{@lang}" class= "a-event-description" >
2019-04-20 23:48:55 +02:00
<xsl:copy-of select= "./node()" />
2019-04-22 01:20:48 +02:00
</div>
2019-04-20 23:48:55 +02:00
</xsl:template>
<xsl:template match= "table" >
2019-03-26 18:42:28 +01:00
<xsl:copy-of select= "." />
</xsl:template>
2019-04-28 21:54:39 +02:00
<xsl:template match= "h1" >
<xsl:copy-of select= "." />
</xsl:template>
2019-02-27 23:49:28 +01:00
2020-03-07 16:22:48 +01:00
<xsl:template match= "h2" >
<xsl:copy-of select= "." />
</xsl:template>
2019-04-16 15:36:32 +02:00
<xsl:template mode= "event-list" match= "event" >
<xsl:param name= "file" />
<tr >
<td >
2019-04-20 23:48:55 +02:00
<time datetime= "{start/text()}" >
<xsl:value-of select= "format-number(date:day-in-month(start), '00')" />
<xsl:text > .</xsl:text>
<xsl:value-of select= "format-number(date:month-in-year(start), '00')" />
<xsl:text > . </xsl:text>
<xsl:value-of select= "format-number(date:hour-in-day(start), '00')" />
<xsl:text > :</xsl:text>
<xsl:value-of select= "format-number(date:minute-in-hour(start), '00')" />
</time>
2019-04-16 15:36:32 +02:00
</td>
2019-05-02 21:34:14 +02:00
<td class= "event-list-location" >
<xsl:value-of select= "location" />
2019-04-16 15:36:32 +02:00
</td>
<td >
2019-04-16 15:51:42 +02:00
<a href= "{$baseurl}{str:replace(str:replace($file, 'content/autotopia/', ''), '.xml', '.html')}" >
2019-04-16 15:36:32 +02:00
<xsl:for-each select= "title" >
2019-04-18 22:23:16 +02:00
<span lang= "{@lang}" class= "event-title" >
2019-04-21 00:45:16 +02:00
<xsl:copy-of select= "./node()" />
2019-04-16 15:36:32 +02:00
</span>
</xsl:for-each>
</a>
2019-04-17 18:37:10 +02:00
<span lang= "en" > by </span>
<span lang= "de-DE" > von </span>
2019-04-16 18:48:06 +02:00
<xsl:value-of select= "speaker" />
2019-04-16 15:36:32 +02:00
</td>
</tr>
</xsl:template>
2019-02-27 23:49:28 +01:00
</xsl:stylesheet>