I have an XML like this

```
<filters>
      <ISP_WebItem FILTER="Type" FILTERNAME="Farvet" UNITCODE="" />
      <ISP_WebItem FILTER="Antal i pakke" FILTERNAME="1" UNITCODE="Farvepatro" />
      <ISP_WebItem FILTER="Farve" FILTERNAME="Rød" UNITCODE="" />
      <ISP_WebItem FILTER="Farve" FILTERNAME="Blå" UNITCODE="" />
      <ISP_WebItem FILTER="Farve" FILTERNAME="Gul" UNITCODE="" />
      <ISP_WebItem FILTER="Printer mærke" FILTERNAME="HP" UNITCODE="" />
</filters>

```

i want to transform this XML in to an HTML something like this

```
Type          = Farvet
Antal i pakke = 1
farve         =Rød,Blå,Gul etc
Printer mærke =HP

```

you can see that there is three "FILTER" attributes with same value "Farve". In my HTML I 
want them as comma separated.
as the first step to do this i have grouped the elements of this XML using Muenchian\_grouping so that if two or more FILTER attributes are same they will come as adjacent.

then i done some thing like this

```
 <xsl:for-each select="$filt-grouped-formatted//ISP_WebItem[position() = 1 or @FILTER != preceding-sibling::*[1]/@FILTER ]">
              <xsl:variable name="current_filter" select="@FILTER" />
              <tr>
                <td width="200px">
                  <xsl:value-of select="$current_filter"/>:
                </td>
                <td>
                  <xsl:value-of select="@FILTERNAME"/>
                  <xsl:if test="@UNITCODE != ''">
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="@UNITCODE"/>
                  </xsl:if>
                  <xsl:variable name="current_grouped_filter" select="$filt-grouped-formatted[@FILTER = $current_filter]" />

                  <xsl:if test="count($current_grouped_filter) &gt; 0">
                    <textarea>
                      <xsl:copy-of select="$current_grouped_filter"/>
                    </textarea>
                    <xsl:text>, </xsl:text>
                    <xsl:for-each select="$current_grouped_filter">
                      <xsl:value-of select="@FILTERNAME"/>
                      <xsl:if test="@UNITCODE != ''">
                        <xsl:text> </xsl:text>
                        <xsl:value-of select="@UNITCODE"/>
                      </xsl:if>
               <xsl:if test="count($current_grouped_filter) > position()">,</xsl:if>
                    </xsl:for-each>
                  </xsl:if>
                </td>
              </tr>
            </xsl:for-each>

```

only thing i can't achieve is the grouped elements are not coming.can any one suggest me an edit in the code.