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.
123 lines
4.2 KiB
123 lines
4.2 KiB
2 years ago
|
<?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" />
|
||
|
<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>
|
||
|
<xsl:call-template name="head" >
|
||
|
<xsl:with-param name="title" select="concat('Ergebnis ',ergebnis/tabelle/maskenname)" />
|
||
|
</xsl:call-template>
|
||
|
<body onload="isReady=true">
|
||
|
<xsl:call-template name="topbar" />
|
||
|
<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"><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>
|
||
|
<!--<xsl:call-template name="printsaveButtons" />-->
|
||
|
</td>
|
||
|
<td align="right"><!--<xsl:call-template name="exportButtons" />-->
|
||
|
</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>
|
||
|
|
||
|
<xsl:for-each select="ergebnis/tabelle">
|
||
|
<p class="maskentitel"><xsl:value-of select="maskenname" /></p>
|
||
|
|
||
|
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if>
|
||
|
|
||
|
<table class="ergtabelle">
|
||
|
<tr>
|
||
|
<xsl:call-template name="header" />
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
<xsl:for-each select="sqlerg/row">
|
||
|
<tr>
|
||
|
<xsl:for-each select="col">
|
||
|
<td>
|
||
|
<xsl:call-template name="field_type" />
|
||
|
<xsl:variable name="zs">
|
||
|
<xsl:call-template name="field_value">
|
||
|
</xsl:call-template>
|
||
|
</xsl:variable>
|
||
|
<xsl:variable name="zs3">
|
||
|
<xsl:call-template name="resultsetLink">
|
||
|
<xsl:with-param name="zs2" select="$zs" />
|
||
|
</xsl:call-template>
|
||
|
</xsl:variable>
|
||
|
<!--Ab hier können Benutzerspezifische Transformationen nach Feldnamen oder Typ beginnen
|
||
|
Standardmmäßig wird der Feldinhalt nur noch kopiert.-->
|
||
|
|
||
|
<xsl:copy-of select="$zs3" />
|
||
|
|
||
|
</td>
|
||
|
</xsl:for-each>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</xsl:for-each>
|
||
|
</table>
|
||
|
<xsl:call-template name="stand" />
|
||
|
</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>&</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>
|