my dog learned polymorphism
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "remove xml element xsl" Watch "remove xml element xsl" New topic

remove xml element xsl

Juan Luis Prieto

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="">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?

Juan Luis Prieto

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