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.
 
 
 
 
 
 

258 lines
10 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: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">
<xsl:call-template name="topbar_table" />
<form name="Weiterverarbeitung" method="post" target="_self"><xsl:attribute name="action"><xsl:value-of select="'SuperXmlTabelle'" /></xsl:attribute>
<table border="0"><tr><td align="left"><input type="hidden" name="UserID">
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/userID" /></xsl:attribute>
</input>
<input type="hidden" name="reuseresult" value="true"/> <!-- gecachte Ergebnis benutzen-->
<input type="hidden" name="maxoffset" value=""/> <!--im Normalfall wird Servleteinstellung genutzt - nur Druckversion übergibt Wert-->
<input type="hidden" name="stylesheet" value="" />
<input type="hidden" name="contenttype" value="" />
<xsl:for-each select="/ergebnisse/ergebnis/felder/feld">
<input type="hidden">
<xsl:attribute name="name"><xsl:value-of select="@varname" /></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="value" /></xsl:attribute>
</input>
</xsl:for-each>
<xsl:call-template name="printsaveButtons" />
</td>
<td align="right"><table border="1"><tr><td>Export:</td>
<td>
<!-- druckversion übergibt maxoffset 10000000 damit alle Sätze angezeigt werden -->
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_html_gang_pivot_p.xsl';document.forms[0].maxoffset.value='1000000';document.forms[0].target='_blank'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>Druckversion</xsl:text></xsl:attribute>
<xsl:text>Druckversion</xsl:text></a>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_xml.xsl'; document.forms[0].target='_blank'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>XML</xsl:text></xsl:attribute>
<xsl:text>XML</xsl:text></a>
</td>
<!--
<td>
<a><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_text.xsl';document.forms[0].contenttype.value='text/plain';document.forms[0].target='_blank'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>Text</xsl:text></xsl:attribute>
<xsl:text>Text</xsl:text></a>
</td>
-->
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_fo_pdf.xsl';document.forms[0].contenttype.value='application/pdf';document.forms[0].maxoffset.value='1000000'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>PDF</xsl:text></xsl:attribute>
<xsl:text>PDF</xsl:text></a>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_fo_rtf.xsl';document.forms[0].contenttype.value='application/rtf';document.forms[0].maxoffset.value='1000000'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>RTF (z.B. Word)</xsl:text></xsl:attribute>
<xsl:text>RTF</xsl:text></a>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_xls.xsl';document.forms[0].contenttype.value='application/vnd.ms-excel';document.forms[0].maxoffset.value='1000000';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>XLS (z.B. Excel)</xsl:text></xsl:attribute>
<xsl:text>XLS</xsl:text></a>
</td>
<!--
<td>
<a><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='erg_itext_rtf.xsl';document.forms[0].contenttype.value='application/rtf';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>RTF</xsl:text></xsl:attribute>
<xsl:text>RTF</xsl:text></a>
</td>
-->
</tr>
</table>
</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:call-template name="navigationsfuss" />
<xsl:if test="count(sqlerg/headers/header/caption_long) &gt; 0">
<!--Explanations-->
<xsl:call-template name="explanation" />
</xsl:if>
</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>-->
</form>
<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>