- Sync Script für News

- ÖH Kundmachung
This commit is contained in:
Andreas Österreicher
2011-06-08 10:09:36 +00:00
parent 622ae9d1a6
commit 1e57069270
5 changed files with 2378 additions and 3037 deletions
-1
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="news">
<xs:element name="datum" type="xs:date"/>
<xs:element name="verfasser" type="xs:string"/>
<xs:element name="betreff" type="xs:string"/>
<xs:element name="text" type="wysiwyg"/>
+80 -7
View File
@@ -8,15 +8,26 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<title>News</title>
</head>
<body>
<h1>News</h1>
<div id="news">
<xsl:apply-templates match="news" />
</div>
<table class="tabcontent">
<tr>
<td valign="top">
<h1>News</h1>
<div id="news">
<xsl:apply-templates select="content/news" />
</div>
</td>
<xsl:if test="content/stg_extras" >
<td></td>
<td class="tdvertical" valign="top" width="20%">
<xsl:apply-templates select="content/stg_extras" />
</td>
</xsl:if>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="news">
<div class="news">
<div class="titel">
<table width="100%">
@@ -32,6 +43,68 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</div>
<br />
</xsl:template>
<xsl:template match="stg_extras">
<h2><b>Studiengangsmanagement</b></h2>
<font face='Arial, Helvetica, sans-serif' size='2'>
<br />
Studiengangsleitung:<br />
<xsl:apply-templates select="stg_ltg" />
<br />
<xsl:if test="gf_ltg">
geschäftsf. Leitung:<br />
<xsl:apply-templates select="gf_ltg" />
<br />
</xsl:if>
<xsl:if test="stv_ltg">
Stellvertreter:<br />
<xsl:apply-templates select="stv_ltg" />
<br />
</xsl:if>
<xsl:if test="ass">
Sekretariat:<br />
<xsl:apply-templates select="ass" />
<br />
</xsl:if>
<xsl:value-of select="zusatzinfo" disable-output-escaping="yes"/>
<xsl:if test="stdv">
<br />
Studentenvertreter:<br />
<xsl:apply-templates select="stdv" />
<br />
</xsl:if>
</font>
</xsl:template>
<xsl:template match="stg_ltg">
<b><xsl:value-of select="name" /></b><br />
<xsl:variable name="mail" select="email"></xsl:variable>
<a href="mailto:{mail}"><xsl:value-of select="email" /></a><br />
Tel.:<xsl:value-of select="telefon" />
<br />
</xsl:template>
<xsl:template match="gf_ltg">
<b><xsl:value-of select="name" /></b><br />
<xsl:variable name="mail" select="email"></xsl:variable>
<a href="mailto:{mail}"><xsl:value-of select="email" /></a><br />
Tel.:<xsl:value-of select="telefon" />
<br />
</xsl:template>
<xsl:template match="stv_ltg">
<b><xsl:value-of select="name" /></b><br />
<xsl:variable name="mail" select="email"></xsl:variable>
<a href="mailto:{mail}"><xsl:value-of select="email" /></a><br />
Tel.:<xsl:value-of select="telefon" />
<br />
</xsl:template>
<xsl:template match="ass">
<b><xsl:value-of select="name" /></b><br />
<xsl:variable name="mail" select="email"></xsl:variable>
<a href="mailto:{mail}"><xsl:value-of select="email" /></a><br />
Tel.:<xsl:value-of select="telefon" />
<br />
</xsl:template>
<xsl:template match="stdv">
<xsl:variable name="mail" select="email"></xsl:variable>
<a href="mailto:{mail}"><xsl:value-of select="name" /></a><br />
</xsl:template>
</xsl:stylesheet >