Modul Qualitätssicherung
http://www.superx-projekt.de/doku/qa_modul/index.htm
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.
198 lines
6.2 KiB
198 lines
6.2 KiB
1 year 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" />
|
||
|
<!--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>
|
||
|
<xsl:call-template name="head" >
|
||
|
<xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis/ergebniselement/maskenname)" />
|
||
|
</xsl:call-template>
|
||
|
<body onload="isReady=true">
|
||
|
<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'">
|
||
|
|
||
|
<h2><xsl:value-of select="../maskenname" /></h2>
|
||
|
<!-- MB legende bei jeder Tabelle -->
|
||
|
<p class="legende">
|
||
|
<xsl:for-each select="../felder/feld">
|
||
|
<xsl:if test="value !=''">
|
||
|
|
||
|
<span class="feldname"><xsl:value-of select="@varname" /></span>: 
|
||
|
<xsl:if test="string-length(wert/caption) < 50">
|
||
|
<!-- MB 22.12.04 statt caption value_caption-->
|
||
|
<span class="feldwert"><xsl:value-of select="value_caption" /></span>
|
||
|
</xsl:if>
|
||
|
<!-- MB 22.12.04 statt caption value_caption-->
|
||
|
<xsl:if test="string-length(wert/caption) > 49">
|
||
|
<span class="feldwert"><xsl:value-of select="substring(value_caption,0,50)" />...</span>
|
||
|
</xsl:if>
|
||
|
;
|
||
|
</xsl:if>
|
||
|
|
||
|
</xsl:for-each>
|
||
|
|
||
|
Stand: <xsl:value-of select="../stand" /></p>
|
||
|
<!-- MB fehlermeldung direkt vom Servlet
|
||
|
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if>
|
||
|
-->
|
||
|
<table class="ergtabelle" border="1">
|
||
|
<tr>
|
||
|
<xsl:for-each select="sqlerg/headers/header">
|
||
|
|
||
|
|
||
|
<xsl:call-template name="header">
|
||
|
<xsl:with-param name="derwert" select="wert" />
|
||
|
</xsl:call-template>
|
||
|
|
||
|
</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='2' or @typ='8' or @typ='3'"> <!-- DecimalFormat -->
|
||
|
<xsl:attribute name="class">decimal</xsl:attribute>
|
||
|
<!--<xsl:value-of select="wert" />-->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="' '" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</xsl:when>
|
||
|
<xsl:when test="@typ='4'"> <!-- Integer -->
|
||
|
<xsl:attribute name="class">integer</xsl:attribute>
|
||
|
<!--<xsl:value-of select="wert" />-->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="' '" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!--Typ=1 ist string und wird defaultmäßig behandelt -->
|
||
|
<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
|
||
|
Bei leeren Zellen wird nbsp übergeben, weil
|
||
|
der IE die Zellen sonst ohne Rahmen darstellt.
|
||
|
Standardmmäßig wird der Feldinhalt nur noch kopiert.-->
|
||
|
|
||
|
<xsl:call-template name="get_val_or_nbsp">
|
||
|
<xsl:with-param name="zs4"><xsl:copy-of select="$zs3" /></xsl:with-param>
|
||
|
|
||
|
</xsl:call-template>
|
||
|
|
||
|
|
||
|
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</td>
|
||
|
</xsl:for-each>
|
||
|
<!--<td></td>-->
|
||
|
</tr>
|
||
|
</xsl:for-each>
|
||
|
</table>
|
||
|
</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: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>-->
|
||
|
</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>/superx/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="/ergebnisse/ergebnis/maskenname/@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>
|