[xsl] Adding child element based on attribute value [XSLT 1.0]

Subject: [xsl] Adding child element based on attribute value [XSLT 1.0]
From: pankaj.c@xxxxxxxxxxxxxxxxxx
Date: Sat, 8 Jan 2011 17:20:42 +0530
Hello all,

Is there a way if I have XML.

<my_group count=3/>

The output I am expecting is adding child element based on value of 
@count.

Output something like

<my_group count="3">
        <group name="type1"/>
        <group name="type2"/>
        <group name="type3"/>
</mygroup>

Any ideas will be highly appreciated.

Best,

Pankaj

Current Thread