ssiedlerin268: <xsl:for-each-group ...> - Problem

Beitrag lesen

Hmmm, leider klappt es immer noch nicht :(
Ja, ich hab ein solches Feld als eines von vielen Tags im Elternelement <Zeile>. Das ist die XLS-Datei, die ich bisher habe und er gibt nichts von dem aus, was in diesem <xsl:for-each-group ...>- Tag steht:

<?xml version="1.0"?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:key name="groupby" match="//Zeile" use="Feld[@PERS.KONTENNUMMER]"/>
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="/doc">
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<w:body>
<w:p>
<w:pPr>
<w:tabs>
<w:tab w:val="left" w:pos="1500"/>
<w:tab w:val="left" w:pos="3000"/>
<w:tab w:val="left" w:pos="4500"/>
<w:tab w:val="left" w:pos="6000"/>
<w:tab w:val="left" w:pos="7500"/>
<w:tab w:val="left" w:pos="9000"/>
<w:tab w:val="left" w:pos="10500"/>
<w:tab w:val="left" w:pos="12000"/>
<w:tab w:val="left" w:pos="13500"/>
</w:tabs>
<w:pBdr>
<w:top w:val="dotted" w:sz="12" w:space="1" w:color="auto"/>
<w:bottom w:val="dotted" w:sz="12" w:space="1" w:color="auto"/>
</w:pBdr>
</w:pPr>
<w:r>
<w:t>FB4405 OP-Liste per   04.03.2009</w:t>
<w:tab/>
<w:t>FIRMA</w:t>
<w:tab/>
<w:t> - <xsl:value-of select="Daten/Zeile/Feld[@Name='FIRMENNUMMER']"/>xsl:text ...</xsl:text></w:t>
<w:tab/>
<w:t>Test AZ komplett Dresden</w:t>
<w:br/>
<w:t>....</w:t>
<w:tab/><w:tab/>
<w:t>Buchungsdatum:  0.00.00 - 27.02.09</w:t>
<w:tab/><w:tab/><w:tab/><w:tab/>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pBdr>
<w:bottom w:val="dotted" w:sz="12" w:space="1" w:color="000000"/>
</w:pBdr>
<w:tabs>
<w:tab w:val="left" w:pos="1500"/>
<w:tab w:val="left" w:pos="3000"/>
<w:tab w:val="left" w:pos="4500"/>
<w:tab w:val="left" w:pos="6000"/>
<w:tab w:val="left" w:pos="7500"/>
<w:tab w:val="left" w:pos="9000"/>
<w:tab w:val="left" w:pos="10500"/>
<w:tab w:val="left" w:pos="12000"/>
<w:tab w:val="left" w:pos="13500"/>
</w:tabs>
</w:pPr>
<w:r>
<xsl:apply-templates select="Kopf"/>
</w:r>
</w:p>
<xsl:apply-templates select="Daten"/>
<w:p>
<w:pPr>
<w:pBdr>
<w:bottom w:val="dotted" w:sz="12" w:space="1" w:color="000000"/>
</w:pBdr>
</w:pPr>
</w:p>

	<w:sectPr>  
		<w:pgSz w:w="16838" w:h="11906" w:orient="landscape"/>  
		<w:pgMar w:top="1418" w:right="1418" w:bottom="1418" w:left="1134" w:header="709" w:footer="709" w:gutter="0"/>  
		<w:cols w:space="708"/>  
		<w:docGrid w:line-pitch="360"/>  
	</w:sectPr>  
</w:body>  

</w:wordDocument>

</xsl:template>
<xsl:template match="Kopf">
<xsl:for-each select="Spalte[@tabelle='J']">
<w:t><xsl:value-of select="."/></w:t>
<w:tab/>
</xsl:for-each>
</xsl:template>

<xsl:template match="Daten">
<xsl:for-each-group select="Zeile[Feld='K']" group-by="Feld[@Name='PERS.KONTENNUMMER']">
<w:p>
<w:pPr>
<w:tabs>
<w:tab w:val="left" w:pos="1500"/>
<w:tab w:val="left" w:pos="11000"/>
<w:tab w:val="left" w:pos="12000"/>
<w:tab w:val="left" w:pos="13050"/>
</w:tabs>
</w:pPr>
  <w:r>
  <w:t><xsl:value-of select="Feld[@Name='KZ DEB/KRED.']"/>xsl:text    </xsl:text><xsl:value-of select="Feld[@Name='PERS.KONTENNUMMER']"/></w:t>
  <w:tab/>
  <w:t> - <xsl:value-of select="Feld[@Name='NAME 1']"/>xsl:text </xsl:text><xsl:value-of select="Feld[@Name='NAME 2']"/>xsl:text </xsl:text><xsl:value-of select="Feld[@Name='PLZ']"/>xsl:text </xsl:text><xsl:value-of select="Feld[@Name='ORT']"/></w:t>
  <w:tab/>
  <w:t>Vertreter :</w:t>
  <w:tab/><w:tab/>
  <w:t>2. Zielgruppe:</w:t>
  </w:r>
  </w:p>
  <w:p>
<w:pPr>
<w:tabs>
<w:tab w:val="left" w:pos="3000"/>
<w:tab w:val="left" w:pos="6000"/>
</w:tabs>
</w:pPr>
  <w:r>
  <w:t>Ansprechpartner:</w:t>
  <w:tab/>
  <w:t>Telefon: </w:t>
  <w:tab/><w:tab/>
  <w:t>Telefax:</w:t>
  </w:r>
</w:p>
<xsl:for-each select="current-group()">
<w:p>
<w:pPr>
<w:tabs><w:tab w:val="left" w:pos="1500"/>
<w:tab w:val="left" w:pos="3000"/>
<w:tab w:val="left" w:pos="4500"/>
<w:tab w:val="left" w:pos="6000"/>
<w:tab w:val="left" w:pos="7500"/>
<w:tab w:val="left" w:pos="9000"/>
<w:tab w:val="left" w:pos="10500"/>
<w:tab w:val="left" w:pos="12000"/>
<w:tab w:val="left" w:pos="13050"/>
</w:tabs>
</w:pPr>
<w:r>
<xsl:for-each select="Feld[@tabelle='J']">
  <w:t><xsl:value-of select="."/></w:t><w:tab/>
   </xsl:for-each>
   </w:r>
   </w:p>
 </xsl:for-each>
   <w:p>
   <w:pPr>
<w:tabs><w:tab w:val="left" w:pos="1500"/>
<w:tab w:val="left" w:pos="3000"/>
<w:tab w:val="left" w:pos="4500"/>
<w:tab w:val="left" w:pos="6000"/>
<w:tab w:val="left" w:pos="7500"/>
<w:tab w:val="left" w:pos="9000"/>
<w:tab w:val="left" w:pos="10500"/>
<w:tab w:val="left" w:pos="12000"/>
<w:tab w:val="left" w:pos="13050"/>
</w:tabs>
</w:pPr>
<w:r>
  <w:tab/>
  <w:tab/>
  <w:t>722,00</w:t><w:tab/>
  <w:t>-722,00</w:t>
  <w:tab/>
  <w:t>0,00</w:t>
  <w:tab/>
  <w:t>*  Saldo Personenkontoxsl:text   </xsl:text><xsl:value-of select="Feld[@Name='PERS.KONTENNUMMER']"/></w:t>
  <w:br/>
  </w:r>
</w:p>
 </xsl:for-each-group>

<w:p>  
	<w:pPr>  
		<w:tabs><w:tab w:val="left" w:pos="1500"/>  
			<w:tab w:val="left" w:pos="3000"/>  
			<w:tab w:val="left" w:pos="4500"/>  
			<w:tab w:val="left" w:pos="6000"/>  
			<w:tab w:val="left" w:pos="7500"/>  
			<w:tab w:val="left" w:pos="9000"/>  
			<w:tab w:val="left" w:pos="10500"/>  
			<w:tab w:val="left" w:pos="12000"/>  
			<w:tab w:val="left" w:pos="13050"/>  
		</w:tabs>  
	</w:pPr>		  
	<w:r>  
		<w:tab/>  

<w:tab/>
  <w:t>722,00</w:t><w:tab/>
  <w:t>-722,00</w:t><w:tab/>
  <w:t>0,00</w:t>
  <w:tab/>
<w:t>**  Saldo Sammelkonto <xsl:value-of select="Zeile/Feld[@Name='SAMMELKONTO']"/></w:t>
</w:r>
</w:p>
</xsl:template>
</xsl:stylesheet>