[Home] [By Thread] [By Date] [Recent Entries]
Robert C Corsaro wrote:
<products> <xsl:for-each-group select="/products" group-by="product"> <product><xsl:value-of select="product" /></product> </xsl:for-each-group> </products> You're grouping the <products> element by the value of the <product> elements that it contains. You want to group the <product> elements based on their value: <products>
<xsl:for-each-group select="/products/product" group-by=".">
<product><xsl:value-of select="." /></product>
</xsl:for-each-group>
</products>Cheers, Jeni -- Jeni Tennison http://www.jenitennison.com
|

Cart



