SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
6.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="pageComponents_html.xsl" />
<!--In diesem Stylesheet können Sie individuelle templates unterbringen,
die in ihrer Präzedenz das normale Stylesheet
pageComponents_html.xsl überragt. -->
<xsl:import href="pageComponents_html_final.xsl" />
<xsl:import href="resultset_html.xsl" />
<xsl:import href="interLinks_html.xsl" />
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," />
<xml:output method="html" />
<xsl:variable name="webapp-url" select="'../'" />
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<LINK REL="stylesheet" type="text/css" href="../style/superx.css" ></LINK>
<LINK REL="stylesheet" type="text/css" href="../xml/superxml_html.css" ></LINK>
<LINK REL="stylesheet" type="text/css" href="../xml/tabelle_html.css" ></LINK>
<LINK REL="stylesheet" type="text/css" href="../edit/gang/gang.css" ></LINK>
<title><xsl:value-of select="concat('Ergebnis ',/ergebnisse/ergebnis[ position()=1]/maskenname)" /></title>
<style type="text/css">
div.versteckt
{
font-size:smaller
}
</style>
<!--<script language="Javascript" src="../xml/dynlayer.js">
</script>-->
<script language="Javascript" src="../xml/dynapi/dynapi.js">
</script>
<script language="Javascript">
dynapi.library.setPath('../xml/dynapi/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.api.ext.DynLayerInline');
dynapi.library.include('dynapi.gui.BorderManager');
dynapi.library.include('dynapi.gui.HTMLCalendar');
dynapi.library.include('ViewPane');
dynapi.library.include('Explorer');
dynapi.library.include('ExplorerBlockStyle'); //Optional
<![CDATA[
ie5=(document.getElementById&&document.all&&document.styleSheets)?1:0;
nn6=(document.getElementById&&!document.all)?1:0;
]]>
</script>
<script language="Javascript" src="../xml/texteffekte.js">
</script>
</head>
<!--<script language="Javascript" src="../xml/dynlayer.js">
</script>-->
<script language="Javascript" src="../xml/dynapi/dynapi.js">
</script>
<script language="Javascript" src="../xml/texteffekte.js">
</script>
<script language="Javascript">
dynapi.library.setPath('../xml/dynapi/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.api.ext.DynLayerInline');
dynapi.library.include('dynapi.gui.BorderManager');
dynapi.library.include('ViewPane');
dynapi.library.include('Explorer');
dynapi.library.include('ExplorerBlockStyle'); //Optional
</script>
<style type="text/css">
div.versteckt
{
font-size:smaller
}
<!--
#inhalt
{position:relative}
-->
</style>
<body onload="isReady=true">
<table border="0" width="100%"><tr><td align="left"><a href="javascript:window.print();"><img src="../images/printer.svg" class="svg_icon" border="0" /></a></td><td align="right"><img border="0" alt="Logo">
<xsl:attribute name="src"><xsl:value-of select="$webapp-url"/><xsl:text>images/logo.gif</xsl:text></xsl:attribute></img>
</td></tr></table>
<xsl:choose>
<!--MB -->
<xsl:when test="/ergebnisse/makro/@id !=''">
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1>
<p><input type="hidden" name="tid">
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/makro/@id" /></xsl:attribute>
</input>
</p></xsl:when>
<xsl:otherwise>
<p><input type="hidden" name="tid">
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" /></xsl:attribute>
</input></p>
</xsl:otherwise>
</xsl:choose>
<!--<xsl:call-template name="legende" />-->
<xsl:for-each select="ergebnisse/ergebnis/ergebniselement">
<xsl:choose>
<xsl:when test="@typ='image'">
<img>
<xsl:attribute name="src"><xsl:value-of select="@url" /></xsl:attribute>
</img>
<hr/>
<xsl:text>
</xsl:text>
</xsl:when>
<xsl:when test="@typ='tabelle'">
<p class="maskentitel"><xsl:value-of select="../maskenname" /></p>
<!-- MB legende bei jeder Tabelle -->
<xsl:call-template name="legende" />
<!-- MB fehlermeldung direkt vom Servlet
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if>
-->
<xsl:call-template name="tabelle_html_pivot" />
<hr />
</xsl:when>
<xsl:otherwise>
<xsl:text>
Nicht unterstützter Ergebnistyp </xsl:text><xsl:value-of select="@type" />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<!--<div id="inhalt" class="versteckt"><p><TEXTAREA NAME="content" ROWS="40" COLS="80" WRAP="off" READONLY="true">
<ergebnis><xsl:copy-of select="/ergebnis/*|@*|text()" /></ergebnis>
</TEXTAREA>
</p></div>
<script language="Javascript">
versteckeText("inhalt");
</script>-->
<xsl:call-template name="bottombar" />
</body>
</html>
</xsl:template>
<xsl:template name="tabwert">
<xsl:choose>
<xsl:when test="wert/@type='numeric'"><xsl:value-of select="wert" />
<!--<xsl:value-of select="format-number(wert,'#.###.##0,00','de_DE')" />-->
</xsl:when>
<xsl:otherwise><xsl:value-of select="wert" /></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="create_url">
<xsl:param name="stylesheet"/>
<xsl:text>../servlet/SuperXmlTabelle?</xsl:text>
<xsl:if test="$stylesheet!=''"><xsl:text>stylesheet=</xsl:text><xsl:value-of select="$stylesheet" /><xsl:text>&amp;</xsl:text>
</xsl:if>
<xsl:text>UserID=</xsl:text><xsl:value-of select="/ergebnis/userID" /><xsl:text>&amp;tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" />
<xsl:for-each select="/ergebnis/tabelle/felder/feld">
<xsl:if test="wert/value !=''">
<xsl:text>&amp;</xsl:text><xsl:value-of select="wert/@varname" /><xsl:text>=</xsl:text><xsl:value-of select="wert/value" />
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="tabelle_html_pivot">
<xsl:for-each select="sqlerg/row">
<table><caption><span class="gang_titel"><xsl:value-of select="col [f_name='studiengang']/wert" /></span></caption>
<xsl:for-each select="col [ string-length(wert) &gt; 0 ]">
<tr><td class="db_label">
<xsl:variable name="col_id"><xsl:value-of select="@id" /></xsl:variable>
<xsl:value-of select="../../headers/header [ @id= $col_id] / wert" />
</td>
<td><xsl:value-of select="wert" /></td>
</tr>
</xsl:for-each>
</table>
<hr />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>