wood burning stoves*
The moose likes XML and Related Technologies and the fly likes remove xml element xsl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "remove xml element xsl" Watch "remove xml element xsl" New topic
Author

remove xml element xsl

Juan Luis Prieto
Greenhorn

Joined: Sep 25, 2009
Posts: 15
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

Joined: Sep 25, 2009
Posts: 15
I have fixed it, the problem was the copy that is not in the correct position.
This is how it should be.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: remove xml element xsl