2006-01-06 18:59:33 +01:00
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version= "1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xsl">
2006-04-22 15:36:06 +02:00
<xsl:include href= "../common.xsl" />
2006-01-06 19:55:19 +01:00
2006-01-06 18:59:33 +01:00
<xsl:output method= "xml"
version="1.0"
encoding="utf-8"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="DTD/xhtml1-strict.dtd"
indent="yes"/>
2006-04-22 15:36:06 +02:00
<xsl:strip-space elements= "p ul td" />
2006-04-22 00:40:06 +02:00
2006-01-06 18:59:33 +01:00
<xsl:template match= "/page" >
2006-01-14 19:41:48 +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>
2006-01-06 18:59:33 +01:00
<html xmlns= "http://www.w3.org/1999/xhtml" lang= "de" xml:lang= "de" >
2006-04-28 23:57:52 +02:00
<xsl:call-template name= "htmlhead" >
<xsl:with-param name= "title" select= "$title" />
</xsl:call-template>
2006-01-06 18:59:33 +01:00
<body >
2007-05-01 20:05:20 +02:00
<img src= "images/datenspuren-2007.png" id= "logo" width= "128" height= "128"
2006-04-22 15:36:06 +02:00
alt="Datenspuren" title="Datenspuren"/>
2006-04-22 00:40:03 +02:00
<xsl:call-template name= "heading" >
2006-04-22 15:36:06 +02:00
<xsl:with-param name= "title" select= "$title" />
</xsl:call-template>
2006-01-06 18:59:33 +01:00
<div id= "bodyText" >
<xsl:apply-templates />
</div>
2006-04-22 15:36:06 +02:00
<xsl:call-template name= "ending" />
2006-04-22 00:40:03 +02:00
</body>
</html>
</xsl:template>
<!-- Parse XHTML schedule generated by Pentabarf[tm] -->
2006-05-08 02:58:41 +02:00
<!-- Da ich hier nicht lange frickeln wollte, wird xhtml nochmal als
extra NS behandelt, also jegliche Elemente in XPath mit xhtml:
prefixen
Weiterhin ist Pentabarf-Output XHTML und kein schicker XML-Dialekt.
Dafür haben wir da drin aber schon eine schicke Tabellenstruktur. Für
die <td /> s usw. extra Templates anzulegen war mir zu unsauber, deshalb
wird hier überall manuell durchiteriert.
Vorgehensweise klar? -~~~~ -->
<xsl:template xmlns:xhtml= "http://www.w3.org/1999/xhtml" match= "/xhtml:html" >
2006-04-28 23:57:52 +02:00
<xsl:variable name= "title" > Programm</xsl:variable>
2006-04-22 00:40:03 +02:00
<html xmlns= "http://www.w3.org/1999/xhtml" lang= "de" xml:lang= "de" >
2006-04-28 23:57:52 +02:00
<xsl:call-template name= "htmlhead" >
<xsl:with-param name= "title" select= "$title" />
2006-05-09 12:44:28 +02:00
</xsl:call-template>
2006-04-22 00:40:03 +02:00
<body >
<xsl:call-template name= "heading" >
2006-04-28 23:57:52 +02:00
<xsl:with-param name= "title" select= "$title" />
2006-04-22 00:40:03 +02:00
</xsl:call-template>
2006-05-08 02:58:41 +02:00
2006-04-22 00:40:03 +02:00
<div id= "bodyText" >
2006-05-08 02:58:41 +02:00
<table cellpadding= "4" cellspacing= "6" class= "schedule" >
<xsl:for-each select= "xhtml:body/xhtml:div/xhtml:div/xhtml:table" >
2006-05-09 12:44:28 +02:00
<tr >
<th align= "center" colspan= "3" class= "scheduledate" >
2006-05-08 02:58:41 +02:00
<xsl:choose >
2007-04-29 16:02:33 +02:00
<xsl:when test= "position()=1" > 5. Mai</xsl:when>
<xsl:when test= "position()=2" > 6. Mai</xsl:when>
2006-05-08 02:58:41 +02:00
</xsl:choose>
2006-05-09 12:44:28 +02:00
</th>
2006-05-09 12:28:12 +02:00
</tr>
2006-05-08 02:58:41 +02:00
2006-05-09 12:28:12 +02:00
<tr >
2006-05-08 02:58:41 +02:00
<xsl:for-each select= "xhtml:thead/xhtml:tr/xhtml:th" >
<th >
<xsl:if test= "xhtml:strong" >
<xsl:attribute name= "class" > schedulehead</xsl:attribute>
<xsl:value-of select= "." />
</xsl:if>
</th>
</xsl:for-each>
2006-05-09 12:44:28 +02:00
</tr>
2006-05-08 02:58:41 +02:00
2006-05-09 12:46:07 +02:00
<xsl:for-each select= "xhtml:tbody/xhtml:tr" >
<tr >
<xsl:for-each select= "xhtml:td" >
<xsl:if test= "@class" >
<td >
<xsl:attribute name= "class" >
2006-05-08 02:58:41 +02:00
<xsl:choose >
2006-05-09 12:46:07 +02:00
<xsl:when test= "@class='time'" > scheduletime</xsl:when>
<xsl:when test= "@class='room event '" > scheduleevent</xsl:when>
<xsl:otherwise > scheduleempty</xsl:otherwise>
2006-05-08 02:58:41 +02:00
</xsl:choose>
2006-05-09 12:46:07 +02:00
</xsl:attribute>
<xsl:attribute name= "rowspan" >
<xsl:value-of select= "@rowspan" />
</xsl:attribute>
<xsl:choose >
<xsl:when test= 'count(*)=0' >
<!-- Zeit oder leer -->
<xsl:value-of select= "." />
</xsl:when>
<xsl:otherwise >
<!-- Event -->
<a >
2006-05-09 13:35:20 +02:00
<xsl:attribute name= "class" > event</xsl:attribute>
2006-05-10 15:18:00 +02:00
<xsl:attribute name= "href" > <xsl:value-of select= "concat('http://www.datenspuren.de', xhtml:p[@class='title']/xhtml:a/@href)" /> </xsl:attribute>
2006-05-09 12:46:07 +02:00
<xsl:value-of select= "xhtml:p[@class='title']" />
</a>
<ul >
<xsl:for-each select= "xhtml:ul[@class='speakers']/xhtml:li/xhtml:a" >
<li >
<a >
2006-05-10 15:18:00 +02:00
<xsl:attribute name= "href" > <xsl:value-of select= "concat('http://www.datenspuren.de', @href)" /> </xsl:attribute>
2006-05-09 12:46:07 +02:00
<xsl:value-of select= "." />
</a>
</li>
</xsl:for-each>
</ul>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:if>
</xsl:for-each>
</tr>
</xsl:for-each>
2006-05-08 02:58:41 +02:00
</xsl:for-each>
</table>
2006-04-22 00:40:03 +02:00
</div>
2006-05-08 02:58:41 +02:00
2006-04-22 00:40:03 +02:00
<xsl:call-template name= "ending" />
2006-01-06 18:59:33 +01:00
</body>
</html>
</xsl:template>
2006-04-22 00:40:03 +02:00
<xsl:template name= "htmlhead" >
<xsl:param name= "title" />
<head >
<meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" />
<meta name= "description" content= "Symposium Datenspuren - Privatsphäre war gestern, 08.05.2005, Kulturzentrum Scheune, veranstaltet vom Chaos Computer Club Dresden" />
<meta name= "keywords" content= "Symposium Datenspuren,c3d2,Chaos Computer Club,CCC,Dresden,Datenschutz,Privatsphäre,Anonymität,informationelle Selbstbestimmung,Überwachung,Data Mining,ETSI,RFID,Mautsystem,Remailer,TCPA,TCG" />
<meta name= "robots" content= "index,follow" />
<meta name= "language" content= "German" />
<link rel= "stylesheet" type= "text/css" href= "style/style.css" />
<title >
2008-02-29 19:37:04 +01:00
<xsl:text > Datenspuren 2008 - </xsl:text>
2006-04-22 00:40:03 +02:00
<xsl:value-of select= "$title" />
</title>
</head>
</xsl:template>
<xsl:template name= "heading" >
<div id= "header" >
2008-02-29 19:37:04 +01:00
<h1 > Datenspuren 2008</h1>
2006-04-22 00:40:03 +02:00
<h2 > Privatsphäre war gestern</h2>
</div>
<div class= "leftSideBar" >
<div class= "sideBarTitle" > Termin</div>
<span >
2006-04-22 15:36:06 +02:00
Samstag & Sonntag,<br />
2008-02-29 19:37:04 +01:00
7. & 8. Juni 2008<br />
2006-04-22 00:40:03 +02:00
<br />
</span>
<div class= "sideBarTitle" > Ort</div>
<a href= "http://www.scheune.org/" > Kulturzentrum Scheune</a>
<span >
Alaunstr. 36-40<br />
01099 Dresden<br />
2006-04-22 15:36:06 +02:00
<a href= "veranstaltungsort.html" > [mehr...]</a>
2006-04-22 00:40:03 +02:00
<br />
</span>
<div class= "sideBarTitle" > Symposium</div>
2006-04-22 13:54:30 +02:00
<a href= "index.html" > Home</a>
2007-02-25 16:19:34 +01:00
<!-- <a href="info.html">Info</a> -->
2008-02-29 19:33:24 +01:00
<!-- a href="schedule.html">Fahrplan</a -->
<!-- a href="party.html">Lounge&Filme</a -->
2007-05-02 10:47:32 +02:00
<!-- <a href="vortraege.html">Vorträge</a> -->
2008-02-29 19:33:24 +01:00
<!-- <a href="presse.html">Presse</> -->
<!-- <a href="cfp.html">Call for Papers</a> -->
2006-04-22 00:40:03 +02:00
<a href= "mitschnitte.html" > Mitschnitte</a>
2006-05-09 16:08:27 +02:00
<!-- <a href="flyer_ds_2005.pdf">Flyer</a
<a href= "images/dsfront.png" > Flyer-vorn</a>
<a href= "images/dsback.png" > Flyer-hinten</a> -->
2006-04-22 00:40:03 +02:00
<br />
<br />
2007-02-24 21:56:47 +01:00
<a href= "2004/" > 2004</a>
<a href= "2005/" > 2005</a>
<a href= "2006/" > 2006</a>
2008-02-29 19:33:24 +01:00
<a href= "2007/" > 2007</a>
2006-04-29 10:33:56 +02:00
<br />
2006-04-22 00:40:03 +02:00
</div>
</xsl:template>
<xsl:template name= "ending" >
<div id= "footer" >
<div >
2008-02-29 19:37:04 +01:00
Copyleft 2008, <a href= "http://www.c3d2.de/" > Chaos Computer Club Dresden</a> |
2007-02-24 21:56:47 +01:00
<a href= "mailto:mail@c3d2.de" title= "eMail webmaster" > mail@c3d2.de</a> </div>
2006-04-22 00:40:03 +02:00
</div>
</xsl:template>
2006-04-22 15:36:06 +02:00
2006-01-06 18:59:33 +01:00
</xsl:stylesheet>