How do I rename 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/21 1:53 UTC
Read the original article Hit count: 281

Filed under:
|

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

Related posts about xslt

Related posts about Xml