File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Head First Android this week in the Android forum!
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.
 
Don't get me started about those stupid light bulbs.
 
subject: remove xml element xsl
 
jQuery in Action, 3rd edition