How do I add an attribute using XSLT?
        Posted  
        
            by kunjaan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by kunjaan
        
        
        
        Published on 2010-04-20T23:40:37Z
        Indexed on 
            2010/04/20
            23:43 UTC
        
        
        Read the original article
        Hit count: 160
        
I have an xml like this:
<person name="foo" gender = "male" />
I want to transform it to
<person id="foo" gender="male" />
Is there a way to do that using XSLT?
© Stack Overflow or respective owner