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.
 
 
 
 
 
 

103 lines
2.7 KiB

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit="0" decimal-separator="," />
<xsl:template match="/ergebnisse">
<!-- <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ITEXT SYSTEM "http://itext.sourceforge.net/itext.dtd">
-->
<itext>
<xsl:for-each select="ergebnis">
<xsl:for-each select="ergebniselement">
<xsl:if test="@typ='image'">
<xsl:text>
</xsl:text>
<image align="center">
<xsl:attribute name="url"><xsl:value-of select="@localurl"/></xsl:attribute>
</image><paragraph>
</paragraph>
<paragraph>
</paragraph>
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:if test="@typ='tabelle'">
<xsl:text>
</xsl:text>
<paragraph font="sans-serif" size="20" style="bold">
<xsl:value-of select="../maskenname" />
</paragraph>
<xsl:call-template name="legende" />
<xsl:text>
</xsl:text>
<paragraph font="sans-serif" size="12"><phrase style="bold">Stand</phrase><phrase stype="normal">: <xsl:value-of select="../stand" /></phrase></paragraph>
<paragraph></paragraph>
<xsl:text>
</xsl:text>
<table>
<xsl:attribute name="columns"><xsl:value-of select="sqlerg/headers/@count"/></xsl:attribute>
<xsl:text>
</xsl:text>
<!--headers-->
<row>
<xsl:for-each select="sqlerg/headers/header">
<cell header="true"><paragraph style="bold">
<xsl:value-of select="normalize-space(wert)" />
</paragraph>
</cell>
</xsl:for-each>
</row><xsl:text>
</xsl:text>
<xsl:for-each select="sqlerg/row">
<row>
<xsl:for-each select="col">
<cell><paragraph>
<xsl:value-of select="normalize-space(wert)" />
</paragraph>
</cell>
</xsl:for-each>
</row><xsl:text>
</xsl:text>
</xsl:for-each>
<xsl:text>
</xsl:text>
</table><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</itext>
</xsl:template>
<xsl:template name="legende">
<xsl:text>
</xsl:text>
<!-- <fo:block font-family="sans-serif" line-height="16pt" font-size="14pt" border-width="0.5mm" border-style="solid" border-color="gray" margin-bottom="40mm">
-->
<xsl:text>
</xsl:text>
<paragraph font="sans-serif" size="12" >
<xsl:for-each select="../felder/feld">
<xsl:if test="wert !=''">
<phrase style="bold"><xsl:value-of select="wert/@varname" /></phrase><phrase style="normal"><xsl:text>: </xsl:text>
<xsl:if test="string-length(wert/caption) &lt; 50">
<xsl:value-of select="wert/caption" />
</xsl:if>
<xsl:if test="string-length(wert/caption) &gt; 49">
<xsl:value-of select="substring(wert/caption,0,50)" />...
</xsl:if>
<xsl:text> </xsl:text>
</phrase>
</xsl:if>
</xsl:for-each>
</paragraph>
</xsl:template>
</xsl:stylesheet>