xsl-list
[Top] [All Lists]

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

2011-01-08 05:50:55
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--