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.
952 lines
39 KiB
952 lines
39 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="interLinks_html.xsl" /> |
|
<xsl:import href="xsl_functions.xsl" /> |
|
<xsl:import href="graphtools.xsl" /> |
|
<xsl:template name="legende"> |
|
<xsl:comment>Template legende in file resultset_html.xsl</xsl:comment> |
|
<xsl:choose> |
|
<xsl:when test="/*/@hisinone_active='true'"> |
|
<xsl:call-template name="legende_hisinone" /> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:call-template name="legende_superx" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
<xsl:template name="legende_hisinone"> |
|
<div class="text_white"> |
|
<h3>Legende</h3> |
|
<p> |
|
<xsl:for-each select="../felder/feld"> |
|
<xsl:if |
|
test="(value !='' or sicht/@isFirstInGroup='false' or @isstandtoday='false') and @varname != 'sort' and @varname != 'maxoffset' and value_caption != ''"> |
|
<span class="feldname"> |
|
<xsl:choose> |
|
<xsl:when |
|
test="string-length(caption_short) > 0 and caption_short != 'null'"> |
|
<xsl:value-of select="caption_short" /> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="@varname" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</span>: |
|
<xsl:if test="string-length(value_caption) < 950"> |
|
<span class="feldwert"> |
|
<xsl:value-of select="value_caption" /> |
|
</span> |
|
</xsl:if> |
|
<xsl:if test="string-length(value_caption) > 949"> |
|
<span class="feldwert"> |
|
<xsl:value-of select="substring(value_caption,0,950)" /> |
|
... |
|
</span> |
|
</xsl:if> |
|
<xsl:if test="sicht!=''"> <span><![CDATA[(]]><xsl:value-of select="sicht" /> |
|
<xsl:if test="@stand!=''"> |
|
<xsl:text> - Stand:</xsl:text> |
|
<xsl:value-of select="@stand" /> |
|
</xsl:if> |
|
<xsl:text><![CDATA[)]]></xsl:text> |
|
</span> |
|
</xsl:if>  |
|
</xsl:if> |
|
|
|
</xsl:for-each> |
|
<span class="feldname">User: </span> |
|
<xsl:value-of select="/ergebnisse/user" />  |
|
<span class="feldname">Stand: </span> |
|
<xsl:value-of select="../stand" />  |
|
<xsl:if test="../standdt != ''"> |
|
<span class="feldname"> / </span> |
|
<xsl:value-of select="../standdt" /> |
|
</xsl:if> |
|
|
|
</p> |
|
<xsl:if test="../hinweis != ''"> |
|
<p> |
|
<!-- 11.3.09 MB --> |
|
<xsl:call-template name="newline_to_br"> |
|
<xsl:with-param name="string" select="../hinweis" /> |
|
</xsl:call-template> |
|
</p> |
|
</xsl:if> |
|
</div> |
|
</xsl:template> |
|
<xsl:template name="legende_superx"> |
|
<p class="legende"> |
|
<xsl:for-each select="../felder/feld"> |
|
<xsl:if test="(value !='' or sicht/@isFirstInGroup='false' or @isstandtoday='false') and @varname != 'sort' and @varname != 'maxoffset' and value_caption != ''"> |
|
|
|
<span class="feldname"> |
|
<xsl:choose> |
|
<xsl:when test="string-length(caption_short) > 0 and caption_short != 'null'" > |
|
<![CDATA[]]><xsl:value-of select="caption_short" /><![CDATA[]]> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="@varname" /> |
|
</xsl:otherwise> |
|
</xsl:choose></span>:  |
|
<xsl:if test="string-length(value_caption) < 50"> |
|
<span class="feldwert"><xsl:value-of select="value_caption" /><![CDATA[]]></span> |
|
</xsl:if> |
|
<xsl:if test="string-length(value_caption) > 49"> |
|
<span class="feldwert"><![CDATA[]]><xsl:value-of select="substring(value_caption,0,50)" /><![CDATA[]]>...</span> |
|
</xsl:if> |
|
<xsl:if test="sicht!=''"> |
|
<span><![CDATA[ (]]><xsl:value-of select="sicht" /> |
|
<xsl:if test="@stand!=''"><xsl:text> - Stand:</xsl:text><xsl:value-of select="@stand"/></xsl:if> |
|
<xsl:text><![CDATA[)]]> </xsl:text></span> |
|
|
|
</xsl:if> |
|
; |
|
</xsl:if> |
|
|
|
</xsl:for-each> |
|
User: <xsl:value-of select="/ergebnisse/user"/>  |
|
Stand: <xsl:value-of select="../stand" /></p> |
|
<xsl:if test="../hinweis != ''"> |
|
<!-- 11.3.09 MB --> |
|
<xsl:call-template name="newline_to_br"> |
|
<xsl:with-param name="string" select="../hinweis" /> |
|
</xsl:call-template> |
|
</xsl:if> |
|
|
|
</xsl:template> |
|
<xsl:template name="header"> |
|
<xsl:param name="derwert" /> |
|
<th class="header" scope="col"> |
|
<xsl:call-template name="removeBackslashN" > |
|
<xsl:with-param name="derwert"><xsl:value-of select="$derwert" /></xsl:with-param> |
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param> |
|
</xsl:call-template> |
|
|
|
</th> |
|
</xsl:template> |
|
<xsl:template name="removeBackslashN"> |
|
<xsl:param name="derwert" /> |
|
<xsl:param name="format" select="'html'" /> |
|
|
|
<!--max. 2 Umbrüche pro Zelle --> |
|
<xsl:variable name="header1"> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($derwert),'\n'))"> |
|
|
|
<xsl:value-of select="substring-before($derwert,'\n') "/> |
|
<xsl:call-template name="umbruch" > |
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:value-of select="substring-after($derwert,'\n') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$derwert" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
<xsl:variable name="header2"> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($header1),'\n'))"> |
|
<xsl:value-of select="substring-before($header1,'\n') "/> |
|
<xsl:call-template name="umbruch" > |
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:value-of select="substring-after($header1,'\n') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$header1" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($header2),'\000'))"> |
|
<xsl:value-of select="substring-before($header2,'\000') "/> |
|
<xsl:call-template name="umbruch" > |
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:value-of select="substring-after($header2,'\000') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$header2" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
<xsl:template name="umbruch"> |
|
<xsl:param name="format" select="'html'" /> |
|
<xsl:choose> |
|
<xsl:when test="$format='xslfo'"> |
|
<xsl:text> </xsl:text> |
|
</xsl:when> |
|
<xsl:when test="$format='html'" > |
|
<!-- klappt derzeit noch nicht:--> |
|
<br />  |
|
</xsl:when> |
|
<xsl:when test="$format='xls'"> |
|
<xsl:text> </xsl:text> |
|
</xsl:when> |
|
<xsl:otherwise > |
|
<xsl:text> </xsl:text> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
|
|
<xsl:template name="printheader"> |
|
<xsl:param name="derwert" /> |
|
<th class="printheader"> |
|
<!--max. 2 Umbrüche pro Zelle --> |
|
<xsl:variable name="header1"> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($derwert),'\n'))"> |
|
<xsl:value-of select="substring-before($derwert,'\n') "/> |
|
<br /> |
|
<xsl:value-of select="substring-after($derwert,'\n') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$derwert" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
<xsl:variable name="header2"> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($header1),'\n'))"> |
|
<xsl:value-of select="substring-before($header1,'\n') "/> |
|
<br /> |
|
<xsl:value-of select="substring-after($header1,'\n') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$header1" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
<xsl:choose> |
|
<xsl:when test="(contains(string($header2),'\000'))"> |
|
<xsl:value-of select="substring-before($header2,'\000') "/> |
|
<br /> |
|
<xsl:value-of select="substring-after($header2,'\000') "/> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="$header2" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
</th> |
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="navigationsmenue"> |
|
<xsl:choose> |
|
<xsl:when test="/*/@hisinone_active='true'"> |
|
<xsl:call-template name="navigationsmenue_hisinone" /> |
|
<script language="Javascript"> |
|
var platform='his1'; |
|
</script> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:call-template name="navigationsmenue_superx" /> |
|
<script language="Javascript"> |
|
var platform='superx'; |
|
</script> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
|
|
<xsl:template name="navigationsmenue_hisinone"> |
|
<p class="dontprint"> |
|
|
|
<xsl:variable name="stylesheet"> |
|
<xsl:choose> |
|
<xsl:when test="/ergebnisse/ergebnis/felder/feld [@varname='tablestylesheet'] /value !=''"> |
|
<xsl:value-of select="/ergebnisse/ergebnis/felder/feld [@varname='tablestylesheet'] /value" /> |
|
</xsl:when> |
|
<xsl:when |
|
test="/ergebnisse/stylesheets/stylesheet/filename !='tabelle_html.xsl'"> |
|
<xsl:value-of select="/ergebnisse/stylesheets/stylesheet/filename" /> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
tabelle_html.xsl |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
|
|
<xsl:if test="(sqlerg/@offset > 0)"> |
|
<a title="Erste Seite" onMouseOver="window.status='Navigation starten';return true" |
|
onFocus="window.status='Navigation starten';return true" |
|
onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='0';document.forms[0].stylesheet.value='<xsl:value-of |
|
select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_first.svg" class="svg_icon" border="0" alt="Zur ersten Seite" /> |
|
</a> |
|
<a title="Vorherige Seite" onMouseOver="window.status='Navigation starten';return true" |
|
onFocus="window.status='Navigation starten';return true" |
|
onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of |
|
select="((sqlerg/@offset) - (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of |
|
select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_previous.svg" class="svg_icon" |
|
border="0" alt="Zur vorherigen Seite" /> |
|
</a> |
|
</xsl:if> |
|
<xsl:call-template name="datensatzzaehler" /> |
|
<xsl:if test="(sqlerg/@offset + sqlerg/@maxOffset) < sqlerg/@max"> |
|
<a title="Nächste Seite" onMouseOver="window.status='Navigation starten';return true" |
|
onFocus="window.status='Navigation starten';return true" |
|
onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of |
|
select="((sqlerg/@offset) + (sqlerg/@maxOffset))" />'; document.forms[0].stylesheet.value='<xsl:value-of |
|
select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_next.svg" class="svg_icon" border="0" alt="Nächste Seite" /> |
|
</a> |
|
<a title="Letzte Seite" onMouseOver="window.status='Navigation starten';return true" |
|
onFocus="window.status='Navigation starten';return true" |
|
onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:choose> |
|
<xsl:when test="(sqlerg/@max) mod (sqlerg/@maxOffset) = 0"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of |
|
select="sqlerg/@max - sqlerg/@maxOffset" />';document.forms[0].stylesheet.value='<xsl:value-of |
|
select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of |
|
select="sqlerg/@max - ((sqlerg/@max) mod (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of |
|
select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
<img src="../images/resultset_last.svg" class="svg_icon" border="0" |
|
alt="Letzte Seite" /> |
|
</a> |
|
</xsl:if> |
|
</p> |
|
</xsl:template> |
|
<xsl:template name="navigationsmenue_superx"> |
|
<p class="dontprint"> |
|
|
|
<xsl:variable name="stylesheet"> |
|
<xsl:choose> |
|
<xsl:when test="/ergebnisse/ergebnis/felder/feld [@varname='tablestylesheet'] /value !=''"> |
|
<xsl:value-of select="/ergebnisse/ergebnis/felder/feld [@varname='tablestylesheet'] /value" /> |
|
</xsl:when> |
|
<xsl:when test="/ergebnisse/stylesheets/stylesheet/filename !='tabelle_html.xsl'"> |
|
<xsl:value-of select="/ergebnisse/stylesheets/stylesheet/filename" /> |
|
</xsl:when> |
|
<xsl:otherwise>tabelle_html.xsl</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
|
|
<xsl:if test="(sqlerg/@offset > 0)"> |
|
<a title="Erste Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='0';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_first.svg" border="0" alt="Zur ersten Seite" class="resultset"/></a> |
|
<a title="Vorherige Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="((sqlerg/@offset) - (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_previous.svg" border="0" alt="Zur vorherigen Seite" class="resultset"/></a> |
|
</xsl:if> |
|
<xsl:call-template name="datensatzzaehler" /> |
|
<xsl:if test="(sqlerg/@offset + sqlerg/@maxOffset) < sqlerg/@max"> |
|
<a title="Nächste Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true" > |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="((sqlerg/@offset) + (sqlerg/@maxOffset))" />'; document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
<img src="../images/resultset_next.svg" border="0" alt="Nächste Seite" class="resultset"/></a> |
|
<a title="Letzte Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
<xsl:choose> |
|
<xsl:when test="(sqlerg/@max) mod (sqlerg/@maxOffset) = 0"> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="sqlerg/@max - sqlerg/@maxOffset" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="sqlerg/@max - ((sqlerg/@max) mod (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
</xsl:attribute> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
<img src="../images/resultset_last.svg" border="0" alt="Letzte Seite" class="resultset"/> |
|
</a> |
|
</xsl:if> |
|
</p> |
|
</xsl:template> |
|
|
|
<xsl:template name="navigationsfuss"> |
|
<input type="hidden" name="offset"> |
|
<xsl:attribute name="value"><xsl:value-of select="sqlerg/@offset" /></xsl:attribute> |
|
</input> |
|
<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:call-template name="navigationsmenue"/> |
|
<!-- erstmal noch nicht |
|
<xsl:variable name="stylesheet"> |
|
<xsl:choose> |
|
<xsl:when test="/ergebnisse/stylesheets/stylesheet/filename !='tabelle_html.xsl'"> |
|
<xsl:value-of select="/ergebnisse/stylesheets/stylesheet/filename" /> |
|
</xsl:when> |
|
<xsl:otherwise>tabelle_html.xsl</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:variable> |
|
<p style="margin:1px;padding:1px;"><a style="cursor:pointer;color:blue" onClick="javascript:document.getElementById('hidden_navi').style.visibility='visible'">Schrittweite ändern</a> |
|
<span class="hidden_navi" id="hidden_navi" style="visibility:hidden"> von <input name="newOffset" type="text" size="5" value="{sqlerg/@offset+1}" /> bis <input name="newMaxOffset" type="text" size="5" value="{sqlerg/@offset+sqlerg/@maxOffset}" /><a> |
|
<xsl:attribute name="href"><xsl:text>javascript:document.forms[0].target='_self'; document.forms[0].offset.value=document.forms[0].newOffset.value-1;document.forms[0].maxoffset.value=(document.forms[0].newMaxOffset.value-document.forms[0].newOffset.value+1);document.forms[0].stylesheet.value='</xsl:text> |
|
<xsl:value-of select="$stylesheet" /><xsl:text>';document.forms[0].contenttype.value='text/html'; document.forms[0].submit();</xsl:text></xsl:attribute> |
|
<xsl:text> anzeigen</xsl:text></a> |
|
</span></p>--> |
|
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if> |
|
</xsl:template> |
|
<xsl:template name="field_type"> |
|
<!-- obsolet--> |
|
<xsl:choose> |
|
<!--<xsl:when test="@id='0'"> |
|
<xsl:attribute name="class">themenspalte</xsl:attribute> |
|
</xsl:when>--> |
|
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
<xsl:attribute name="class">decimal</xsl:attribute> |
|
</xsl:when> |
|
<xsl:when test="@typ='4' or @typ='-5'"> <!-- Integer --> |
|
<xsl:attribute name="class">integer</xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<!--Typ=1 ist string und wird defaultmäßig behandelt --> |
|
<xsl:attribute name="class">ergfeld</xsl:attribute> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
</xsl:template> |
|
<xsl:template name="field_value"> |
|
<!--Transformation: |
|
3=DecimalFormat |
|
4=integer |
|
-7=Boolean |
|
6=date |
|
8=timestamp |
|
9=time |
|
Default ist |
|
1=string--> |
|
|
|
<xsl:choose> |
|
<xsl:when test="@id='0'"> |
|
<xsl:value-of select="wert" /> |
|
</xsl:when> |
|
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
</xsl:when> |
|
<xsl:when test="@typ='4' or @typ='-5'"> <!-- Integer --> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0','German')" /> |
|
</xsl:when> |
|
<xsl:when test="@typ='-7'"> <!-- Boolean --> |
|
<input type="checkbox" readonly="true"> |
|
<xsl:if test="wert = 'true'"> |
|
<xsl:attribute name="checked">true</xsl:attribute> |
|
</xsl:if> |
|
|
|
<xsl:attribute name="name"><xsl:value-of select="f_name" /></xsl:attribute> |
|
</input> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<!--Typ=1 ist string und wird defaultmäßig behandelt --> |
|
<xsl:value-of select="wert" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
</xsl:template> |
|
<xsl:template name="datensatzzaehler"> |
|
<xsl:choose> |
|
<xsl:when test="sqlerg/@max=0"> |
|
Keinen Satz gefunden |
|
</xsl:when> |
|
<xsl:otherwise> |
|
Datensatz <xsl:choose> |
|
<xsl:when test="sqlerg/@offset=0 and sqlerg/@max=0">0</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="sqlerg/@offset+1"/> |
|
</xsl:otherwise> |
|
</xsl:choose> - |
|
<xsl:choose> |
|
<xsl:when test="(sqlerg/@offset + sqlerg/@maxOffset) < sqlerg/@max"> |
|
<xsl:value-of select="(sqlerg/@offset + sqlerg/@maxOffset)"/> von insgesamt |
|
<xsl:choose> |
|
<xsl:when test="sqlerg/@max =1 "> |
|
<xsl:value-of select="sqlerg/@max"/> Satz |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="sqlerg/@max"/> Sätzen |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="sqlerg/@max"/> von insgesamt |
|
<xsl:choose> |
|
<xsl:when test="sqlerg/@max =1 "> |
|
<xsl:value-of select="sqlerg/@max"/> Satz. |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="sqlerg/@max"/> Sätzen. |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
<xsl:template name="get_colvalue"> |
|
<xsl:param name="colname"/> |
|
<xsl:param name="row"/> |
|
<xsl:choose> |
|
<xsl:when test="string-length($row) > 0"> |
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/row [ position() = $row ] /col"> |
|
<xsl:if test="f_name =$colname"> |
|
<xsl:value-of select="wert" /> |
|
</xsl:if> |
|
</xsl:for-each> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/row/col"> |
|
<xsl:if test="f_name =$colname"> |
|
<xsl:value-of select="wert" /> |
|
</xsl:if> |
|
</xsl:for-each> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
<!-- nbsp für für leere Zellen im IE --> |
|
<xsl:template name="get_val_or_nbsp"> |
|
<xsl:param name="zs4" /> |
|
<xsl:copy-of select="$zs4" /><xsl:if test="string-length($zs4)=0"><xsl:text> </xsl:text></xsl:if> |
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="explanation"> |
|
<xsl:choose> |
|
<xsl:when test="/*/@hisinone_active='true'"> |
|
<xsl:call-template name="explanation_hisinone" /> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:call-template name="explanation_superx" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
<xsl:template name="explanation_hisinone"> |
|
<!-- button Verlagert in den info-Button in der Iconliste --> |
|
<script language="Javascript"> |
|
<xsl:text> |
|
function showErlaeuterung</xsl:text> |
|
<xsl:value-of select="../maskenname/@id" /> |
|
<xsl:text><![CDATA[() |
|
{ |
|
neu=window.open("","explanation_window","toolbar=yes,resizable=yes,scrollbars=yes,menubar=yes,location=no"); |
|
neu.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" ><html lang=\"de\">"); |
|
neu.document.write("<head><title>Erlaeuterung</title></head><link rel='stylesheet' type='text/css' href='../xml/his1/css/HISinOne.css'></link><body>"); |
|
neu.document.write("<div class='content_max_portal'><div class='columnFullSize'><h1>HISinOne</h1><h2>Hilfe</h2>"); |
|
neu.document.write("<h2>Maske ]]></xsl:text> |
|
<xsl:value-of select="../maskenname" /> |
|
<xsl:text><![CDATA[</h2>"); |
|
neu.document.write("<p>]]></xsl:text> |
|
<xsl:call-template name="remove_linebreaksAndQuot"> |
|
<xsl:with-param name="volltext"><![CDATA[]]> |
|
<xsl:value-of select="../explanation" /><![CDATA[]]> |
|
</xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:text><![CDATA[</p>"); |
|
|
|
|
|
|
|
|
|
neu.document.write("<div class='boxStandard'><div class='box_container'><div class='box_title'><h2>Selektionsparameter</h2></div><div class='box_content'><fieldset class='fieldsetNoBorder'><legend>Selektionsparameter</legend><table class='tableWithBorder'><thead><tr><th scope='col' class='tableHeader' width='20%'>Feld</th><th scope='col' class='tableHeader'>Beschreibung</th></tr></thead><tbody>"); |
|
]]></xsl:text> |
|
<xsl:for-each select="../completefields/feld"> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("<tr class='listRowOdd'>"); |
|
neu.document.write("<td>]]></xsl:text> |
|
<xsl:value-of select="@varname" /> |
|
<xsl:text><![CDATA[</td>"); |
|
neu.document.write("<td>]]></xsl:text> |
|
<xsl:if |
|
test="string-length(caption_long) > 0 and caption_long != 'null'"> |
|
<xsl:call-template name="remove_linebreaksAndQuot"> |
|
<xsl:with-param name="volltext"><![CDATA[]]> |
|
<xsl:value-of select="caption_long" /><![CDATA[]]> |
|
</xsl:with-param> |
|
</xsl:call-template> |
|
</xsl:if> |
|
<xsl:text><![CDATA[</td>"); |
|
neu.document.write("</tr>"); |
|
]]></xsl:text> |
|
</xsl:for-each> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("</tbody></table></fieldset></div><div class='box_bottom_left'><div class='box_bottom_right'></div></div></div></div>"); |
|
|
|
|
|
|
|
|
|
neu.document.write("<div class='boxStandard'><div class='box_container'><div class='box_title'><h2>Ergebnisbericht</h2></div><div class='box_content'><fieldset class='fieldsetNoBorder'><legend>Ergebnisbericht</legend><table class='tableWithBorder'><thead><tr><th scope='col' class='tableHeader' width='20%'>Spalte</th><th scope='col' class='tableHeader'>Beschreibung</th></tr></thead><tbody>"); |
|
]]></xsl:text> |
|
<xsl:for-each |
|
select="sqlerg/headers/header [string-length(caption_long) > 1 and caption_long !='null'] "> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("<tr class='listRowOdd'>"); |
|
neu.document.write("<td>]]></xsl:text> |
|
<xsl:value-of select="wert" /> |
|
<xsl:text><![CDATA[</td>"); |
|
neu.document.write("<td>]]></xsl:text> |
|
<xsl:call-template name="remove_linebreaksAndQuot"> |
|
<xsl:with-param name="volltext"><![CDATA[]]> |
|
<xsl:value-of select="substring-after(caption_long,'<br>')" /><![CDATA[]]> |
|
</xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:text><![CDATA[</td>"); |
|
neu.document.write("</tr>"); |
|
]]></xsl:text> |
|
</xsl:for-each> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("</tbody></table></fieldset></div><div class='box_bottom_left'><div class='box_bottom_right'></div></div></div></div>"); |
|
|
|
]]></xsl:text> <!-- neu.document.write("<div class='columnOneThirdRight_1024'><div class='box_grey_bg_white'><div |
|
class='box_container'><div class='box_title'><h2>Informationen</h2></div><div |
|
class='box_content'><fieldset class='fieldsetNoBorder'><legend>Informationen</legend>Abfragen |
|
zu Einzelprüfungen (nicht nur Haupt- oder Vordiplom)</fieldset></div><div |
|
class='box_bottom_left'><div class='box_bottom_right'></div></div></div></div></div>"); --> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("</div></div></body></html>"); |
|
|
|
|
|
neu.document.close(); |
|
} |
|
]]> |
|
</xsl:text> |
|
</script> |
|
</xsl:template> |
|
|
|
<xsl:template name="explanation_superx"> |
|
<p class="dontprint" align="center"><input type="button" class="clsButtonStyle" name="erl" value="Erläuterung" > |
|
<xsl:attribute name="onClick"><xsl:value-of select="concat('showErlaeuterung',../maskenname/@id,'()')" /></xsl:attribute> |
|
</input> |
|
</p> |
|
<script language = "Javascript"> |
|
<xsl:text> |
|
function showErlaeuterung</xsl:text><xsl:value-of select="../maskenname/@id" /><xsl:text><![CDATA[() |
|
{ |
|
neu=window.open("","explanation_window","toolbar=yes,resizable=yes,scrollbars=yes,menubar=yes,location=no"); |
|
neu.document.write("<h1>Maske ]]></xsl:text><xsl:value-of select="../maskenname" /><xsl:text><![CDATA[</h1>"); |
|
neu.document.write("<p> ]]></xsl:text><xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="../explanation" /><![CDATA[]]></xsl:with-param></xsl:call-template><xsl:text><![CDATA[</p><hr /><table border='1'><tr><th>Felderläuterung</th><th>Spaltenerläuterung</th></tr><td valign='top'><ol>"); |
|
]]> |
|
</xsl:text> |
|
<xsl:for-each select="../felder/feld"> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("<li><b>]]></xsl:text><xsl:value-of select="@varname" /><xsl:text><![CDATA[</b><br />]]></xsl:text> |
|
<xsl:if test="string-length(caption_long) > 0 and caption_long != 'null'"> |
|
<xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="caption_long" /><![CDATA[]]></xsl:with-param></xsl:call-template> |
|
</xsl:if><xsl:text><![CDATA[</li>"); |
|
]]></xsl:text> |
|
</xsl:for-each> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("</ol></td><td valign='top'><ol>"); |
|
]]> |
|
</xsl:text> |
|
<xsl:for-each select="sqlerg/headers/header [string-length(caption_long) > 1 and caption_long !='null'and starts-with(f_name,'hidden')=false]"> |
|
<xsl:text><![CDATA[ |
|
neu.document.write("<li>]]></xsl:text><xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="caption_long" /><![CDATA[]]></xsl:with-param></xsl:call-template><xsl:text><![CDATA[</li>"); |
|
]]></xsl:text> |
|
</xsl:for-each> |
|
|
|
<xsl:text><![CDATA[ |
|
neu.document.write("</ol></td></tr></table>"); |
|
neu.document.write("<p align='center'><a href='javascript:window.print();'><img src='../images/printer.svg' border='0' /></a></p>"); |
|
neu.document.write("<p align='center'><a href='javascript:window.close();'>Fenster schließen</a></p>"); |
|
neu.document.close(); |
|
} |
|
]]> |
|
</xsl:text> |
|
</script> |
|
</xsl:template> |
|
<!-- MB ausgelagert aus tabelle.html--> |
|
<xsl:template name="resultrow"> |
|
<xsl:param name="erglevelmax" /> |
|
<xsl:param name="row" /> |
|
<xsl:param name="excludecols"/> |
|
<xsl:param name="showlinks"/> |
|
<tr> |
|
<!-- wenn tr andere Attribute als class/id erhält kann es beim Nachladen von Tabellenzeilen im IE Probleme geben--> |
|
<xsl:choose> |
|
<xsl:when test="col/f_name = 'ebene'"> |
|
<!-- DQ 9.12.07 --> |
|
<xsl:choose> |
|
<xsl:when test="$erglevelmax != 5"> |
|
<xsl:attribute name="class"><xsl:value-of select="concat('erglevel',$erglevelmax,'_',col[ f_name = 'ebene' ] /wert)" /></xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:attribute name="class"><xsl:text>erglevel_</xsl:text><xsl:value-of select="col[ f_name = 'ebene' ] /wert" /></xsl:attribute> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:when> |
|
<xsl:when test="@issumme='true'"> |
|
<xsl:attribute name="class"><xsl:text>issumme</xsl:text></xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<!-- odd und even --> |
|
<xsl:choose> |
|
<xsl:when test="position() mod 2 = 1"> |
|
<xsl:attribute name="class"><xsl:text>listRowOdd</xsl:text></xsl:attribute> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:attribute name="class"><xsl:text>listRowEven</xsl:text></xsl:attribute> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
<xsl:attribute name="id"><xsl:value-of select="@treetableid" /></xsl:attribute> |
|
<!-- MB 5/2011 rowno ist id im XML, fuer Export ausgewaehlter Zeilen nach Excel/PDF benoetigt --> |
|
<xsl:attribute name="irowno"><xsl:value-of select="@internalrowno" /></xsl:attribute> |
|
|
|
<!-- MB 04/2010 hidden und bestimmte Spalte ausblenden--> |
|
<xsl:for-each select="col[not (starts-with(f_name,'hidden')) and not (contains($excludecols,f_name))]"> |
|
|
|
<xsl:call-template name="tablecell"><xsl:with-param name="showlinks"><xsl:value-of select="$showlinks"/></xsl:with-param> |
|
</xsl:call-template> |
|
|
|
</xsl:for-each> |
|
</tr> |
|
</xsl:template> |
|
|
|
<xsl:template name="tablecell"> |
|
<xsl:param name="showlinks"/> |
|
<xsl:variable name="linkcol"><xsl:value-of select="concat('hidden_',f_name)"/></xsl:variable> |
|
<xsl:variable name="linkhref"><xsl:value-of select="../col[f_name=$linkcol]/wert"/></xsl:variable> |
|
<xsl:variable name="tdClass"><xsl:call-template name="tdCssClassErgfeld"><xsl:with-param name="checkname"><xsl:value-of select="concat('hidden',f_name,'css')"/></xsl:with-param></xsl:call-template></xsl:variable> |
|
<td> |
|
<xsl:attribute name="class"><xsl:value-of select="$tdClass" /> |
|
</xsl:attribute> |
|
|
|
<!-- Uni Freiburg HvL 28.05.2019 --> |
|
<!-- Mouseover basierend auf versteckter Spalte hiddenmouseover_ID --> |
|
<!-- Die Zuordnung erfolgt über die Spaltennummer, d.h. es sind auch mehrere Spalten mit tooltip möglich --> |
|
<!-- es wird in jedem Fall ein zusätzlicher div für den Inhalt des Tabellenfeldes hinzugefügt --> |
|
<!-- für den Fall, dass das Tabellenfeld als Tooltip dienen soll, wird die Klasse tooltiptext zugewiesen --> |
|
<xsl:variable name="columnId" select="@id" /> |
|
<xsl:variable name="showTooltip" select="../col [starts-with(f_name,'hiddenmouseover_') and substring-after(f_name, '_')=$columnId and wert !='']" /> |
|
<div> |
|
<xsl:if test="$showTooltip"> |
|
<xsl:attribute name="class">tooltip</xsl:attribute> |
|
</xsl:if> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:when test="starts-with(f_name,'_graph')"> <!-- Balkendiagramm --> |
|
<xsl:variable name="feldname"><xsl:value-of select="f_name"/></xsl:variable> |
|
<xsl:call-template name="graph"> |
|
<xsl:with-param name="graphwidth" select="../../headers/header[f_name=$feldname]/@width * 12" /> |
|
<xsl:with-param name="graphheight" select="20" /> |
|
<xsl:with-param name="feldname" select="f_name" /> |
|
<xsl:with-param name="feldwert" select="wert" /> |
|
</xsl:call-template> |
|
</xsl:when> |
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
|
|
<!--<xsl:value-of select="wert" />--> |
|
<xsl:call-template name="displaydecimal"><xsl:with-param name="checkname"><xsl:value-of select="concat('hidden',f_name,'dp')"/></xsl:with-param> |
|
<xsl:with-param name="showlinks"><xsl:value-of select="$showlinks"/></xsl:with-param></xsl:call-template> |
|
|
|
|
|
</xsl:when> |
|
<xsl:when test="@typ='4'"> <!-- Integer --> |
|
<xsl:choose> |
|
|
|
<xsl:when test="wert != ''"> |
|
<xsl:choose> |
|
|
|
<xsl:when test="$showlinks='true' and $linkhref!='' and f_name!='ebene'"> |
|
|
|
<a target='_blank'> |
|
<xsl:attribute name="href"><xsl:attribute name="href"><xsl:value-of select="$linkhref"/></xsl:attribute></xsl:attribute> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0','German')" /> |
|
</a> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0','German')" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</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" />--> |
|
<!-- Uni Freiburg BM auch Textfelder können Links enthalten--> |
|
<xsl:choose> |
|
<xsl:when test="$showlinks='true' and $linkhref!=''"> |
|
<!-- VERLINKUNG --> |
|
<a target='_blank'> |
|
<xsl:attribute name="href"><xsl:attribute name="href"><xsl:value-of select="$linkhref"/></xsl:attribute></xsl:attribute> |
|
<xsl:value-of select="wert" /> |
|
</a> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<!-- //BM --> |
|
<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:if test="/ergebnisse/@isMakro!='true' and position()=2 and ../@treeindent >=0"> |
|
<xsl:call-template name="indent"> |
|
<xsl:with-param name="i">1</xsl:with-param> |
|
<xsl:with-param name="count"><xsl:value-of select="../@treeindent"/></xsl:with-param> |
|
</xsl:call-template> |
|
<xsl:choose> |
|
<xsl:when test="/ergebnisse/@isMakro!='true' and ../@isfolder='true'"> |
|
<a> |
|
<!-- MB 4.3.09 Attribut mit Sprungzielanker definiert, damit bei großen Tabellen an passende Stelle gesprungen wird--> |
|
<!-- <xsl:attribute name="href"><xsl:text>#</xsl:text><xsl:value-of select="../@treetableid"/></xsl:attribute> --> |
|
<!-- AK 29.07.2015 Attribut href mit Anker raus genommen. Die ersten beiden Zeilen verschwinden unter dem Tabellen Header falls die Tabelle zu lang ist. |
|
Damit bei klick auf Ordner nicht ganz nach oben gesprungen wird href ganz raus. Damit der Curser der Maus aussieht wie bei einem Link curser: pointer ergänzt. --> |
|
<xsl:attribute name="style"><xsl:text>cursor: pointer;</xsl:text></xsl:attribute> |
|
<xsl:attribute name="onclick"> |
|
<xsl:text>ajaxNodeToggle('</xsl:text><xsl:value-of select="../@treetableid"/><xsl:text>','</xsl:text> |
|
<xsl:value-of select="../@internalrowno"/><xsl:text>')</xsl:text> |
|
</xsl:attribute> |
|
<img src="/superx/xml/tree_plus_rect.svg" class="treebutton" alt="" width="16" height="16" /> |
|
</a> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
  |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:if> |
|
<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> |
|
|
|
</xsl:otherwise> |
|
</xsl:choose> |
|
|
|
<!-- Uni Freiburg HvL 28.05.2019 --> |
|
<!-- Tooltip-Text einbinden und div den wir zusätzlich eingebaut haben wieder schließen --> |
|
<xsl:if test="$showTooltip"> |
|
<span class="tooltiptext"> |
|
<xsl:for-each select="../col [f_name=concat('hiddenmouseover_',$columnId)]"><xsl:value-of select="wert" /></xsl:for-each> |
|
</span> |
|
</xsl:if> |
|
</div> |
|
|
|
<xsl:if test="f_name = 'ebene' and ../@isfolder='true'"> |
|
<!-- |
|
<xsl:call-template name="indent"> |
|
<xsl:with-param name="i">1</xsl:with-param> |
|
<xsl:with-param name="count"><xsl:value-of select="../@treeindent"/></xsl:with-param> |
|
</xsl:call-template> |
|
<a href="#"> |
|
<xsl:attribute name="onclick"> |
|
<xsl:text>ajaxNodeToggle('</xsl:text><xsl:value-of select="../@treetableid"/><xsl:text>','</xsl:text> |
|
<xsl:value-of select="../@internalrowno"/><xsl:text>')</xsl:text> |
|
</xsl:attribute> |
|
<img src="/superx/xml/folder_green.png" class="treebutton" alt="" width="16" height="16" /> |
|
</a> |
|
--> |
|
</xsl:if> |
|
</td> |
|
</xsl:template> |
|
<!-- wenn es Spalte hiddenfeldnamecss gibt, dann spezielle css-Klasse für td-Element, ansonsten "ergfeld" --> |
|
<xsl:template name="tdCssClassErgfeld"> |
|
<xsl:param name="checkname" /> |
|
<xsl:choose> |
|
<xsl:when test="../col[f_name=$checkname]/wert!=''"> |
|
<xsl:value-of select="../col[f_name=$checkname]/wert" /> |
|
</xsl:when> |
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
<xsl:text>decimal</xsl:text> |
|
</xsl:when> |
|
<xsl:when test="@typ='4'"> |
|
<xsl:text>integer</xsl:text> |
|
</xsl:when> |
|
<xsl:otherwise><xsl:text>ergfeld</xsl:text></xsl:otherwise> |
|
|
|
</xsl:choose> |
|
|
|
</xsl:template> |
|
<xsl:template name="displaydecimal"> |
|
<xsl:param name="checkname" /> |
|
<xsl:param name="showlinks" /> |
|
<xsl:variable name="linkcol"><xsl:value-of select="concat('hidden_',f_name)"/></xsl:variable> |
|
<xsl:variable name="linkhref"><xsl:value-of select="../col[f_name=$linkcol]/wert"/></xsl:variable> |
|
<xsl:choose> |
|
<xsl:when test="$showlinks='true' and $linkhref!=''"> |
|
<a target='_blank'> |
|
<xsl:attribute name="href"><xsl:value-of select="$linkhref"/></xsl:attribute> |
|
|
|
<xsl:call-template name="displaysingledecimal"><xsl:with-param name="checkname">$checkname</xsl:with-param></xsl:call-template> |
|
</a> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:call-template name="displaysingledecimal"><xsl:with-param name="checkname">$checkname</xsl:with-param></xsl:call-template> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
|
|
<xsl:template name="displaysingledecimal"> |
|
<xsl:param name="checkname" /> |
|
<xsl:choose> |
|
<xsl:when test="wert != ''"> |
|
|
|
<xsl:choose> <!--MB wenn es eine versteckte hidden_decimalpl gibt auswerten--> |
|
<xsl:when test="../col[f_name=$checkname]/wert='0'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='1'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,0','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='2'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='3'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,000','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='4'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,0000','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='5'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00000','German')" /> |
|
</xsl:when> |
|
<xsl:when test="../col[f_name=$checkname]/wert='6'"> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,000000','German')" /> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:when> |
|
<xsl:otherwise> |
|
<xsl:value-of select="' '" /> |
|
</xsl:otherwise> |
|
</xsl:choose> |
|
</xsl:template> |
|
|
|
</xsl:stylesheet>
|
|
|