Witam
Oto mój kod XML-a
<?xml version="1.0" encoding="windows-1250" ?>
<schema xmlns="http://www.insert.com.pl/GTSchemas/xml-def.xsd">
<version>1.00</version>
<filename>platnosci_trasy.xml</filename>
<description>Platnosci na trasie</description>
<element name="Zaleglosci">
<data>
<sql><![CDATA[
select
kh_symbol AS Symbol,
nzf_numerpelny AS Dokument,
nzf_data AS Data,
nzf_wartoscpierwotna AS Wartosc,
spoznienie AS Spoznienie,
naleznosc AS Do_splaty,
kh_pole4 from
vwFinanseRozKontrahenciDok
left join kh__Kontrahent on nzf_idobiektu=kh_id
where spoznienie > 0
and nzf_typ=39
and kh_zablokowany='false'
and kh_pole4 like '01 GD'
]]></sql>
<element name="Zaleglosc">
<element name="Symbol" src="Symbol" />
<element name="Dokument" src="Dokument" />
<element name="Data" src="Data" />
<element name="Wartosc_Pierwotna" src="Wartosc" />
<element name="Spoznienie" src="spoznienie" />
<element name="Do_splaty" src="Do_splaty" />
</element>
</data>
</element>
</schema>
A tutaj kod XSL
<?xml version="1.0" encoding="windows-1250" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!--body of HTML-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<meta http-equiv="Content-Language" content="pl" />
<title>Lista</title>
<STYLE TYPE="text/css">
*
{
border-collapse:collapse;
margin-left:18px;
}
</STYLE>
</head>
<body>
<xsl:apply-templates select="Zaleglosci"/>
<STYLE TYPE="text/css">
*
{font-size:x-small;
margin-left:18px;
}
</STYLE>
<TR >
<TH> <br/> </TH>
<xsl:text> Gratyfikant GT, Insert sp. z o.o. Wrocław </xsl:text>
</TR>
</body>
</html>
<!--/body of HTML-->
</xsl:template>
<xsl:template match="Zaleglosci">
<xsl:variable name="spacje" select="'wwww'"/>
<TABLE BORDER= '1' CELLSPACING="0" style="font-size:x-small" >
<TR BGCOLOR='#c0c0c0'>
<TH colspan="4" >Symbol</TH>
<TH colspan="6" >Dokument</TH>
<TH colspan="4" >Data</TH>
<TH colspan="4" >Wartosc Pierwotna</TH>
<TH colspan="4" >Spoznienie</TH>
<TH colspan="4" >Do_splaty</TH>
</TR>
<TR BGCOLOR='#c0c0c0'>
</TR>
<xsl:apply-templates select="Zaleglosc" />
</TABLE>
</xsl:template>
<xsl:template match="Zaleglosc">
<xsl:variable name="spacje" select="' '" />
<TR>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Symbol"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Dokument"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Data"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Wartosc_Pierwotna"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Spoznienie"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none;border-left-style:none"><xsl:value-of select="Do_splaty"/></TD>
<TD style="border-left-style:none;border-right-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-left-style:none"><xsl:value-of select="$spacje"/></TD>
<TD style="border-right-style:none"><xsl:value-of select="$spacje"/></TD>
</TR>
</xsl:template>
</xsl:stylesheet>
Czy ktos może podpowiedziec jak uzyć funkcji "for-each-group" aby pogrupowac wyniki po symbolu kontrahenta ?