|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<!--<xml:output method="html" />-->
|
|
|
|
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," />
|
|
|
|
<xsl:template match="/">
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
|
|
|
|
<title>Ergebnis <xsl:value-of select="ergebnis/tabelle/maskenname" /></title>
|
|
|
|
<LINK REL="stylesheet" type="text/css" href="../style/superx.css" ></LINK>
|
|
|
|
<LINK REL="stylesheet" type="text/css" href="../xml/tabelle_html.css" ></LINK>
|
|
|
|
</head>
|
|
|
|
<script language="Javascript" src="../xml/dynlayer.js">
|
|
|
|
</script>
|
|
|
|
<script language="Javascript" src="../xml/texteffekte.js">
|
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
|
|
div.versteckt
|
|
|
|
{
|
|
|
|
font-size:smaller
|
|
|
|
}
|
|
|
|
<!--
|
|
|
|
#inhalt
|
|
|
|
{position:relative}
|
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
<body onload="isReady=true"><form name="Weiterverarbeitung" action="SuperXmlTabelle" method="post" target="_self">
|
|
|
|
<xsl:if test="/ergebnis/nachricht !=''"><p>
|
|
|
|
<xsl:copy-of select="/ergebnis/nachricht" /></p>
|
|
|
|
|
|
|
|
</xsl:if>
|
|
|
|
<table border="0"><tr><td align="left"><table border="1">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="UserID">
|
|
|
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/userid" /></xsl:attribute>
|
|
|
|
</input>
|
|
|
|
<input type="hidden" name="stylesheet" value="" />
|
|
|
|
<input type="hidden" name="contenttype" value="" />
|
|
|
|
<xsl:for-each select="/ergebnis/felder/feld">
|
|
|
|
<input type="hidden">
|
|
|
|
<xsl:attribute name="name"><xsl:value-of select="wert/@varname" /></xsl:attribute>
|
|
|
|
<xsl:attribute name="value"><xsl:value-of select="wert/value" /></xsl:attribute>
|
|
|
|
</input>
|
|
|
|
</xsl:for-each>
|
|
|
|
<img src="../applet/images/sx_copy.gif" /></td>
|
|
|
|
<!--<td><a><xsl:attribute name="href"><xsl:text>javascript:window.external.AddFavorite('</xsl:text><xsl:call-template name="create_url">
|
|
|
|
<xsl:with-param name="stylesheet" select="''"/>
|
|
|
|
</xsl:call-template><xsl:text>','</xsl:text><xsl:value-of select="/ergebnis/tabelle/maskenname" /><xsl:text>');</xsl:text></xsl:attribute>
|
|
|
|
|
|
|
|
<xsl:attribute name="title"><xsl:text>Lesezeichen</xsl:text></xsl:attribute>
|
|
|
|
<xsl:text>Lesezeichen</xsl:text></a>
|
|
|
|
</td>-->
|
|
|
|
<td><a href="javascript:doSaveAs()"><img src="../images/save.svg" class="svg_icon" border="0"/></a></td>
|
|
|
|
<td><a href="javascript:window.print();"><img src="../images/printer.svg" class="svg_icon" border="0" /></a></td>
|
|
|
|
<td><a href="../applet/superx_help/main.htm" title="Hilfe">
|
|
|
|
<img src="../applet/images/help.gif" border="0" alt="Benutzerhandbuch"/></a></td>
|
|
|
|
<td><a href="javascript:alert('SuperX Version 2.02 \n www.superx-projekt.de');" title="Info">
|
|
|
|
<img src="../applet/images/info.gif" alt="Info" border="0" /></a></td>
|
|
|
|
<!--<td><a href="javascript:document.forms[0].submit();">PDF</a></td>
|
|
|
|
<td><a href="javascript:document.forms[0].stylesheet.value='tabelle_xml.xsl';document.forms[0].contenttype.value='text/xml; charset=ISO-8859-1'; document.forms[0].submit();">XML</a></td>
|
|
|
|
<td><a href="javascript:document.forms[0].submit();">RTF</a></td>
|
|
|
|
<td><a href="javascript:document.forms[0].submit();">SVG</a></td>-->
|
|
|
|
</tr></table></td>
|
|
|
|
<td align="right"><table border="1"><tr><td>Export:</td>
|
|
|
|
<td>
|
|
|
|
<a><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_html_p.xsl';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><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].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>
|
|
|
|
<xsl:for-each select="ergebnis/stylesheets/stylesheet">
|
|
|
|
<xsl:if test="filename !='tabelle_html.xsl'">
|
|
|
|
<td><a><xsl:attribute name="href">javascript:document.forms[0].stylesheet.value='<xsl:value-of select="filename" />';document.forms[0].contenttype.value='<xsl:value-of select="contenttype" />'; document.forms[0].submit();</xsl:attribute>
|
|
|
|
<xsl:attribute name="title"><xsl:value-of select="description" /></xsl:attribute>
|
|
|
|
<![CDATA[]]><xsl:value-of select="caption" /><![CDATA[]]></a>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td></tr></table>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="/ergebnis/Makro/@tid !=''">
|
|
|
|
<h1><xsl:value-of select="/ergebnis/Makro/@name" /></h1>
|
|
|
|
<p><input type="hidden" name="tid">
|
|
|
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/Makro/@tid" /></xsl:attribute>
|
|
|
|
</input>
|
|
|
|
</p></xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<p><input type="hidden" name="tid">
|
|
|
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/tabelle/@id" /></xsl:attribute>
|
|
|
|
</input></p>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<p class="legende">
|
|
|
|
<xsl:for-each select="ergebnis/felder/feld">
|
|
|
|
<xsl:if test="wert !=''">
|
|
|
|
|
|
|
|
<span class="feldname"><xsl:value-of select="wert/@varname" /></span>: 
|
|
|
|
<xsl:if test="string-length(wert/caption) < 50">
|
|
|
|
<span class="feldwert"><![CDATA[]]><xsl:value-of select="wert/caption" /><![CDATA[]]></span>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="string-length(wert/caption) > 49">
|
|
|
|
<span class="feldwert"><![CDATA[]]><xsl:value-of select="substring(wert/caption,0,50)" /><![CDATA[]]>...</span>
|
|
|
|
</xsl:if>
|
|
|
|
;
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
</p>
|
|
|
|
<p class="legende">
|
|
|
|
<xsl:for-each select="ergebnis/felder/msgs/msg">
|
|
|
|
<xsl:if test="wert !=''">
|
|
|
|
<p class="errmsg"><xsl:value-of select="wert" /></p>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
</p>
|
|
|
|
<xsl:for-each select="ergebnis/tabelle">
|
|
|
|
<p class="maskentitel"><xsl:value-of select="maskenname" /></p>
|
|
|
|
<p class="legende">Stand: <xsl:value-of select="stand" /></p>
|
|
|
|
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if>
|
|
|
|
|
|
|
|
<table class="ergtabelle">
|
|
|
|
<tr>
|
|
|
|
<xsl:for-each select="sqlerg/headers/header">
|
|
|
|
<td class="header">
|
|
|
|
<xsl:copy-of select="wert" />
|
|
|
|
</td>
|
|
|
|
</xsl:for-each><td></td>
|
|
|
|
</tr>
|
|
|
|
<xsl:for-each select="sqlerg/row">
|
|
|
|
<tr>
|
|
|
|
<xsl:for-each select="col">
|
|
|
|
<td class="ergfeld">
|
|
|
|
<xsl:choose>
|
|
|
|
<!--<xsl:when test="@id='0'">
|
|
|
|
<xsl:attribute name="class">themenspalte</xsl:attribute>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="@typ='1'"> String
|
|
|
|
<xsl:attribute name="class">string</xsl:attribute>
|
|
|
|
<xsl:value-of select="wert" />
|
|
|
|
</xsl:when>-->
|
|
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat -->
|
|
|
|
<xsl:attribute name="class">decimal</xsl:attribute>
|
|
|
|
<!--<xsl:value-of select="wert" />-->
|
|
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="@typ='4'"> <!-- Integer -->
|
|
|
|
<xsl:attribute name="class">integer</xsl:attribute>
|
|
|
|
<!--<xsl:value-of select="wert" />-->
|
|
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<!--Typ=1 ist string und wird defaultmäßig behandelt -->
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="f_name='email'">
|
|
|
|
<a><xsl:attribute name="href">mailto:<xsl:value-of select="wert" /></xsl:attribute>
|
|
|
|
<xsl:value-of select="wert" /></a>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="f_name='url'">
|
|
|
|
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="wert" /></xsl:attribute>
|
|
|
|
<xsl:value-of select="wert" /></a>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="f_name='nextmask'">
|
|
|
|
|
|
|
|
<xsl:variable name="derwert" select="wert"/>
|
|
|
|
<xsl:if test="(($derwert != 'null') and ($derwert != ''))">
|
|
|
|
<div align="center"><a><xsl:attribute name="href">SuperXmlMaske?tid=<xsl:value-of select="$derwert" />&UserID=<xsl:value-of select="/ergebnis/UserID" /></xsl:attribute>
|
|
|
|
<img src="../applet/images/punkt.gif" border="0" alt="Bearbeiten" />
|
|
|
|
</a></div>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="f_name='nexttable'">
|
|
|
|
<xsl:variable name="derwert" select="wert"/>
|
|
|
|
<xsl:if test="(($derwert != 'null') and ($derwert != ''))">
|
|
|
|
<div align="center"><a><xsl:attribute name="href">SuperXmlTabelle?tid=<xsl:value-of select="$derwert" />&UserID=<xsl:value-of select="/ergebnis/UserID" /></xsl:attribute>
|
|
|
|
<img src="../applet/images/information.svg" class="svg_icon" border="0" alt="Ansehen" />
|
|
|
|
</a></div>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="wert" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</xsl:for-each>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</table>
|
|
|
|
<p class="klein"><xsl:value-of select="sqlerg/msg" /><br />
|
|
|
|
<xsl:for-each select="felder/msgs/msg">
|
|
|
|
<xsl:value-of select="wert" />
|
|
|
|
<br />
|
|
|
|
</xsl:for-each>
|
|
|
|
</p>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
</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>&</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>UserID=</xsl:text><xsl:value-of select="/ergebnis/userid" /><xsl:text>&tid=</xsl:text><xsl:value-of select="/ergebnis/tabelle/@id" />
|
|
|
|
<xsl:for-each select="/ergebnis/tabelle/felder/feld">
|
|
|
|
<xsl:if test="wert/value !=''">
|
|
|
|
<xsl:text>&</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:stylesheet>
|