hy thomas, danke schonmal für deine antwort!
ich fisch hab das ursprungs-xml vergessn :(
so jetzt nochmal zusammengefasst:
quell-xml: taill.xml
<root>
<Item>
<number>2783</number>
<ProductionItems>
<organizationalUnit>100</organizationalUnit>
<EntityExtension>
<TAILLIERUNG><value>F85</value></TAILLIERUNG>
</EntityExtension>
</ProductionItems>
<ProductionItems>
<ProductionItems>
<organizationalUnit>200</organizationalUnit>
<EntityExtension>
<TAILLIERUNG><value>F85</value></TAILLIERUNG>
</EntityExtension>
</ProductionItems>
</Item>
<Item>
...
</Item>
</root>
mit diesem xsl wollte ich die taillierungen grupieren
<xsl:template match="/">
<Root>
<xsl:for-each-group select="document(taill.xml)/./*/*/it:ProductionItems/it:EntityExtension" group-by="it:TAILLIERUNG">
<Colors>
<taillierung>
<xsl:value-of select="current-grouping-key()"/>
</taillierung>
</Colors></xsl:for-each-group>
</Root>
</xsl:template>
so solls dann ausschaun:
<Colors>
<taillierung>F85</taillierung>
</Colors>
vielen dank!!