dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to rename an xml node using xsl??

  1. #1
    Join Date
    May 2005
    Posts
    4

    How to rename an xml node using xsl??

    Hi there,

    I have an xml structure like below.

    <Root>
    <Books Name="C++" Author="Unknown">
    <Book Price="30"/>
    <Book Price="50"/>
    <Book Price="45"/>
    </Books>
    </Root>

    Using an xsl,I want to rename only the Books node to "TechBooks" and this new node will have all the attributes and child nodes which the oroginal node has.


    So the new xml will be :
    <Root>
    <TechBooks Name="C++" Author="Unknown">
    <Book Price="30"/>
    <Book Price="50"/>
    <Book Price="45"/>
    </TechBooks>
    </Root>

    Can u pls tell me the best possible way to do this in xsl...?

    Thanks

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    url=http://www.************.com/xsllist/200307/post70550.html]this link[/url] may shed some light on this issue
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles