Hallo,
habe ein Problem, das ich über eine dynamische Auswahlliste gerne das Ergebnis filtern würde. Die dynamische Auswahlliste habe ich soweit hinbekommen, allerdings fehlt mir noch das entsprechende Ergebnis.
Meine XSLT Datei schaut folgendermaßen aus:
habe ein Problem, das ich über eine dynamische Auswahlliste gerne das Ergebnis filtern würde. Die dynamische Auswahlliste habe ich soweit hinbekommen, allerdings fehlt mir noch das entsprechende Ergebnis.
Meine XSLT Datei schaut folgendermaßen aus:
Code:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:altova="http://www.altova.com"> <xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" /> <xsl:param name="SV_OutputFormat" select="'HTML'" /> <xsl:variable name="XML" select="/" /> <xsl:decimal-format name="format1" grouping-separator="." decimal-separator="," /> <xsl:template match="/"> <html> <head> <title /> <style type="text/css"> </style> </head> <body> <xsl:for-each select="$XML"> <h1> <xsl:for-each select="report"> <xsl:for-each select="Headertext"> <xsl:apply-templates /> </xsl:for-each> </xsl:for-each> </h1> <br /> <span> <xsl:text>Auswahl der Buchungsperiode: </xsl:text> </span> <select style="width:338px; "> <xsl:variable name="CurrentValue" select="string(current())" /> <xsl:for-each select="distinct-values( report/tables/Geschenkekonto/C035-BUCH_PERIODE )"> <option> <xsl:if test="string(.)=$CurrentValue"> <xsl:attribute name="selected">1</xsl:attribute> </xsl:if> <xsl:value-of select="." /> </option> </xsl:for-each> </select> <br /> <br /> <table border="1"> <thead> <tr> <th> <span> <xsl:text>BuchPeriode</xsl:text> </span> </th> <th> <span> <xsl:text>Buchungstext</xsl:text> </span> </th> <th> <span> <xsl:text>Buchwert</xsl:text> </span> </th> <th> <span> <xsl:text>Gebucht</xsl:text> </span> </th> <th> <span> <xsl:text>Differenz</xsl:text> </span> </th> </tr> </thead> <tbody> <xsl:for-each select="report"> <xsl:for-each select="tables"> <xsl:for-each select="Geschenkekonto"> <tr> <td> <xsl:for-each select="C035-BUCH_PERIODE"> <xsl:apply-templates /> </xsl:for-each> </td> <td> <xsl:for-each select="C035-BUCHUNGSTEXT"> <xsl:apply-templates /> </xsl:for-each> </td> <td align="right"> <xsl:for-each select="C035-BRUTTO"> <xsl:apply-templates /> </xsl:for-each> </td> <td align="right"> <xsl:for-each select="tables"> <xsl:apply-templates /> </xsl:for-each> </td> <td align="right"> <span> <xsl:value-of select="format-number(number(C035-BRUTTO - tables/Geschenkeliste/C034-S_Brutto), '##0,00', 'format1')" /> </span> </td> </tr> </xsl:for-each> </xsl:for-each> </xsl:for-each> </tbody> </table> <br /> <br /> <br /> <br /> <xsl:for-each select="report"> <xsl:for-each select="Version"> <xsl:for-each select="Customer"> <xsl:apply-templates /> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br /> <xsl:for-each select="report"> <xsl:for-each select="Version"> <xsl:for-each select="User"> <xsl:apply-templates /> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br /> <xsl:for-each select="report"> <xsl:for-each select="Version"> <xsl:for-each select="Created"> <xsl:apply-templates /> </xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
Comment