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"
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"
exclude-result-prefixes="xsl date dc itunes">
<xsl:include href= "../common.xsl" />
<xsl:output method= "xml"
version="1.0"
encoding="utf-8"
indent="yes"/>
<xsl:strip-space elements= "p ul td" />
<xsl:template match= "/page" >
<xsl:text disable-output-escaping= "yes" > < !DOCTYPE html>
</xsl:text>
<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>
<html lang= "de" xml:lang= "de" dir= "ltr" >
<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>
</nav>
<article >
<xsl:apply-templates />
</article>
</div>
</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" />
<link rel= "stylesheet" type= "text/css" href= "autotopia.css" />
<link rel= "shortcut icon" href= "images/favicon.ico" type= "image/x-icon" />
<!-- 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>
<a href= "https://www.c3d2.de/{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html" class= "url" >
<xsl:value-of select= "@title" />
</a>
</h3>
<!-- Diese Elemente entsprechen Block.class aus xsd/c3d2web.xsd -->
<!-- xsl:apply - templates select=".//*[name() = 'dl' or name() = 'p' or name() = 'ul' or name() = 'ol' or name() = 'pre']"/ -->
<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-03-26 18:42:28 +01:00
<xsl:template match= "table" >
<xsl:copy-of select= "." />
</xsl:template>
2019-02-27 23:49:28 +01:00
</xsl:stylesheet>