• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

remove xml element xsl

 
Juan Luis Prieto
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to remove an element from an xml message and I have reached the point to remove the content of the element I want to remove, but not the entire element as I want. I have to do it by applying an stylesheet transformation by xsl.

This is my message and the element I want to remove is <user:username xmlns:user="http://www.bt.com/ssc-User">juanlu</user:username>


This is the xsl that I am applying to the message.


And this is the exit I have.


Do you know what is wrong with the stylesheet not for it to remove the element I want?

Thanks.
 
Juan Luis Prieto
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have fixed it, the problem was the copy that is not in the correct position.
This is how it should be.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic